libera/#maemo-leste/ Thursday, 2024-05-30

Wizzupok so voiceCallsChanged is called and it's clear the call ends if the remote party hangs up before we even pick up00:28
Wizzupbut statusChanged is never called for the MaemoCallHandler00:28
Wizzupthis is a oneliner I think00:31
Wizzup+++ b/src/modules/voicecallmanager/comm-voicecallmanager-maemomanager.cpp02:09
Wizzup@@ -73,11 +73,15 @@ void MaemoManager::voiceCallsChanged(void)02:09
Wizzup                sphone_module_log(LL_DEBUG, "handlerid: %s", handlerid.toStdString().c_str());02:09
Wizzup02:09
Wizzup                if (!voicecallmodel->instance(handlerid)) {02:09
Wizzupthis solves the repeated vibration02:09
Wizzup+                       mh->hangup(); // If not already02:09
WizzupI'll see if I can figure out the audio problem next and push that here: https://github.com/maemo-leste/sphone/tree/vcm-fixes02:23
unic0rndevel seems to repeat already sent sms after reboot02:23
unic0rnsent one test message from conversations earlier in the day, just got it again after reboot02:23
Wizzupthis is not specific to devel but rather a modem kernel or userspace issue that happens sometimes02:26
WizzupI don't get it very often at all but sometimes it does happen02:26
unic0rnnow this is interesting02:36
unic0rnnoticed that when I connect d4 to my chromebook to charge it, on d4's side usb0 shows up as a network interface02:37
unic0rnfigured "why bother with wifi when this will be faster"02:37
unic0rnand indeed it works, I have both wifi connection to the internet and local usb ethernet to phone02:38
Wizzupyes, this works fine, but when the droid4 is fully charged it will start dropping the usb0 connection every 30 seconds or so, jfyi02:39
Wizzupbedtime for me, almost 3am02:39
Wizzuptomorrow I hope to fix the audio issue, and maybe look at either volume status applet for call volume or perhaps improve the notifications some depending on fmg's progress02:40
unic0rnyeah, 2:40am here as well02:40
unic0rnquestion, is there a fine-tuned cpufreq configuration for d4 in leste, or is it just using default ondemand?06:19
unic0rnI'm trying https://pastebin.com/Va8adZXM - it's a bunch of settings I've defined by trial and error on my old amd A8-7600 desktop06:19
unic0rnfrom my experience on that cpu at least, by default ondemand ramps up way too fast, which is supposed to be nice for performance, but the cost is in the loss of power efficiency06:20
unic0rnsame is likely true for other cpus. back then I was checking it with software video decode, because the goal was to avoid having an audible fan noise while watching movies06:21
unic0rnondemand caused cpu frequency to spike all over the place, it was constantly up and down06:22
unic0rnmy conservative settings settle down on lower frequency - it's going up a bit slower to avoid overshooting the required by load frequency, but then it goes down slower as well.06:23
unic0rnthe result was more or less constant cpu frequency during video playback, lower than the average generated by ondemand06:24
unic0rnthose settings were defined few years ago, but I assume nothing has changed in that governor's settings06:25
freemangordonunic0rn: I don;t think we use any custom cpufreq config09:41
freemangordonmaybe use your tuned config and report if there is a change in battery life compared to stock ondemand09:41
unic0rnI am using it, but my usage is irregular and battery is weak, so it's hard to tell, other than perhaps checking how long it'll survive on idle - but I don't really let it idle for too long09:42
freemangordonidle is not really an issue on leste09:43
freemangordonwhile usage is09:43
gnarfacehmmm... you know, i recently observed on some of my other ARM hardware that default ondemand behavior is all over the board even at idle, which is distinctly different from the behavior i've observed on amd64 hardware09:43
unic0rnthen it should help, depending how heavy the usage is09:43
gnarfacewhat i'm saying, unic0rn, it it may not be an issue specific to just your d409:44
unic0rndefault ondemand according to kernel docs, just goes up to max freq as soon as there's load09:44
unic0rnwhich is, in case of a phone, not exactly optimal09:44
gnarfaceoh, to be clear, i never caught it doing that correctly either, without heavy tuning, even on amd6409:44
freemangordonwell, I think we'll appreciate custom cpufreq tunnings :)09:44
gnarfacewhat actually does that right, is powernowd (using the userspace governor)09:44
gnarfacebut that's what i actually want out of it09:45
unic0rnthe way I tested the settings above was simple, video playback with sudden bitrate spikes09:45
gnarfacewhat i've observed it doing on ARM hardware though, is fluttering around amongst multiple speeds at apparently sub-second frequency09:45
gnarface...which isn't useful09:45
freemangordonugh09:45
unic0rndefault conservative wasn't keeping up with the load, leading to dropped frames, so I've tuned it so that there was no performance loss vs ondemand, but the clocks were more stable and lower09:46
unic0rngnarface: oh yes, those changes are VERY fast09:47
gnarfacei don't think it's specific to the d4, or even to maemo-leste, i think it's something suspect in the upstream kernel ondemand implementation, and where i tested it at least, schedutil was doing it too, but i haven't tested kernels older than 6.1 to see if it was always this way09:47
unic0rnondemand just has adhd09:47
unic0rnit was that way on 5.x kernels in manjaro iirc09:47
gnarfacewhat i'm wondering is if it's different for ARM hardware, since i haven't tested it on the x86 ones either09:47
gnarface...not since before 6.1 anyway09:48
unic0rnit was that way on a8-7600 for me, desktop apu from amd09:48
gnarfacehmmm09:48
unic0rnso yeah, it's just the way ondemand is09:48
gnarfaceor maybe newer hardware in general? the other thing is, most my hardware is pretty old....09:48
unic0rnit's jumping all over the place09:48
unic0rna8-7600 is old09:48
unic0rnthat's kaveri, waaaaay before ryzen09:49
gnarfacenot doing it on my FX or phenom chips09:49
gnarfacethough they have a different issue where they kinda individually drift a few mhz off the target speed setting...09:50
gnarfacethe actual state changes don't "flutter"09:50
unic0rnolder amds were a mess09:50
gnarfacei think that's actually an artifact of some power saving thing i've got enabled in the bios...09:51
unic0rncool'n'quiet?09:51
unic0rnas in, "we're just frying those eggs, no need to burn them in 5 seconds"09:51
gnarfaceno, unrelated to the fans09:51
gnarface"C1e" or "c1E" or something?09:52
gnarfacethe capitalization might matter09:52
unic0rncould be, no idea why it would affect frequencies09:52
unic0rnbut then, if the hardware is old, I would check voltages09:52
unic0rnif they're not stable... well. things may happen09:53
gnarfaceanyway, on the ARM hardware though, (pine64+ A64 SoC boards but you can probably reproduce this on a pinephone) i was seeing the current frequency feathering around among i think the bottom 3 speeds even while at basically 0% load, which seems... wrong09:55
unic0rnwith ondemand?09:56
gnarfaceyea, default settings. not sure if that's related to what you're seeing09:56
unic0rnI'm surprised it didn't go to max09:56
gnarfacei'm not using systemd09:57
unic0rnlol09:57
gnarface:D09:57
unic0rnalso, perhaps I wasn't clear. I wasn't really checking the frequency spikes on my d4, although when issuing random frequency info or anything, current clock was usually higher than minimum at idle09:58
unic0rnI was just copying some stuff to d4, including various scripts, and I found those custom settings09:58
unic0rnchecked what leste is using, added the script to rc.local and that's it. figured it won't hurt and should actually help09:59
unic0rnsince ondemand is usually going bonkers with the clocks09:59
unic0rnon any platform09:59
unic0rnbut as I've said, from my experience on that cpu - meaning a8-760010:00
unic0rnI would be surprised if omap behaves any better though10:01
freemangordonWizzup: ok, gabble looks for  jabber:x:delay, which is superseeded by xep 20310:01
Wizzupfreemangordon: check10:46
Wizzupfreemangordon: I think with message markers we might not even need xep 203 , do we?10:47
Wizzuphttps://docs.modernxmpp.org/client/protocol/10:48
Wizzupfreemangordon: ^^10:48
Wizzupdoes anyone else find the droid4 vibration too strong in sound?10:56
Wizzupfunnily enough the hw a vibrates very different from the hw b it seems10:56
Wizzuplowering the speed from 180 to 80 made it a bit better for me IMO10:58
freemangordonWizzup: inxep 203 it is urn:xmpp:delay10:58
freemangordonWizzup: so, we are becoming upstream for tp-gabble?10:59
Wizzupfreemangordon: I think we should make contact with the mailing list11:07
Wizzupnlnet also said they'd appreciate it if we are a bit more public about or telepathy fixing efforts11:08
Wizzupit might also help with other distros keeping it around11:08
WizzupI think gentoo was trying to remove certain telepathy related packages due to lack of maintenance11:08
Wizzupfreemangordon: so the modernxmpp website, I think this is really worth checking11:10
Wizzupas it says there's over 500 XEPs and many are no longer in use11:11
Wizzupit would be sensible to look at some modern clients (prosody, dino, conversations on android etc) and see which ones they implement11:11
Wizzupthere's probably also a lot of code already out there, for example for pidgin there are many plugins which do say omemo or mam and they're actually suprisingly few lines of code11:12
Wizzuphttps://github.com/qxmpp-project/qxmpp11:14
Wizzupthis is what Kaidan uses11:14
Wizzuphttps://doc.qxmpp.org/qxmpp-1/xep.html11:14
Wizzupwe might consider switching to this from the old lib that gabble uses11:15
Wizzuphttps://doc.qxmpp.org/qxmpp-1/11:15
freemangordonWizzup: all this does not answer my question :)11:16
freemangordonI made a pr for tp-haze few months ago11:16
freemangordonno sign of life, so i wonder if there is anybody on FDO that's still interested in TP11:16
Wizzupso I think we should mail the mailing list, ask if there are any maintainers, and otherwise suggest we could maintain some packages11:16
Wizzupwas this on gitlab or on the mailing list11:17
freemangordoncould you do that?11:17
freemangordonon gitlab11:17
WizzupI seem to vaguely remember mailing the tp mailing list a year or two ago, but I am not sure11:17
Wizzupyeah ok I can look11:17
freemangordonplease do, you know PR is not my cup of tee :p11:17
freemangordonin the meanwhile I'll start fixing our gabble11:17
WizzupI don't think I'm particularly good at PR yet11:18
Wizzupcould you look at qxmpp?11:18
freemangordonwhat for?11:18
Wizzupit's a library11:18
freemangordonI don't want qt in tp service11:19
Wizzupthere are connection managers that use qt (matrix for example)11:19
freemangordonok, but that does not make it less memory hungry11:19
Wizzupthe point mostly being that implementing 10 years of XEPs that gabble missed out on could take a long time11:19
Wizzupmaybe see if there's any other library then11:19
freemangordonI don;t think it will be that complicated11:19
WizzupI write prosody earlier but I meant profanity11:20
freemangordonwe use wocky, lemme check if it has bee updated11:20
Wizzupno wocky is very outdated11:20
freemangordonright11:20
Wizzuphttps://github.com/profanity-im/profanity this is a console based client11:20
Wizzup(I also use this)11:20
freemangordonwell, last commit is 3 years ago11:20
WizzupI don't know if they have a library11:20
freemangordonhttps://github.com/TelepathyIM/wocky/commits/master/11:21
Wizzupno, looks like it's just plain C code without a library11:21
freemangordonmhm11:21
Wizzup(profanity-im)11:21
freemangordonah11:21
freemangordon:)11:21
WizzupI mean all these wocky changes are kind of just keeping it alive11:22
Wizzupnot really adding anything11:22
WizzupI mean it's up to you but I would straight up consider abandoning wocky and building upon work others have done11:22
Wizzupthere's a -lot-11:22
Wizzupbrb 15 mins or so11:23
freemangordonWizzup: https://github.com/TelepathyIM/wocky/commit/564551d495cde108d8ec05ddf8cbb96fb0ef1ddc11:23
freemangordonthis is already fixed upstream11:23
freemangordonWizzup: does not look *that* inactive11:26
freemangordonhttps://github.com/TelepathyIM/telepathy-gabble/commits/master/11:26
Wizzup3 years ago is very inactive11:27
WizzupI would suggest to look at how much has changed and estimate just how long it will take to reimplement all of it, and for what :)11:27
freemangordonhow to know what has changed for 3 years?11:28
Wizzupnot three years11:28
WizzupIt was already super lagging behind in 201411:28
Wizzupnow it's 202411:28
freemangordonhmm11:28
Wizzupit's not about when there was last a commit, but no features were adding, no new XEPs, since forever11:28
freemangordonso, the plan should be to drop wocky?11:28
freemangordonor to drop gabble, or?11:29
Wizzupor bring it up to date with all modern xmpp xep's, per the website I linked earlier and by looking at what the various clients/lbis implement (qxmpp, kaidan, dino, profanity-im)11:29
freemangordonok, do we want *everything* implemented?11:29
Wizzupwell there's (1) upgrade wocky (2) switch gabble to different lib than wocky and bring it up to date otherwise (3) make a new cm like tp gabble with a new lib11:29
freemangordon(3) would be a nightmare11:29
Wizzupwell we don't need everything implement now, but I think that multi device, message archives and omemo are all pretty standard now11:30
freemangordonso I would try with 111:30
WizzupI think we just need to take stock of how much work each option would be before deciding11:30
freemangordonimplementing couple of missing functionalities should be easier than starting from scratch11:31
Wizzupjust keep in mind that many of these modern xmpp libraries get funding for years and continue to work on it, so it's not a small undertaking11:31
freemangordonhmm, ok11:31
WizzupI think I disagree but I don't think either of us have done the necessary homework :P11:31
freemangordonright11:31
freemangordonso, do we have library to use instead of wocky?11:31
freemangordonnot qt based, please11:31
Wizzupwell this is what I was trying to research above11:31
freemangordonright11:32
freemangordonhmm, actually, if it does not link to QApplication/GUI, it should not ba that bad11:32
Wizzupyes, it is not bad11:32
Wizzupit looks like dino is vala, so not C11:32
* freemangordon reconsiders11:32
Wizzupprosody-im is C but they don't have a library, their xmpp implementation is in-line11:33
freemangordonI meant this https://github.com/qxmpp-project/qxmpp11:33
Wizzupyes I understand :)11:33
freemangordonwhere is prosody-im?11:33
WizzupI think there is telepathy-tank in our repos (which is the matrix cm that uses telepathyqt to be a cm)11:33
Wizzupsorry I keep writing prosody but I mean profanity11:33
Wizzuphttps://github.com/profanity-im/profanity11:33
Wizzupprosody is the C/lua server for xmpp11:34
freemangordonoh, ok11:35
freemangordonlooks promising https://github.com/profanity-im/profanity/blob/master/src/xmpp/xmpp.h11:35
Wizzupmy current preference would be looking at qxmpp since it seems to have nice looking docs and enough abstractions that it could match tp nicely11:35
Wizzupyes that is a good option too11:35
Wizzupbut then you'd have to figure out how to link against it I guess11:36
Wizzupprofanity will probably lack all things for audio and video calls, since it's a ncurses client11:36
freemangordonwhat would be the issue?11:36
freemangordon(linking)11:36
WizzupI mean you could copy-paste the code but then how to do keep up to date11:36
freemangordonah11:36
Wizzupor git submodule it somehow link against the objects11:36
freemangordonno, that should be submodule11:36
Wizzupbut there's no 'libprofanity' as far as I can see11:36
freemangordonso, you think qxmpp?11:37
WizzupI think so, but I don't know if that would be (2) or (3), I guess probably (3), which is, eh, but maybe better11:37
freemangordonno, better 211:37
freemangordonwell, depends who implements it11:38
Wizzupso would you mix C and C++ and glib and qt them in the CM?11:38
freemangordonif it is me, I would go for 211:38
Wizzupok11:38
freemangordonwhat is the issue?11:38
freemangordon(mixing)11:38
freemangordonqt uses glib11:38
Wizzupnot a lot I suppose, just convoluted code wise11:38
WizzupO'11:39
WizzupI'm fine either way, but qxmpp seems to support all modern stuff, likely will be maintain going forward, and the APIs/abstractions seem nice11:39
Wizzupwhether we use telepathyqt connection manager or glib connection manager I don't really care about so much11:39
WizzupI just saw that gabble is 75k lines of code11:39
freemangordonhmm, maybe creating tp-qxmpp is really a better option11:39
freemangordonWizzup: but that includes wocky11:40
Wizzupoh it does? ok, I just did wc -l src/*.c11:40
freemangordonin lib11:41
Wizzupah I see, wocky is just copied into it11:41
freemangordonmhm11:41
Wizzupwell, anyway, so I do think (3) is easier, but maybe we need to do a bit of exploration to find out11:41
WizzupI need to water the plants :)11:42
freemangordon:)11:42
Wizzupone thing, in regards to a main to send to tp, what shall I say11:42
Wizzuplike, hi, ewe're here, we're using tp and fixing things, can we get acess to maintain things? or?11:43
freemangordonsomething like11:43
freemangordonor, is there maintainer, we want to colaborate, dunno11:43
Wizzupok11:44
freemangordonwe already did some things, (insert link here) ...11:44
freemangordonthis https://github.com/maemo-leste-upstream-forks/telepathy-haze/commits/maemo/chimaera-devel for example11:45
freemangordonWizzup: but, until we do something better, I think to fix our gabble for at least simple things11:54
freemangordonlike backscroll etc11:54
Wizzupok12:05
Wizzupfreemangordon: anyone I should CC?12:42
Wizzupfor TP12:42
WizzupI sent you a draft12:42
freemangordon...12:42
freemangordonno idea12:43
Wizzupok12:43
freemangordonmaybe pavel?12:43
WizzupI could add random contributors12:43
Wizzupfrom TP I mean12:43
freemangordonyeah, mail looks fine to me12:44
Wizzupmaybe just check the draft and if it's ok I will send it12:44
Wizzupok12:44
Wizzupthen I'll just mail more people if nobod responds12:44
Wizzup(later)12:44
freemangordonI think cc-in Palvel is good idea12:44
freemangordon*cc-ing12:45
Wizzuptoo late :)12:45
Wizzupbut I can send him a copy12:45
siceloi don't think pavel is interested in TP12:49
Wizzupprobably not, but I emailed him anyway, he might be interested in our recent maemo developments12:49
sicelohowever, i wonder if you could also have included debian's tp team12:49
WizzupI think they should be on that list, but if there's no reply in a few days I will reply to the mail, assuming it goes through the ML, and include them in a reply12:50
sicelosure. i was looking at debian's ofono package recently, and it's 'housed' by the tp team.12:50
Wizzupright12:56
Wizzuparno11: sorry I forgot about pcsx yesterday, let's take a look today13:16
arno11Wizzup: vibration is really too strong on N900 too.14:29
arno11for pcsx, no rush14:29
arno11but once pcsx is ok i can work on pierogi (easy stuff) and Drnoksnes (more complicated)14:31
Wizzupyeah I think we just reduce the power in mce.ini14:35
arno11ok14:39
dsc_arno11: re: yt-dlp, do you output in a certain resolution (ffmpeg pass?)15:17
dsc_can imagine you dont want 4k on the n90015:17
arno11yeah ofc i use 360p max15:19
Wizzupalready got one reply on my TP mail :)15:22
siceloguess they replied to you directly? i don't see it in ML (even though i received your initial mail)15:24
Wizzupyes15:25
Wizzupbtw, it might be worth trying wpa_supplicant from bullseye-backports to see if the host mode works again15:27
siceloso what are they saying? TP alive? :-)15:52
Wizzupjust copying the messages to some other folks15:54
freemangordonWizzup: I guess I'll have to implement more smart own account matching18:08
freemangordonbut for now should be ok18:08
Wizzupok18:11
arno11dsc_: btw for 360p stream, i usually run 'python3 yt-dlp --get-url -f 18 https//www.youtube.com/watch?v=blablabla' and then copy the link provided directly in smplayer (and disable compo + fullscreen)20:20
dsc_ah cool20:20
arno11a direct pipe works but a way slower20:20
arno11available resolution can be checked with -F command20:22
arno11this python tool is a bit slow to start but really powerful20:22
dsc_i know yt-dlp pretty well, was just wondering how you were using it20:27
arno11ok :P20:32
unic0rnin case I'm testing video playback, what can I do - other than reboot - when after mpv's exit I'm left with the last played frame on screen?22:32
unic0rnideally with some soft gpu reboot22:32
unic0rnto be clear, by default it works fine, other than occassional frame drops22:34
unic0rnbut I'm kinda stress testing it, with 10bit h264 video and different video output options22:35
unic0rnto which the driver doesn't always respond kindly22:35
Wizzupfreemangordon: I don't know if this is recent but on some incoming SMS conversations not aborts with stack smashing detected23:43
WizzupIt might happen in conv_abook_lookup_tel, so I am not sure yet23:43
uvosunic0rn: not a whole lot, driver dosent support gpu recovery23:48
uvosunic0rn: and most of it is closed source23:48
uvosrestarting xorg only might help23:48
Wizzupfreemangordon: does osso-abook not have dbgsym pkg?23:48
uvosbut thats hard to do on leste due to defficanies in its init system23:49
unic0rnfigured23:49
unic0rnuvos: [vo/drm] Cannot set CRTC: Permission denied - any idea why?23:49
unic0rnthat's as root23:49
uvosWizzup: btw sphone giveing you a freed call proparties on the pipe is impossible on hangup23:50
unic0rnI have a feeling it might work after killing xorg, but that's not really a solution23:50
uvosunic0rn: no idea in what context that pops up23:50
uvosit could be that you are trying to set the crtc on the gpu drm node23:50
uvoswhich dosent work since the gpu has no outputs23:51
Wizzupuvos: I solved the hang problem already in vcm code23:51
uvosWizzup: ok23:51
unic0rnuvos: mpv --vo=drm --drm-connector=1.DSI-123:51
WizzupI just have to see why sphone logs 2-3 times now23:51
Wizzupotherwise it seems good23:51
WizzupI also trimmed the backend name a bunch23:51
uvosunic0rn: mpv might be trying to change the crtc mode23:51
uvosthats not supported at all23:51
unic0rncould be related to screen rotation?23:52
unic0rnthat is, verbose log reports 540x96023:52
uvosthat is correct that is the resolution of the pannel23:52
uvosits native portait23:52
Wizzupfreemangordon:23:55
Wizzup(gdb) frame 1023:55
Wizzup#10 0x0043d61e in TelepathyAccount::log_event (this=this@entry=0xa881b0, epoch=epoch@entry=1717105656, text=..., outgoing=outgoing@entry=false, channel=..., remote_uid=..., remote_alias=...) at ./src/lib/tp.cpp:36823:55
Wizzup368     in ./src/lib/tp.cpp23:55
Wizzup(gdb) printqs5static remote_uid23:55
Wizzupthen it crashes here:23:56
Wizzup(Qt5 QString)0xbeffe610 length=5: "Apple"23:56
Wizzup#6  0xb5698a3e in __stack_chk_fail () at stack_chk_fail.c:2423:56
Wizzup#7  0xb6abc1ca in osso_abook_query_phone_number () at /usr/lib/arm-linux-gnueabihf/libosso-abook-1.0.so.023:56
Wizzup#8  0xb6ac9a14 in osso_abook_aggregator_find_contacts_for_phone_number () at /usr/lib/arm-linux-gnueabihf/libosso-abook-1.0.so.023:56
Wizzup#9  0x0042b840 in conv_abook_lookup_tel(char const*) (telno=<optimized out>) at ./src/lib/abook.cpp:3723:56
Wizzupsorry I should have probably pasted this somewhre else23:56

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