libera/#maemo-leste/ Monday, 2024-01-08

arno11Wizzup: freemangordon: i found the trick for FB plugin: when you create-disable-enable an account, 'auto-connect' option is not activated so presence-ui returns 'offline' or 'network disconnected'. Adding auto-connect option to the account through mc-tools solve the issue09:58
arno11now FB plugin works normally and survives after reboot, it shows proper contact names in contacts app, notifications seems to work well10:01
arno11'availability' BTN and green icon are still not visible in status menu btw10:03
arno11same with another protocol like sip10:04
Wizzupah, interesting @ auto-connect11:00
Wizzupgreat find11:00
WizzupI feel stupid as I was doing this manually yesterday for the discord one I set up but didn't think about letting you know or whether it was a bug11:00
freemangordonwhat is "auto-connect"?11:13
freemangordonthere is "Connects: automatically"11:14
freemangordonand this is set by rtcom-accounts-ui for sure11:14
freemangordonor rather - accounts should not connect automatically11:20
freemangordonbut presense-ui should tell them to do so11:20
freemangordonif presence-ui does not work properly, then obviously accounts will not connect11:21
freemangordonarno11: Wizzup: ^^^11:21
freemangordonso I would rather appreciate if someone debug what's wrong instead of just hacking around11:22
freemangordonI will help with debugging11:22
WizzupI think he is saying it's somehow not being set11:25
Wizzupbut I'll take a look as well11:25
freemangordonit should *not* be set11:27
Wizzupmhm11:28
freemangordonbecause presence ui conencts/disconnects as needed11:28
freemangordonbased on various conditions, profile, etc11:28
freemangordonso, it seems we have issue in presense-ui11:29
freemangordonWizzup: arno11: https://github.com/maemo-leste/rtcom-presence-ui/blob/master/lib/pui-master.c#L216411:37
Wizzupfreemangordon: hm?11:57
Wizzupah, you think they might not have a presence?11:57
freemangordonI am sure presence-ui hsm plugin is not loaded12:02
freemangordonand that's why all the issues12:02
Wizzupfreemangordon: hsm?12:27
arno11indeed accounts must not be auto-connected, otherwise they auto-connect everytime you turn on wifi or gprs (even if you are offline)12:29
arno11same question with hsm :P12:29
freemangordonhildon-status-menu12:32
freemangordonarno11: so, could you dsmetool kill h-s-m12:32
arno11ok12:33
freemangordonand then install rtcom-presence-ui-dbgsym12:33
freemangordonand then:12:34
freemangordonG_MESSAGES_DEBUG=all gdb maemo-summoner12:34
freemangordonand in gdb:12:34
freemangordonr /usr/bin/hildon-status-menu.launch12:34
freemangordonarno11: still here?12:40
arno11yes currently following what you said12:41
freemangordonok12:41
arno11need time (kids around atm...)12:42
freemangordonhehe :)12:42
arno11back. i got 'no debugging symbols found in maemo-summoner' (remember i use a fresh install, gdb and presence-ui-dbgsym are ok)12:52
arno11ah, looking @irc logs, it seems we can't debug hildon-status-menu with gdb attached13:10
uvos__hmm you def can13:12
uvos__i have done so in the past13:13
arno11btw when i simply run 'maemo-summoner hildon-status-menu.launch', presence-ui starts normally and green icon works13:13
arno11and availability BTN as well13:13
arno11uvos__: ok13:13
arno11now, even if i delete and add again my account in FB plugin, presence-ui works well13:19
arno11and when i click on 'offline', the account is properly disconnected13:20
arno11in fact everything is fine once hsm is re-launched13:30
arno11bbl13:31
Wizzupwell, signald currently cannot link devices, so I will give up on that for the moment https://gitlab.com/signald/signald/-/issues/37913:55
freemangordonarno11: yes, you can debug, exactly as I said ^^^13:59
freemangordonyou don't need maemo-summoner symbols13:59
freemangordonif you wish to debug hildon-status-menu (the executable), then you shoudl install its symbols14:00
freemangordonbut we don't need that now14:00
Wizzuparno11: https://leste.maemo.org/Debugging#Dealing_with_Maemo_Launcher_.2F_Maemo_Invoker14:00
freemangordonwe only need rtcom-presence-ui symbols14:00
freemangordonbecause it seem sit is at fault14:01
freemangordonso, the idea is:14:01
freemangordonstart h-s-m with gdb, so when it crashes, you get backtrace14:01
freemangordonthe other option is to enable coredumps14:01
freemangordonsearch for "* soft core unlimited"14:03
freemangordonthis will help14:04
freemangordonhttps://www.enterprisedb.com/docs/epas/latest/installing/troubleshooting/linux_troubleshooting/enabling_core_dump/14:04
freemangordoncheck "Enabling core dumps on a Debian or Ubuntu host"14:04
arno11freemangordon: ok14:10
arno11btw i found weird stuff in syslog:14:11
arno11localhost pulseaudio[4837]: [pulseaudio] module-augment-properties.c: Failed to parse .desktop file /usr/share/applications/hildon-status-menu/rtcom-presence-ui.desktop.14:11
freemangordonweird14:12
freemangordonI don;t have that here14:13
arno11ah, weird14:13
freemangordonhmm, any clue why /home/user/.config/pulse gets filled with files?14:20
freemangordonWizzup: BTW, do we really want to keep rtcomel around?14:21
freemangordonwhat is the issue if we create it adhoc?14:22
arno11freemangordon: i just checked on an 'old' clone of my install from few months ago and pulse files were already there, same for the syslog errors btw14:37
freemangordonok, my those get created on every reboot it seems14:39
freemangordonthis cannot be normal14:39
arno11ok14:40
* freemangordon thinks auto keyword should have never been introduced in c++14:43
freemangordonevery time a developer uses auto for everything else than lambda, a kitten dies14:43
arno11freemangordon: able to use gdb with hsm: absolutely no error or crash (and presence-ui works well). we need to trace what's happening on startup IMO14:58
uvos__debuing hildon-status-menu has the added wrinkle that the connui plugin throws sigill because it probes for some instruction we dont have by traping sigill15:13
uvos__but you can just ignore this15:13
Wizzupyeah just continue15:23
Wizzupuvos__: this is openssl doing that btw15:24
uvos__yeah, its a bit confusing at first since seeing sigill is usually some invalid jmp so it  makes you think there is some reverse heisenbug15:26
arno11indeed i got sigill/sigint stuff, i just ignored it and continued15:53
arno11i'm currently looking @maemo logs, what is inetstate btw ?15:54
arno11there are plenty of error with that in hildon-status-menu logs15:55
arno11no clue what is it (maybe netstat stuff ?)15:57
arno11(/var/log/maemo/hildon-status-menu.log)15:59
freemangordonWizzup: https://github.com/maemo-leste/conversations/commit/f67ef3d844de55392f6b3e8f470978c1fc6c6df316:25
freemangordonarno11: this log spam will be fixed once I finish with connui-cell16:26
freemangordonwill take a while though16:26
freemangordonWizzup: maybe new release of conversations?16:26
Wizzupfreemangordon: sure, want to do it?16:27
freemangordonme?16:27
freemangordonno16:27
Wizzupok, i'll do it in a bit16:27
freemangordondure, no hurry16:27
freemangordon*sure16:27
arno11freemangordon: ok, btw how can i trace what's going on on startup with hsm/presence ?16:33
freemangordonenable coredumps16:34
arno11ah ok16:34
arno11thx16:34
freemangordonmost-probably h-s-m crashes on startup16:34
arno11yes indeed16:34
arno11because it works fine once reloaded16:35
arno11i'll let you know16:35
uvos__h-s-m and h-h being just one process is an unfortionate ram optimization we are now stuck with16:36
freemangordongreat16:36
freemangordonuvos__: hmm?16:37
freemangordonwhat is the difference if you have 1 or 10 processes if the crash happens on startup?16:37
uvos__well all the (3rd party) widgets and things running inside the main process can and do break more mission crticall stuff16:38
uvos__since they lack process isolation16:38
freemangordonwell, how many gnome-panel processes you have16:38
freemangordonthat's not true16:38
uvos__lots effectively16:38
uvos__desktop linux uses statusnotifier items16:38
freemangordonh-h can have another process as widget16:39
uvos__ie other processies embed images, xwindows into the status area16:39
uvos__with good isolation16:39
freemangordonexample is osso-abook-home-applet16:39
uvos__sure h-s-m and allowing 3rd party widges in process in h-h is a stability problem16:39
freemangordonthat's why crashing applets got disabled ;)16:40
uvos__crashing disables all applets16:40
freemangordonno16:40
uvos__except a whitelist16:40
freemangordonwell, ok16:40
uvos__its not nearly the same16:40
freemangordonagree, but the end effect is the same16:40
uvos__having seperate processies would be mutch better16:40
freemangordonor almost the same16:40
uvos__anyhow, to mutch work to change16:40
freemangordonas I said - h-h supports separate processes16:40
uvos__h-s-m dosent16:40
freemangordonright16:41
uvos__also porting all the h-h widgets is also alot of work16:41
freemangordonbut that's a trade-off for low memory footprint16:41
uvos__not worth the cost on any 512mb+ device16:41
uvos__it wasent an insane choice i just think its dated16:42
freemangordonwon't argue16:42
freemangordonbut again, see what rafael2k said about comparison between maemo and the other mobile OSes16:43
freemangordon'snappier', 'faster' etc comes at a cost16:43
freemangordonhere we talk about 6 cores 4 GB device16:44
freemangordonalbeit allwinner16:44
freemangordonso even on such a performant device maemo being optimized makes lots of difference16:44
gnarfacei think the allwinner one is only 2GB16:46
gnarfaceand 4 cores16:46
gnarfacethe 6-core/4GB one is rockchip16:46
gnarfacenot that it's super important, sorry, carry on16:47
freemangordoncould be, I didn't really check what the SoC is16:47
gnarfacepinephone regular is allwinner, pinephone pro is rockchip16:47
gnarface(i'm in their channel too)16:47
freemangordonI just had remote shell for a while :)16:47
freemangordonbut in any case, this one is a beast compared to n90016:48
freemangordonand I think GPU is faster than the one on d416:48
gnarfacei don't doubt it, but anyway, the pinephone regular is not known over there for being fast either, so i only meant the correction to support your point16:48
freemangordonyeah16:48
freemangordonactually it is fast16:49
freemangordonthere seems to be some kernel bug that affects IO and makes it super slow16:49
gnarfacei'm old, so it's fast to me too... but it does objectively struggle with modern phone software16:49
freemangordonwell, I am speaking from 'running maemo on it' POV16:49
gnarfaceheh, yea i hope they fix the bottlenecks in the kernel, but they're still ironing out power management bugs16:50
freemangordonfor PP? Is it still supported?16:50
gnarfacesure, as supported as it ever was...16:51
freemangordonheh16:51
freemangordonyeah 'supported'16:51
gnarfaceit's all reverse-engineered community support by one or two ambitious heros16:51
gnarfaceheroes*16:51
freemangordonmripard and that what-was-the-nick chinese lady I guess16:52
gnarfacesince i got it, they've increased standby time from 6 hours to almost 3 days just with power management fixes, but there's still some outstanding power management bugs affecting modem stability on both models, audio device stability on the pro16:52
freemangordonwhat os is that?16:52
gnarfaceall of them16:52
freemangordon3 days on PP?16:52
gnarfaceyea16:53
gnarface3 days STANDBY16:53
gnarfaceas in, not screen-on time16:53
freemangordonyeah16:53
gnarfaceturn it on and watch video you still burn through the battery in 1-2 hours at most16:53
freemangordonbut, but... it does not support DVFS, no?16:53
freemangordonlike, maemo does not susped16:53
gnarfaceuh... sorry, what's DVFS?16:53
freemangordon*suspend16:53
freemangordonfrequency scaling and turning various modules off16:54
gnarfaceoh, dynamic voltage and frequency scaling... uh, i dunno. i'm no kernel dev16:54
gnarfacei do suspect it might be missing support for stuff like this still, yes, but not sure16:54
gnarfaceor maybe only partial support16:55
freemangordonso, afaik (but don;t quote me on that), you can only suspend and run full-power, more or less16:55
freemangordonso haveing 3 days of standby time is great16:55
gnarfacea lot of the performance bottlenecks also seem to come from the graphical layer... particularly gtk/qt programs by default seem to miss a key optimization with using the device's ONE hardware plane right (sorry i don't know how to more correctly state it) and the video driver is just... not finished16:55
gnarfacei do think you're right, that just implementing basic suspend on idle was what got us those 3 days16:56
freemangordonmodesetting adds to that, by not supporting HW rotation :)16:56

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