libera/#maemo-leste/ Saturday, 2022-07-30

uvosWizzup: your shure this dosent do anything whilest not recording?10:01
uvosotherwise it would waste quite some power while just playing stuf i presume10:01
Wizzupuvos: will verify10:14
uvoshttps://github.com/maemo-leste/bugtracker/issues/618 please also check this on a pp10:14
Wizzupok10:20
Wizzupso there's recording/playback with echo cancel, pp testing for #618 and droid3 kernel with opp removed for today10:21
WizzupI also wanted to try out pipewire on my laptop, but that can maybe wait ;)10:21
Wizzupbtw the echo cancel works really well10:21
Wizzupit makes an insane difference in sip calls10:21
Wizzup(on speaker)10:21
uvosok10:22
uvosbut this is just echo canceling right. can pulse do fancy background noise cancelation like the d4 modem dose?10:22
Wizzupyes, it can10:23
Wizzup-but-10:23
Wizzupit doesn't work well in my experience, and it has some show stopping bugs10:23
Wizzuphttps://github.com/werman/noise-suppression-for-voice10:23
Wizzupmost notably this gem https://github.com/werman/noise-suppression-for-voice/issues/1510:23
Wizzupbut other than that rnnoise works amazingly well10:23
WizzupI've clapped my hands, sat next to a road, etc, and none of it came through10:24
uvoscool10:24
uvosbut thats not what the d4 dose10:24
WizzupI don't know what the d4 does then10:24
uvosit uses a second mic and amps the difference between them10:24
uvosand then subtracts that10:24
uvosand one is closer to the speaker10:24
Wizzupah:10:24
WizzupPulseAudio comes with a module that can be used to perform acoustic echo cancellation of the microphone input, and some background noise reduction.10:24
WizzupI think it might do both then10:25
uvoscool10:25
Wizzupwe can also do it with the pulse prop way: https://www.reddit.com/r/linux/comments/2yqfqp/just_found_that_pulseaudio_have_noise/10:25
Wizzup(instead of default sink)10:25
uvosyeah10:26
uvosdepends on how it behaves i gues10:26
Wizzupright10:26
Wizzup>In the particular case of Pulseaudio the echo cancellaton includes noise filters. It would be better if they were separate, but it can still be an improvement in input quality nevertheless, even if the echo isn't a problem.10:26
Wizzupok, cool10:26
Wizzupbut I really loved the rnnoise for meetings fwiw10:27
Wizzupuvos: btw we -could- try to make device-specific params for beamforming: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#module-echo-cancel11:08
Wizzup(see mic_geometry, target_direction and aec_args)11:08
Wizzupbut I think we typically use just one mic11:09
Wizzupuvos: looks like it doesn't idle well :(11:58
Wizzuphm... or does it12:03
Wizzupso just mpv with playback seems unaffected12:05
Wizzupok I did make a mistake in leste-config :)12:10
WizzupI forgot to run the magic script12:10
Wizzupyeah ok so with the config I pushed it definitely doesn't always idle12:13
Wizzup*sigh* :)12:14
Wizzupuvos: yeah so I can confirm that just loading the module seems to cause it to do work, even though sink/source is not in use12:22
Wizzupwill have to rethink the approach. :)12:22
Wizzup(afaik pipewire does not have this problem fwiw)12:22
leleloydegen opened an issue: https://github.com/maemo-leste/bugtracker/issues/624 (X terminal title does not revert back when disconnecting from ssh)12:38
uvosWizzup: yeah thought so13:55
uvosWizzup: a envvar would be a good idea then13:56
Wizzupwill see what it does14:07
Wizzupatm just having it loaded is a problem14:07
Wizzupso let's see if it gets unloaded14:07
Wizzupbtw I think sphone still swaps the rtcom uids14:12
WizzupI'll add that to my list14:12
uvosyes i dident change this14:16
uvosWizzup: https://github.com/maemo-leste/sphone/blob/600c9882cf77d4d754b0ee65f11a6a38aeb12060/src/modules/store-rtcom.c#L10514:18
leleloydegen closed an issue: https://github.com/maemo-leste/bugtracker/issues/624 (X Terminal window title does not revert back when disconnecting from ssh)14:38
eloyoh nice, there is a GitHub IRC bot :)17:09
eloysome other issue I am experiencing on my Droid 4: random shutdowns during installations from the App Manager. I can't find any open bug for that, not sure if it's just me. It happened with QTWebBrowser and Surf. Surf was working after a second attempt, my Droid 4 shutdown again after trying to install QTWebBrowser a second time. It's probably not a rootfs size issue, I ran that /etc script before installing.17:13
eloymaybe my microSD is borked, since the installation is quite heavy in I/O terms. But weird that dd'ing Leste itself seems to have worked fine then17:17
eloyoh hey, it works now, on a third try! Pleasantly surprised how smooth QTWebBrowser is working :D17:21
uvosis there white led light during this shutdown?17:22
eloyuvos: hmm, not sure if there was. Wouldn't that have indicated a locked screen? Pressing the power button showed me the Motorola logo.17:32
eloyuvos: okay, it happened again but using `apt install`. It showed a white led indeed for a few seconds. Then I could boot again.17:42
uvosyeah thats dsme shuting down because of a temporarly non working deamon17:43
uvosWizzup: dident we disable this travesty>17:43
uvoseloy: dose /etc/no_lg_reboots exist?17:43
eloylol I can't even finish booting because it shuts down before finishing boot :')17:46
uvoseither 1 during the upgrade you broke a deamon17:47
eloyI saw some issue about libthermalobject.so not being found17:47
uvosso now dsme is in a bootloop17:47
eloyfun stuff :D17:47
eloytime to dd again17:47
uvosno17:47
eloyoh17:47
uvosyou can insert the sdcard into a pc17:47
uvosand create the /etc/no_lg_reboots file17:47
eloyah, I'll do that17:47
eloythanks17:48
eloyuvos: should it exists as a regular file? it currently is a symlink to /etc/no_lg_reboots.leste18:07
eloywell, I made it a regular file anyway, and now it works. thanks!18:16
uvosaha18:35
uvosWizzup: ^^^18:35
uvoseloy: you need to finish the apt dist-upgrade now18:36
eloyuvos: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded :)18:38
Wizzupuvos: hmmm I thought we did add it to leste-config19:19
Wizzuplet me see19:19
uvosWizzup: we did19:24
uvosbut apearntly dsme checks for a regular file19:24
uvosand its a link19:24
Wizzupah...19:27
Wizzupthat's a problem in leste-config, we can't do that another way19:27
Wizzupmaybe we need to fix that in dsme then19:27
uvosi mean its a zero byte file19:27
uvosyou could just touch in postinst19:27
uvosbut yeah fixin dsme is better19:28
Wizzupuvos: true, but then removing it gets more tricky19:35
Wizzupso the check in dsme is:20:08
Wizzup    if (access(FILE_REBOOT_OVERRIDE, F_OK) != 0) {20:08
Wizzupuvos: hmm shouldn't that just work with symlinks?20:10
Wizzupeloy: can you confirm that it really doesn't work as a symlink?20:12
Wizzup# /tmp/test20:15
Wizzupret=020:15
Wizzup(my test program doing the same as dsme)20:15
Wizzupso I think ew're looking at something else20:15
eloyhmm I don't have a way to test that will reliable shutdown the phone20:16
eloymight be something else20:17
Wizzupwell, was it fixed when you removed the symlink and touched the file?20:17
uvosWizzup: hmm so i figured out why its not propagating20:34
uvosWizzup: so the "DAC Voice" widget outputs to Voice PGA20:34
uvosbut the Voice PGA dosent have DAC Voice as an input20:35
uvosthat... should not be possible at all20:35
Wizzuphuh, that's weird20:39
Wizzupthat's a problem regardless I think20:39
Wizzupuvos: I guess that's in the intercon[] static var yeah?}20:47
uvosyeah20:55
WizzupI mean that might also be a problem regardless of our 'hack'21:04
Wizzupso it's [output, switch, input] ?21:05
uvosyeah21:07
uvosbut that would not help anyhow21:07
uvosi put printfs in the printing function21:07
uvosand it never even checks if the voice call path is active21:07
uvosso i dont understand how this is even supposed to work at all21:08
uvos*i put printfs in the path checking function21:08
Wizzuphm...21:23
uvosWizzup: https://github.com/maemo-leste/droid4-linux/commit/e7992eb19c35ee62ad102445c8cf590365d514d921:26
uvosi mean this works21:26
uvos(just made a call, output works fine, not sure about mic in)21:26
uvosbut yeah21:26
uvosasoc needs more investigation21:26
uvosbest case we get someone who knows how this is supposed to work21:26
uvosto talk to us21:27
Wizzupis sre still around?21:27
uvosi send him an email about it21:27
uvoshe dident awnser21:27
uvosbut he dose have some activity on the malining list21:27
uvos*mailing list21:27
uvosWizzup: anyhow so what was needed to make mic input also work?21:28
uvosregister wise21:28
Wizzupuvos: I think it was what I pushed to leste-config, just enabling certain things21:33
Wizzupnot registers themselves, but if that's not it, I have to see what it was21:33
uvosok21:33
WizzupI made a tool to compare the register states with human readable output21:33
uvoscould you maybe build the current kernel21:34
Wizzupso it should be pretty simple to compare with what I have in my sphone branch21:34
uvosand diff the regs for mic input?21:34
uvosthe output works ok now21:34
uvosOXRA or what the register was called21:34
Wizzupcurrente kernel, do you mean with the commit you linked?21:34
uvosyes i pushed that to the maemo tree21:34
Wizzupok, so make a new -devel one then21:34
WizzupI will do that21:34
uvosno wait21:35
uvossec21:35
Wizzup(I was also building a kernel for the droid3 on my laptop with the opp disabled)21:35
uvosWizzup: should be ok21:35
uvosso all i need to do is kick it via lel?21:35
uvosor do i need to change the changelog?21:35
uvosthis is a bit akward since the changelog lives in a different branch21:36
Wizzupwe need a tag, changelog, etc21:37
uvosok21:37
uvostag where21:37
uvosthe source branch21:37
uvosor the packaging branch21:37
Wizzupthe tag should be on the src21:41
Wizzupthe changelog should be in maemo/beowulf-devel21:41
Wizzup(with the right tag as version of course)21:41
Wizzupuvos: lmk if you want me to do it21:42
uvosWizzup: no go away xD21:46
Wizzup:D21:47
uvosill do it :)21:47
uvosWizzup: [21:52] <lel> Unauthorized21:52
uvosi gues not21:52
uvos:P21:52
Wizzupwe should probably change/fix the bot21:53
Wizzupit's very labour intensive currently to add folks21:53
Wizzupso I'll wait for this to build, upgrade and then check sphone on my d4 again21:54
uvoscheck21:55
uvosill try 5.18.14 in the mean time21:55
Wizzupis that just a newer stable release?21:55
uvosyeah21:55
uvosno reason not to update while at it21:55
Wizzupyes21:55
Wizzupwill upgrade now22:19
Wizzuphm, the upgrade seems stuck in i/o or something22:33
Wizzupah continud now22:34
uvos5.18.14 also works fine btw22:34
Wizzupok22:34
Wizzuprip 10 days uptime ;)22:35
Wizzuphm wifi just connected on first try after boot22:40
Wizzupprobably unrelated :)22:41
uvosWizzup: ok22:43
uvosi just updated it for 5.18.1422:43
uvosso you can kick it again if you want22:43
Wizzupok, I think indeed that the mic doesn't work yet, let me debug now (restarting device to make sure)22:45
Wizzupuvos: hm I am not sure if I can still write registers22:53
Wizzupdid you remove that commit?22:53
uvosno22:53
uvosbut that commit never made it to the devel22:53
uvosits in expieramental22:53
uvosso no its not there22:54
Wizzupok22:55
Wizzupwell I think it maybe just works?22:56
Wizzupyou sure you don't have mic?22:56
Wizzupit's a bit hard for me to test with two phones next to each other (it starts ringing quickly)22:56
Wizzupbut I have muted my fremantle and I can hear my d4 mic22:56
uvosum ok maybe it just works yeah22:57
uvosis the register state ok?22:57
Wizzupso I definitely made some changes to the UCM22:58
Wizzupdid you get those?22:58
Wizzupok there's definitely still some stuff to work out23:03
Wizzupbut speakerphone call should work23:03
Wizzupswitching to earpiece in pulse didn't work for me23:04
Wizzupand I need the reg writing to test what it is :)23:04
uvoshuh23:04
uvoswhy would you need write access to read the state23:04
Wizzuphttps://dpaste.com/4SEGUEAHL.txt23:05
Wizzupleft: current in call after selecting, right: my known good preset23:06
Wizzup(I also don't hear anything in the earpiece)23:07
WizzupI think I am selecting the right things in alsamixer but without a kernel reg actually being on they might not do the right thing23:08
Wizzupuvos: yeah so the reg access just makes it easy to see what in particular I need23:09
uvosok sec let me upgrade23:10
uvosif you want write access please rebase the expiramental kernel23:10
uvosanyhow it just worked (output) so im not sure whats going on23:10
Wizzupdo you mean speakerphone?23:11
uvosno handset23:11
WizzupI see23:11
Wizzuphow about mic?23:11
uvosdunno23:11
uvosim calling a service that tells you the time23:11
Wizzupso what I do: I have my fremantle n900 with a headset, and I call up my d423:11
Wizzupand then after a short time I mute the n90023:12
Wizzup(otherwise it starts ringing)23:12
Wizzup(ofc I unmute the n900 to test earpiece)23:12
Wizzupthis is a semi easy way to test calls in any case imh23:12
uvosi call +494042899023:13
uvosstill works23:14
Wizzupjust saying, in case you wanted to test another way23:15
Wizzupsphone still prefers speakerphone, yeah?23:15
uvossphone just switches the profile23:15
uvospulse just sets something by default23:15
uvos(last used maybe?)23:15
uvosanyhow switching after in pavucontroll-qt works fine here23:16
WizzupI am in a call now, trying it23:16
WizzupI just get nothing23:17
Wizzupinternal speaker works23:17
Wizzupinternal earpiece is neither input nor output23:17
Wizzupwhere do you select this, just to be clear?23:18
Wizzupmy X segfaulted23:18
Wizzupor maybe the screen hangs23:19
Wizzupargh23:19
Wizzupoh yea it's stuck in this sigalrm business23:19
* Wizzup restarts23:20
uvosok so i boot the phone23:20
uvosstart ofono, online the modem enter the pin23:20
uvosstart sphone and pavucontrol-qt23:20
uvoscall +4940428990, wati untill it starts speaking via the speakerphone23:21
uvosswitch to internal earpiece port in the output devices tab23:21
Wizzupyeah ok so apart from the number we're doing the same thing23:21
uvosoh wait23:22
uvosi bootet the wrong kernel23:22
uvosahh uvos: I think it is missng maemo-kernel-5.18.1423:22
uvosi tagget it 5.18.14-123:22
uvosits building the wrong commit23:22
Wizzupshall I stop the one on jenkins?23:23
uvosyes23:23
Wizzupit never built fwiw23:23
uvosso wait23:23
Wizzupsee ##leste-ci23:23
uvoshow dose the tag relate to the version23:23
uvosie how am i supposed to know what to tag it with23:23
Wizzupthe tag has to correspond to the changelog entry23:24
Wizzupso whatever you put in the changelog has to be in the tag23:24
uvosyeah but thats omap-linux (5.18.14-1) unstable; urgency=medium23:24
uvossame for the older versions23:24
WizzupI see your question23:24
uvosomap-linux (5.18.9-3) unstable; urgency=medium23:24
Wizzupsee debian/gbp.conf in maemo/beowulf-devel23:24
Wizzupit is maemo-kernel-(...)23:25
uvosokay23:25
Wizzupbecause it otherwise gets confusing with actual linux tags23:25
Wizzupbut for the other kernel, that I am testing, you made the correct tag, right?23:25
uvosbut maemo-kernel-5.18.9-3 dosent exist23:25
uvosWizzup: no23:25
uvosits wrong it dosent have the commit23:25
uvosits maemo-kernel-5.18.923:26
uvosso im not sure how the different -x versions are supposed to work23:26
Wizzupah, ok23:26
Wizzupuvos: yes, that's why I just increase the version or add .1 or something23:26
uvos * [new tag]                   maemo-kernel-5.18.14 -> maemo-kernel-5.18.1423:26
uvosanyhow that should be ok23:26
Wizzupso do we just try 5.18.14 then, with the commit in?23:26
uvosi hope23:26
uvosyes23:26
uvosthats what i was useing23:26
uvos(localy built)23:26
Wizzupok, so that might explain it then :)23:27
Wizzupstarted the build23:28
Wizzupbtw, not sure what makes more sense, but when moving to a new testing release, shouldn't we rebase on top of it instead of merging it in?23:30
WizzupI guess it doesn't matter much, but it's just easier to see our commits that way23:30
uvoseh23:30
uvosi rebase on major versions23:31
uvosor remerge rather23:31
Wizzupok23:32
Wizzupjust checking23:32
uvosbuilding the source package is hella slow23:42
Wizzupit has to fetch it23:43
Wizzupif we host our own git on the same machine it'd be faster23:44
Wizzupbut I am not sure if I want all of that at my home :)23:44
uvosno more need for gas heating in winter23:45
WizzupI'm not usually home anyway so no heating required :P23:45
Wizzupthe droid3 just reset on my, with I think a kernel with the opp patch applied23:51
Wizzup-- OMAP 00004430 (version 00000b22) PPA release1.3.5 R223:51
WizzupReset reason = 000379a223:51
WizzupModel ID is 0x0000000323:52
WizzupI think that's just part of the boot procedure, mostly, right?23:52
uvosthats mbm yeah23:52
Wizzupin any case not sure if the opp patch really helps23:52
uvos000379a2 is wdr i think23:53
WizzupI recall that you said that before, but IDK where the values come from :)23:53
uvosi dont either, but you can see a pattern in those after a while23:53
uvosbut i think its just dumping the omap register23:54
uvosso you could look in trm23:54
Wizzupright23:54
Wizzuproot@devuan-droid3:/sys/bus/cpu/devices/cpu0# cat cpufreq/scaling_available_frequencies23:57
Wizzup300000 600000 800000 100800023:57
Wizzupyeah so the patch worked I'd say, but it doesn't have the intended effect23:57
uvosyeah its clearly something else23:58
uvosmaybe check emif registers23:58
uvosie diff them between android and us23:58
Wizzupcompare with android? or?23:58
Wizzupok23:58
WizzupI think that's something I'll try to do another day (maybe tomorrow)23:58
Wizzupbtw your patch:23:59
Wizzuphttps://github.com/maemo-leste/droid4-linux/commit/e7992eb19c35ee62ad102445c8cf590365d514d9#diff-3943bf3a33be67e51248be2256236bc49d57d158b6963870c0410b4853303cf7R150223:59
WizzupI think you want to disable Speaker Right PGA23:59
uvosoh yeah23:59
uvosok ill fix that tomorrow23:59

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