libera/#maemo-leste/ Monday, 2023-07-24

Wizzupdo we need to set the resampling method?00:00
Wizzuplike, what is the default?00:00
arno11the default is speex-float-1 but it is too much for sip00:00
arno11(for the n900)00:00
arno11trivial is a bit bad but works00:01
Wizzuptoo much as in the cpu can't handle it?00:02
arno11yes kind of00:02
Wizzupbecause with default settings on d4 PA uses 'only' 5%00:02
Wizzupgranted I didn't actually hear audio but I think it was doing something00:03
arno11yes but with 2 cores00:03
arno11don't forget that when call is starting and then sink/source are synchronised (working sound in both ways) cpu cons increase a lot00:05
arno11(dist-upgrade is a bit long, not sure i will have time to test twinkle this night)00:07
Wizzupmhm00:07
WizzupI will do the same steps on the other sd card, and then focus on the news post00:07
arno11ok00:12
arno11ah upgrade almost done00:14
Wizzupbtw, with latest -devel openmediaplayer should work with radio streams :p00:15
arno11yes cool :)00:15
Wizzup(internet radio)00:15
arno11otherwise it works with audacious btw00:16
Wizzup:)00:16
WizzupI think maybe one of the next blog posts we could have some users describe how they use M-L00:17
Wizzupwe seem to all have different ways/programs00:17
arno11yes indeed00:17
arno11depending of our different linux xp00:17
arno11and preferences00:17
arno11arghhh i know why upgrade is so long, i use a slow class 1 sdcard...)00:20
WizzupI've been searching for my usb microsd adapter, but can't find it, so I will use my laptop internal slot00:22
arno11i did the same00:22
arno11rebooting00:25
arno11ok so just one more step: installing and configuring twinkle00:27
arno11note: twinkle config file must be /home/user/.twinkle/twinkle.cfg (if the name is different it doesn't work)00:34
WizzupI think you can do twinkle -c -f myname and then it loads /home/user/.twinkle/myname.cfg00:35
Wizzupright?00:35
arno11yes but must be rename00:35
arno11to twinkle.cfg00:35
Wizzupoh?00:36
arno11yes00:37
Wizzupnot sure I follow, but ok00:37
Wizzupas in I think it worked for me00:37
arno11ok not for me lol00:37
arno11so to be sure better using twinkle.cfg i think00:38
arno11in cfg file, auth_aka_op and auth_aka_amf must be empty00:41
arno11outbound proxy must be set00:41
arno11sip_transport=tcp00:43
arno11stun_server (depending of provider and isp)00:43
arno11enable_nat_keepalive=yes (for me, not sure for you)00:44
arno11that's all00:45
arno11connection ok for me00:45
arno11trying message00:45
WizzupI am not sure if I set outbound proxy, didn't know that was necessary00:46
arno11you can try without00:46
arno11messages works00:46
arno11trying call (but not easy with familly arround...)00:47
arno11working very well !!!00:49
arno11even inbound calls00:50
Wizzupis the cpu usage and pa processes as you expect?00:50
arno11yes 3 PA and 95% CPU00:50
arno11no disk sleep00:50
Wizzup3 threads, yeah?00:51
arno11yes00:51
Wizzupso no PA that runs as 'uesr'00:51
Wizzup'user' *00:51
arno11but 2 processes00:51
Wizzupargh :D how00:52
arno11one pulse and one user00:52
arno11don't know00:52
arno11anyway sip is working very well and that's the most important thing :)00:53
Wizzupthat's super sweet00:53
arno11both messages and calls with very few tweaks00:54
arno11i have to go man, time to sleep00:54
Wizzupgood night00:55
WizzupI will try to reproduce this00:55
arno11ok :) good night00:55
arno11oups not for you lol00:55
Wizzup:D00:55
Wizzupnot yet anyway00:55
Wizzupuvos: fmg isn't around atm, do you know what component he changed to support more of the xdg spec for notifications?02:18
uvos__Wizzup: hildon-home09:47
uvos__flashing the xt910 modem fw to xt912 wont do anything, (if it isent rejected on signing key grounds) as the pcb if physicaly different09:48
* maxwelld wonders where usov knows so many details about phones and phone hardware.12:09
maxwellduvos*12:09
maxwelldwhere from*12:09
dsc_hi12:14
dsc_is it possible to hook incoming calls12:14
dsc_example: incoming call triggers some arbitrary script12:15
dsc_because there are databases on the internet that contain phone numbers that are known to be spammers (robo calls)12:15
dsc_so maybe its possible to verify incoming phone numbers this way by doing some REST call and then `kill -9` the call process (or however calling works)12:16
uvos__dsc_: https://github.com/maemo-leste/sphone/blob/master/src/modules/external-exec.c12:52
uvos__dsc_: https://github.com/maemo-leste/sphone/blob/446153b81cae8d46dab2ecb3572394f303fbcaf0/config/sphone.ini#L2812:52
uvos__you cant kill something to stop a call12:56
uvos__since the process that handles the call is running on the modem12:56
uvos__not on the main cpu12:56
uvos__you must use the ofono dbus interface to hangup the call12:57
dsc_cool :)12:59
arno11really cool13:00
arno11Wizzup: sicelo: after triple-checking, SIP calls and messages are working at 100% on N900 through Twinkle, no more troubles with inbound sound, following the process from yesterday night (GMT lol)13:05
arno11On the other side the CPU usage is still very high because of PA threads.13:08
arno11One more thing, PA autospawn must be activated.13:09
arno11But that's already activated per default anyway13:09
arno11(note: now i have SIP calls working at 100% in my old install as well, re-activating autospawn and PA realtime stuff...)14:02
siceloat 100% means ... 100% cpu usage?15:09
arno11sicelo: i mean 100 % working :)15:32
bencohso no more sound hiccups? what did you have to change?15:34
arno11bencoh: on N900 from a fresh install and devel dist-upgrade: alternate sample rate to 4000, resampling method to 'trivial'15:37
bencoh4khz? uh ...15:37
arno11yes15:38
bencohthat's kinda ... on the low side15:38
arno11yes15:38
arno11tbh, even at 4khz the sound is not bad15:40
arno11and that's only the number of samples per sec15:42
bencohwell, it also cuts frequencies higher than ~2khz15:45
arno11not sure because of resampling15:49
arno11and that's probably why PA cpu usage is so high15:50
Wizzuparno11: why does pa autospawn need to be activated?15:50
arno11Wizzup: apparently because it avoids 'disk sleep' state for PA sink thread15:52
Wizzupbut pa autospawn only means it will start another PA next to the one we already have15:52
WizzupI don't think it means anything else, right?15:52
Wizzupsorry, it's ~7am here so still waking up15:53
arno11ok lol so good morning.15:53
Wizzupsicelo: btw I pushed the news post draft online to github in case you want to looksie15:53
Wizzupin any case I will retrace the same steps today at work, see if I get calls with audio working, in ~2-3 hours15:53
Wizzupif I have working audio in SIP then I can also toy with the settings15:54
Wizzupsee if there's some performance to be gained and such15:54
arno11Wizzup: for autospawn: imagine pa sink thread is bugging and not working, it cannot restart with no autospawn i think15:54
Wizzupso, I might be wrong, but I think autospawn just means that if PA isn't running yet for the given user, it will be started15:55
arno11ok for retracing steps15:55
Wizzupso the only effect of autospawn will be that it starts another PA daemon as your user15:55
Wizzuprather than use the running system one (which is pulse user)15:56
Wizzupand it might very well have different settings15:56
Wizzuphttps://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Running/15:56
WizzupI'll brb15:57
arno11ok to be 100% sure i'll deactivate autospawn again to see what happens16:00
arno11Wizzup: ok i was wrong ;) it works with no autospawn16:13
bencohnice16:14
arno11so the keys are 4000hz rate and resampling16:14
arno11and to be sure realtime scheduling is activated (but with default cfg it's ok)16:15
arno11in fact the same settings were blocking phone calls and sip from the beginning16:17
arno11it seems we can't communicate with the modem using sample rate > 4KHz16:21
Wizzuparno11: ok, great16:25
Wizzupso then we will disable autospawn just in case, I think16:26
Wizzupjust to have it not mess with us in the future16:27
arno11totally agree16:27
WizzupI wonder if there is anything to be learned from the pa config on fremantle, settings wise, there is a big difference in versions and it had nokia specific (closed and open) modules also16:27
Wizzupbut maybe just to see what their sample rate was, and if they had some alternate sample rate16:27
Wizzuparno11: something that I don't understand yet, I think PA can downsample 44.1k to 4000, right? So why do we need alternate sample rate?16:28
Wizzupis it because both mic and modem only like 4000Hz?16:28
Wizzup(but this is not advertised clearly?)16:28
arno11very good questions, no idea16:29
Wizzupas in, I would think that if PA *knows* that the mic is only 4000Hz and so is the modem, then it should just downsample, and yet it might cost cpu, but it should still -work-16:29
Wizzupok16:29
Wizzupbecause in that case we might be able to fix that in the driver or ucm, to advertise the right rates, or we missed some setting that allows it to record at higher freq16:29
arno11maybe16:30
arno11looking to fremantle stuff should be interesting...16:31
Wizzupprobably also very confusing jfyi16:31
arno11yes probably :)16:32
arno11one more thing, fremantle is using dsp16:32
arno11maybe that's the only way to use higher freqs16:33
Wizzupright, it probably is16:35
WizzupI don't know anything about that16:35
Wizzupgot to go, back in 20-30 mins16:35
arno11ok16:36
WizzupI'm here btw, just waking up with some coffee17:53
WizzupI will retrace your sip steps this morning, see if I can get some audio17:53
Wizzuparno11: btw I wrote some stuff on the n900 progress here https://github.com/maemo-leste/maemo-leste.github.io/blob/source/content/maemo-leste-chimaera-5-year-anniversary.rst#nokia-n900 - anything else you think we need to add?17:54
Wizzup(this isn't the official news post yet btw)17:54
arno11Wizzup: for audio: cool. for n900 stuff: i'll have a look18:04
tg-bridge-bot<Peduityourselfism> Just was gonna ask about the official post. I have been following what you guys do, last night till the end and on other days too. Just awesome what you do. Just not giving notice cause your talks are above my pay grade and security credentials.18:18
arno11Wizzup: could be cool to talk a bit about overclock (i use it for now 6 months and it is really stable and never crashed). i think it is an important feature for most Fremantle users.18:24
arno11otherwise, i think the most important stuff with N900 now is stability and Leste is really stable on it now18:26
Wizzupre: overclock, good idea, I wonder if we can make it easier for people where it surives kernel upgrades so to say18:28
arno11i think the easy way is to provide a bash script to create a new uImage after each kernel update.18:31
arno11or providing a custom kernel for power users like fremantle :)18:32
WizzupIt's just some device tree magic right?19:00
arno11just a different opp table in dts (arround 50 lines of code only)19:01
arno11but need another uImage to work because doesn't work on the fly19:02
Wizzupyeah19:11
tg-bridge-bot<Peduityourselfism> power-kernel sounds old maemo, which would be great.19:23
arno11agree :)19:29
arno11Wizzup: i just noticed you talk about n900-pm script in news post. but we can't use it as is because off soc_idle_states (off mode)19:48
arno11if we remove soc idle part and start script it gives n900 arround 4 more hours idle (keeping only uart suspending stuff)19:53
arno11i can make a PR if you want19:55
Wizzuparno11: yeah but we can use it to measure some stuff20:12
Wizzuparno11: hm, probably good @ pr!20:12
arno11to measure stuff: yes indeed, i mean just commenting the soc_idle part is enough to avoid reboot or weird screen stuff.20:28

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