libera/#maemo-leste/ Monday, 2021-11-08

Wizzupuvos: well let's stay in touch wrt rtcom since we can probably share some code eventually00:18
WizzupI have quite some notes on how rtcom works and how to log for sms00:18
Wizzupand I'll make a el-v1.db for testing00:19
konagot tired of not having a kb on my main phone04:53
konahttps://rootaction.net/owncloud/index.php/s/vlX4GsBlskKQsta04:53
konamight do similar for my pinephone if i can't get one of the official kbs04:54
Wizzupbluetooth/08:36
Wizzup?08:36
Wizzupthat upside seems unreal :p08:37
Wizzupuptime*08:37
uvosrtcom-eventlogger is pretty terrible11:12
uvoslike the field event_type needs a string literal like "RTCOM_EL_EVENTTYPE_SMS_MESSAGE" thats how the hell am i supposed to gues that? its not defined anywhere11:13
uvossame with all of the other event elements11:13
WizzupI didn't have that much trouble with it tbh11:15
Wizzupbut yeah we're basically doing double work now anyway11:15
uvosits terrible api11:15
Wizzupk11:16
uvoswell can you tell me what all the RTCOM_EL_EVENTTYPE_ strings are?11:21
Wizzupthey are defined in the plugins11:22
Wizzuphttps://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/master/src/sms-plugin.c11:23
Wizzuphttps://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/master/src/sms-plugin.c#L7611:23
uvosgreat api :P11:23
uvos"go grep some other repo to maybe find where the string is used somewhere"11:24
Wizzupso the plugins have some headers11:24
Wizzupbut they don't export the useful stuff11:24
Wizzupwe should add them here https://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/master/rtcom-eventlogger-plugins/sms.h11:24
Wizzupthat's my understanding at least11:24
Wizzuphttps://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/master/rtcom-eventlogger-plugins/call.h11:24
Wizzupwhich already does the call logging11:25
Wizzupand the call types here: https://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/master/src/call-plugin.c#L19511:25
WizzupI think the idea is to use the plugins, just the sms one is rather incomplete11:26
Wizzupfor example call has this kind of stuff https://github.com/maemo-leste/rtcom-eventlogger-plugins/blob/master/src/rtcom-el-plugin-call.c#L22211:26
uvosid11:27
uvosidk11:27
uvosthat function is really useless11:27
Wizzupwhich means you don't need the strings externally for that11:27
uvosyou still need it if you want to find the events etc11:27
Wizzupso I just filtered by events from the sms service id11:28
Wizzupe.g.11:28
Wizzup    if(!rtcom_el_query_prepare(query,11:28
Wizzup                "remote-uid", argv[1], RTCOM_EL_OP_EQUAL,11:28
Wizzup                "service-id", service_id, RTCOM_EL_OP_EQUAL,11:28
Wizzup                NULL)) {11:28
uvosim also not sure what the point to those plugins is in the first place11:31
uvosthey dont seam terrbly usefull11:31
uvosWizzup: https://github.com/maemo-leste/sphone/blob/master/src/modules/store-rtcom.c12:47
uvosso sphone stores its events now12:47
uvos(if you load that module, not default)12:47
uvosinto rtcom12:47
uvosstill working on the api in the other direction (sphone will abstract it).12:47
Wizzupuvos: did you test this with rtcom uis and such? I don't see a header with uuid for the message id anywhere13:35
Wizzupand does it repor the different sms flags?13:36
Wizzuppending, delivered, etc13:36
Wizzupit should probably also set the is read property13:38
uvossphone dosent know that13:38
uvosatm13:38
uvosalso the state13:38
uvosdosent know that either13:38
Wizzupmeanwhile I'm looking at https://gitlab.freedesktop.org/telepathy/telepathy-glib/-/blob/master/examples/client/text-handler.c13:41
Wizzupseems pretty easy / generic for the various (text) protocols13:41
uvosnot sure what uuid you speak of13:42
uvosi just did what https://github.com/maemo-leste/rtcom-eventlogger/blob/master/tests/check_el.c dose13:42
Wizzupyeah but check-el doesn't do what needs to be in the database13:43
Wizzupit's pretty evident on the fremantle database13:43
uvossee its terrible api :P13:43
Wizzupwell I spend ~2-3 hours understanding it yesterday13:43
uvosif you have to look at the old database to know what fields exist13:43
Wizzup==== Headers ====13:44
WizzupThe database has headers, one for each event, it looks like. It for example13:44
Wizzupcontains UUIDs for each event (at least for sms), but it can also contain vcard13:44
Wizzupfields it looks like. My table only contains name=message-token though.13:44
WizzupI don't know how you can write code compatible with what fremantle does without looking at it13:51
Wizzupthe local_uid also probably needs to be telepathy-ring for any compat13:51
Wizzupwell not that literal string, but a telepathy-ring one13:51
uvosthats bust13:52
Wizzupon fremantle the local_uid for all sms/call events is ring/tel/ring13:52
Wizzupthere are others too, e.g.13:52
Wizzupsofiasip/sip/sip_2exs4all_2enl013:52
Wizzupidle/irc/fremantle013:52
Wizzupwhich map to the remotes table13:53
Wizzupamongst other things13:53
uvosi not going coperate on that, if the logging backend requires you to give ids provided by certain ids its over13:53
uvosim not useing it13:53
uvoscertain libs13:54
Wizzupthat's fine, you can evaluate my code when it's done13:54
Wizzupand then make up your mind13:54
Wizzupuntil I fully understand how it works I'm not going to diverge from what nokia did13:54
WizzupI don't see the point of using their apis in a way that doesn't actually make it work the way then intedeed do13:55
Wizzupintended*13:55
Wizzupthen it's easier to just roll your own13:55
Wizzupfor the record I am not saying that you cannot write sphone plus something in local_uid13:56
Wizzupbut it's not going to work the way you expect with some of the other components13:57
Wizzupis my guess13:57
uvosso can you provide an example for what is key and value in a header13:59
uvosfor message/sms/call13:59
Wizzupit's going to take me time to figure out if call or chat message also have it14:01
Wizzupmost of headers is just this14:01
Wizzup20290|34235|message-token|9bac9a4c-5fe3-49f3-b5ee-c213c96bf76014:01
WizzupI'd have to write a join and other stuff to see if that's only sms14:01
Wizzupof course the libtelepathy-glib0 examples don't build normally :D14:03
WizzupI don't know how these message-tokens are used in the conversations ui, yet14:04
uvoshttps://github.com/maemo-leste/rtcom-eventlogger/blob/d635dd7a9520090b523405ca8531524746451f1a/src/eventlogger.c#L109214:05
dsc_i received a droid4 in the mail (thanks santa)14:06
dsc_it runs an old android version14:06
dsc_how2maemoleste14:06
dsc_https://leste.maemo.org/Getting_Started14:06
dsc_> After updating device firmware with included script (eg. flash-droid-4-fw.sh)14:06
Wizzuphttps://leste.maemo.org/Motorola_Droid_4#Installation14:06
dsc_oh.14:07
dsc_thx14:07
Wizzupalso note14:07
WizzupCheck what kernel version your Android OS runs. For this go to Settings -> About phone. Slide to the bottom, where you can see "Kernel version". If you have at least 3.0.8, you may skip "Updating Android" step below.14:07
uvosprobubly just remove the https://leste.maemo.org/Getting_Started installation to SD Card  thing14:08
uvosits just confusing as thats device dependant14:08
Wizzupfeel free :p14:08
uvosdrop a hint to look at the device pages instead14:08
dsc_Wizzup: seems to be 3.0.8 yep14:08
uvosdsc_: also think about if you want android 7 on it too14:08
uvosits alot easier to install los first and then leste14:09
uvosdosent matter if you dont intend to use android also14:09
bencohyeah, I'd recommand installing lineageOS on it as well14:09
WizzupI sent it to dsc for development purposes14:09
uvosWizzup: well compearing with los is usefull :P14:09
uvosfor kernel development14:09
dsc_I seem to be stuck in fastboot mode, it says the device is LOCKED - maybe that has something to do with it14:45
dsc_> Start the device in fastboot mode. For this press power button and bottom volume key simultaneously and release them after a second.14:46
dsc_or can I just proceed with `sudo fastboot flash mbm ...` now?14:48
parazyd14:49
dsc_https://i.imgur.com/PdRcRRG.jpg14:57
uvosyes14:59
dsc_ok :)15:01
uvosplease note that at least fastboot v30.0 is needed15:03
uvosthis version is quite recent15:03
uvosthe wiki dosent tell you..15:03
Wizzupreally? I used fastboot from android-tools 8.1.0 and it worked fine15:04
uvosthat should be v30 no?15:06
uvosanyhow in the 29 series there is a bug that prevents it from working without flash raw15:07
uvosand maybe below 29 too15:07
uvos(but not very old versions before 29, not sure where the bug was introduced)15:08
uvosi think it was intrduced in 2715:08
uvosiirc15:08
uvosso 201715:08
dsc_ok, up and running :)15:14
Wizzupdeb https://maedevu.maemo.org/leste beowulf-devel main contrib non-free15:16
Wizzupadd that one to sources.list or sources.list.d15:16
Wizzupand apt update && apt dist-upgrade15:16
dsc_can I get access via SSH through micro-USB somehow or does it need to be on wifi15:18
uvossure there is usbnet15:18
uvosalso there is serial on the usb port if you conect a ttl->usb  there15:19
Wizzuphttps://leste.maemo.org/Status/USB_Peripheral15:20
Wizzuphowever, usbnet gets flaky when the device thinks it is fully charged15:20
bencohmuch reminds me I still need to understand why usbnet doesn't behave here15:43
bencoh(it used to work on my own custom kernel from 2~3y ago)15:43
bencohs/much/which/15:43
bencohWizzup: by flaky, do you mean it connects and immediatly disconnects?15:43
bencoh(ie the usb device is shown as connected then disconnected on host)15:45
Wizzupbencoh: yes15:45
bencohoh15:45
bencohhere I think it happens even when not fully charged (I'm pretty certain)15:46
Wizzupmight depend on the table15:46
Wizzupcable*15:46
bencohwell, I tried with various cables, but ...15:46
bencoh(and it definitely used to work before I moved to leste)15:46
bencoh(and fastboot seems to work)15:46
bencohbut if others are experiencing something similar, then ... interesting15:47
bencohtbh I think it's related to how vbus events are handled15:47
Wizzupfreemangordon: wg17:12
Wizzupwb*17:12
freemangordonhi!17:13
freemangordonNo fish in Chalchidiki sea so I decided to get back home one day earlier :)17:15
Wizzupaw :(17:17
freemangordonwell, not that bad, I caught enough fish this year17:18
Wizzupthere is slowly some rtcom/conversations ui movement as well17:19
freemangordonnice17:20
freemangordonI was thinking about vrfb rotation17:20
freemangordonI will send a mail to tomi/laurent, to get some pointers on the omplementation17:20
Wizzupmakes sense17:22
freemangordon*implementation17:22
konawizzup: bluetooth yes18:08
konai didnt grok the uptime comment18:10
Wizzupit's like 27000 days18:11
Wizzupif I read correctly18:11
uvosthe screenshot  shows 10k days uptime18:12
uvos18937 days to be exact18:12
uvosor 51 years18:12
uvosthat happens to be the time since 1970 :)18:13
Wizzupyeah18:13
Wizzupusually 'uptime' does not get it wrong though18:13
Wizzupso that was surprising18:13
konaoh wow. thanks neofetch.18:13
konakali nethunter runs in some container so maybe thats causing it to get bad results?18:15
uvosfreemangordon:18:42
uvosi think i know how xorg rotates18:43
uvosin general18:43
uvosso xf86Rotate sets a pixmap transform on the xorg drawable18:43
freemangordonhow?18:43
uvosand then glamor rotates in gl18:43
uvosor other backends rotate18:43
uvoslike exa dose to18:43
uvosin hw18:43
uvosusing the same code as rotating any other xorg pixmap/drawable18:44
freemangordonhmm18:45
freemangordonbut this is not really HW rotation in case of omap3/418:45
uvoswell its rotating on sgx18:45
uvosthis works fine perf wise on wayland18:45
freemangordonnot really18:45
freemangordonthis halves the FPS18:46
freemangordonIIUC18:46
uvosthats not what i see in sway/gears18:46
freemangordonwith 100% cpu oad18:46
freemangordonrun glmark18:46
uvoswell i cant because i have to upgrade mesa first18:46
freemangordonesgears is too small (300x300)18:46
uvosits full screen here18:46
uvossway makes everything fullscreen ;)18:46
bencohisn't there some dmabuf-powered / mem2mem infra for DMR allowing basic transformations (ie rotation)?18:47
freemangordonno18:47
uvosthere are kms planes instead18:47
freemangordonalso, rotation is not really 'basic' transformation :)18:47
uvosanyhow18:47
uvosthats how it rotates18:48
uvosmake of it what you will18:48
freemangordonok18:48
freemangordonuvos: rotating through GL is suboptimal. No matter what you do, you don;t have zero-copy18:51
uvossure its not optimal, im just saying this is how it works and it should work fine on omap* using this path.18:52
uvoswe know first hand that this path has a perf hit18:53
freemangordoni.e. - you have some pixmap already rendered. you need to upload that to a texture and then send that texture through a shader18:53
uvosits slower on wayland by about 1/3 here18:53
freemangordonon d4, right?18:53
uvosand its slower on pp with glamor too from what others have stated18:53
uvosyeah18:53
freemangordonimagine on n900/n9/5018:53
uvosregarding the uploading18:54
freemangordonno, the way to have the rotation is through tiler18:54
uvosthat should not happen18:54
uvosidealy18:54
uvossince on wayland for instances everyting is on sgx18:54
freemangordonwell, yeah18:54
uvosqt renders its buffer with gl, passes it to the wayland wm, and then the wm rotates with gl and outputs18:54
uvosthats how its supposed to work18:55
uvosand ofc this is ideal anywhere where your gpu as its own ram18:55
bencohwell, there is a reason why qt5/wayland nemomobile was slower, and was never ported to n900 :)18:56
freemangordonanyway, on omaps we have a HW that can rotate with no perf hit18:57
uvosi think ram plays a big part to18:57
uvosbut yeah18:57
freemangordonso I see no reason not to use it18:57
uvosim not advocating for this path at all18:57
freemangordonyeah, sure18:57
uvosim just saying where it is and why it works like this18:57
freemangordonthanks for the explanation though18:57
bencohfreemangordon: looks like this landed in mainline: drivers/gpu/drm/drm_blend.c18:58
freemangordonwhat is this?18:58
bencoh(to be honest I thought it remained a samsung-only fantasy)18:58
bencohfreemangordon: pretty much what I mentioned, or so I think18:58
uvosseams to implement the kms planes (just read the comment at the top first i hear of this)18:59
bencohalthough I'm not certain it's actually used anywhere / really implemented by any driver18:59
uvosbencoh: seams to be implmenting this: https://www.kernel.org/doc/html/v4.15/gpu/drm-kms.html#plane-functions-reference19:00
freemangordonhmm, I think omapdrm implements at least the rotation property19:00
uvosno we havend found anyone useing that interface either19:00
bencohI wonder if samsung uses it at least19:01
bencohI guess I could check19:01
uvosandroid might generally19:01
bencohfreemangordon: you were right about the property:   14    171  drivers/gpu/drm/omapdrm/omap_plane.c <<omap_plane_install_properties>>19:02
bencoh             drm_plane_create_rotation_property(plane,19:02
freemangordonomapdrm seems to implement this19:02
freemangordonbut no userspace is using it it seems19:02
bencohwhat's supposed to perform the actual rotation?19:03
freemangordonTILER on omap419:03
uvostiler in omapdrms case19:04
bencohis that implemented kernel-side?19:04
freemangordonyes19:04
bencohah right, OMAP_DSS_ROT_TILER19:04
bencohwell, it might actually be the way then19:04
freemangordonsee omap_gem_init19:04
uvosthere is even a modesetting patch to use this fmg found19:04
freemangordonyes, but for omap3 we need VRFB rotation19:04
bencohah19:04
uvosbut implementing it for omap3 would be hardish19:05
freemangordonnot really, VRFB seems way simpler than TILER19:05
uvosfreemangordon: looks like android has drm_hwcomposer19:05
uvosthat uses this too19:05
freemangordonttyl, dinner19:05
bencohenjoy! :)19:05
Wizzupuvos: did you move the screen vibration checkmark from display to profiles, or was it just always there22:58
WizzupI vaguely recall it being in settings -> display22:58
uvosi moved it23:25
uvosits profile dependant too now, just like the touchscreen sound23:26
Wizzupit's much harder to find though I think23:26
Wizzupmaybe I am just used to it23:26
uvossure23:27
uvosbut not realy realtive to touchscreen sounds23:27
uvosthe profile ui could telegraph more what its for for sure23:27
uvosits also off by default now23:29
uvosbtw23:29
uvosbut we can change that back if you like23:29
uvossince imo the feedback makes sense only on restive ts where you dont know if you pressed hard enough to register the touch, while on capacative ts if you can feel the ts touching your finger its registering a touch.23:31
WizzupI don't care much about the default, I just implemented the maemo functionality while learning REing23:35

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!