libera/#maemo-leste/ Friday, 2023-04-14

Wizzup^Tcache: welcome :)00:38
buZzfreemangordon: measured with http://space.nurdspace.nl/~buzz/maemo/batmon.py00:57
^Tcache<Wizzup> "𝔗𝔠𝔞𝔠𝔥𝔢: welcome :)..." <- Thanks Wizzup03:15
norayrhello, folks.03:33
norayri was thinking to build 'tablet mode' applet, but i am afraid it uses some nokia dbus stuff which doesn't work anymore.03:33
norayrcan someone take a look? we need something like that - to disable cellular but still be able to use wifi.03:33
buZzfreemangordon: ah, after ~10 minutes of screenoff, it drops to 70-90mA04:22
freemangordonbuZz: that's still too high, please confirm TS is inhibited08:28
freemangordonbuZz: cd /sys/class/power_supply/battery/09:28
freemangordonwhile [ 1 ]; do cat power_avg; sleep 60; done09:28
freemangordonWizzup: what the?!? https://github.com/maemo-leste/dsme/blob/master/Makefile#L6409:48
freemangordonalso, why do we have this https://github.com/maemo-leste/dsme/blob/master/debian/control#L14 ?09:49
Wizzupfreemangordon: I think that's work from spinal that we merged09:49
freemangordonyes, but you changes systemd to logind09:49
freemangordonneither ow which are used on devuen09:49
freemangordon*of09:49
Wizzuphm?09:50
freemangordondo you mind if I enable systemd/elogind support almost unconditionally (based on pkgconfig package presence)? Instead of checking the build machine OS current Makefile does09:50
freemangordonsee the check in the Makefile09:51
Wizzupmakes sense09:51
freemangordon"ifeq (,$(wildcard /etc/devuan_version))"09:51
freemangordonthis is ....09:51
Wizzupa hack ;)09:51
freemangordonweird to say at least :)09:51
freemangordonso, will enable systemd/elogind support based on pkgconfig packages presence09:52
arno11sicelo: Wizzup: guys...n900 calls are working both ways !!!12:34
arno11with pulseaudio and cmt_pulse12:34
Wizzuparno11: amazing12:34
Wizzupinfo pls :D12:35
arno11well, sample rate was the issue: disabling resampling and forcing pulseaudio to accept 4000 hz rate authorize cmtspeech to record and send data.12:38
arno11as simple as that12:39
Wizzupsuper...12:39
arno11the solution was in source code12:39
arno11yes really cool12:39
Wizzupso you changed pa src?12:40
arno11i just changed daemon.conf resampling option and alternate default samplerate12:41
Wizzupok, care to share the changes? :D12:41
arno11yes of course.12:41
arno11i will share stuff this evening12:44
Wizzupgreat12:45
arno11i just need time to test few other things in alsamixer and sphone12:45
arno11but it works12:45
arno11able to take a call from my wife12:46
Wizzupthis is really great news man :)12:46
arno11:)12:46
Wizzupprobably warrants a new post together with the chimaera releas when we integrate it12:47
arno11:) cool12:48
freemangordonarno11: great work man!12:55
freemangordonI guess we'll be able to divert .conf through leste-conig12:55
freemangordonin the meanwhile I taught dsme on elogind sessions :)12:56
arno11freemangordon: thx :) and great work from you too as usual12:58
freemangordonheh12:59
siceloarno11: you're THE man12:59
sicelohow's quality?12:59
arno11:) quality is acceptable but few cracking noise13:00
arno11normal at 4000hz13:00
arno11i think its possible to use 8000hz13:00
arno11i will try13:01
arno11changing few things in mixers13:01
sicelothis news will be very welcome on #maemo and tmo13:01
siceloand might generate a bit more interest in Leste13:02
arno11yes probably13:02
Wizzupand latency?13:04
arno11just let me ask my wife lol13:05
arno11according to her (and me) latency seems not bad13:08
arno11anyway that's easy to deal using alsamixer13:08
arno11i think we can improve that a bit13:09
arno11let me try pa_test13:12
arno11back in a bit13:12
arno11one second latency using pa_test13:14
arno11with no change in mixers13:15
arno11i'll try playing with that to improve that13:16
arno11latency13:16
arno11sound is clear13:16
Wizzupcool13:17
arno11i have to go. ttyl13:18
sicelocalls been the main reason people state for disinterest in Leste. of course this may be a little late for some, with 2G gone (but that's the case with everything we support except pp)13:18
freemangordonWizzup: I'll push dsme changes to -devel without PR, if you or uvos or anybody has any concerns about them, LMK13:26
Wizzupgo for it13:27
Wizzupsicelo: I don't think both 2g and 3g are gone in places?13:27
Wizzupthat would be truly insane13:27
freemangordonfor sure 2g is here to stay13:27
sicelosomeone was saying it is gone/going somewhere in USA. i didn't check if what they were saying was supprted by facts13:28
freemangordonwell, USA... :)13:29
freemangordonthat's another universe anyways13:29
sicelo:-D13:31
sicelowith voice calls working on N900, the issue of sphone preferring portrait needs to be tackled ...13:33
siceloor it wasn't an issue for arno11?13:33
Wizzupyes, that is a problem still13:35
WizzupI imagine he maybe used ofono scripts to test13:35
freemangordonWizzup: can't we somehow divert reboot and shutdown commands?14:53
freemangordonto point to dsme that is14:53
Wizzupfreemangordon: we could I think14:56
Wizzupnot sure if we should14:56
freemangordonI think we shall do something about14:56
freemangordonas now dsme restarts processes on reboot/shutdown from shell14:56
Wizzuplike what if dsme does not run14:56
Wizzupduring some debugging14:56
freemangordonhmm14:57
freemangordoniirc there are some hooks that can be made14:57
* freemangordon checks14:57
arno11Wizzup: sicelo: indeed i used ofono script but surprisingly sphone works great (keyboard open. no weird crash or resolution)15:26
arno11sound is good. latency acceptable15:27
arno11latency is better in real condition than using pa_test15:27
freemangordonWizzup: will you have some spare time to revert the revert of xorg?15:27
WizzupI think I do right now actually15:28
freemangordonthanks!15:28
Wizzuparno11: yes keyboard open is a hack to make sphone not crash n900 driver atm15:28
freemangordonI created policykit-1-hildon package which for now will contain only xsession script and dependency to gnome auth agent15:29
freemangordonwith those 2 we are done15:29
freemangordoneverything else is in place, unless I am missing something15:29
Wizzupfreemangordon: shall I also add the conflicts with xserver-xorg-legacy again then15:30
Wizzupto hildon-base15:30
freemangordonyes15:30
Wizzupok15:30
Wizzupbtw this is to -devel first15:31
Wizzupthen I will try it, and then move to non-devel15:32
Wizzupfreemangordon: sounds good @ policykit-1-hildon15:32
freemangordonwe shall move all @ once devel->stable15:33
freemangordonwell...15:33
freemangordonwe better do15:33
arno11Wizzup: freemangordon: are alsamixer default settings similar to fremantle or are they generic ?15:37
Wizzupthat's a complicated question15:37
arno11ah ok15:37
Wizzupthey're probably not like fremantle by default15:37
Wizzupfremantle has very complicated audio mgmt15:37
Wizzupand the n900 alsamixer settings if you ask me are also complicated... :D15:37
arno11ok because i use fremantle settings to get audio calls15:37
Wizzupah, I see, do you have a way to diff them?15:38
Wizzupbecause I think our default alsamixer settings are in the n900 image15:38
freemangordonarno11: sorry, I am not the one to ask about audio routing, Wizzup/uvos know more than me. Most probably you know more than me as well :)15:39
Wizzupleste-config-n900 contains leste-config-n900/var/lib/alsa/asound.state15:39
Wizzuparno11: but really what we need in the very least is UCM2 for n90015:39
arno11Wizzup: yes definitly15:40
Wizzupin general fremantle does a lot of funky stuff audio wise, which we currently definitely don't do, but we don't need it immediately either15:40
arno11freemangordon: ok15:40
arno11ok i just asked to be sure my changes in alsamixer had an inpact15:41
Wizzupyeah, they should be saved and persistent across reboots maybe even15:44
Wizzupdepending on what PA does15:44
arno11yes15:44
arno11Wizzup: what is the best way to share voice call stuff ?15:52
Wizzupemail and patches I guess15:53
Wizzupor github pull requests15:53
Wizzupmaybe just an email with description first15:54
arno11ok15:54
arno11Wizzup: btw there are NO error messages during calls: no buffer or float point errors16:07
Wizzupcool16:08
arno11that's incredible how a simple thing (samplerate) could generate so much errors are troubles not directly related16:08
arno11anyway that's usual stuff with pulseaudio...16:11
arno11*or16:12
freemangordonWizzup: we shall ad dependency to policykit-1-hildon in one of the metapackages16:13
freemangordon*add16:13
freemangordonany idea which one?16:13
Wizzuphildon-meta ?16:16
freemangordonok, please add when changing for xorg-legacy16:16
Wizzuphildon-base and hildon-meta are not the same16:17
Wizzupbut I can add it to hildon-meta16:17
freemangordonok16:17
freemangordonWizzup: what is hildon-session package?16:19
freemangordondo re need it still?16:19
freemangordon*do we16:19
Wizzupseems like not I think16:19
freemangordonshell I remove it from repos_core.py ?16:20
freemangordonwhile I am at it16:20
freemangordonremoved it16:21
Wizzupyes16:22
Wizzupplease16:22
arno11Wizzup: i compared stock alsamixer settings16:27
arno11there are really different16:27
arno11i think we should use fremantle ones16:28
arno11but there are more than 200 parameters...16:28
arno11i think i'll do a copy of my custom asound.state (calls working. music and video as well) and send it by email ?16:31
arno11i did mine by hand using fremantle as a model16:31
arno11because i didn't find a clean way to load another asound profile16:34
freemangordonWizzup: did I get it right that you will add the dependency?16:37
Wizzuparno11: keep in mind that fremantle settings will be different depending on what the phone is doing16:37
Wizzuparno11: there is no 'one' good state16:37
Wizzupfreemangordon: sure16:37
freemangordonok16:37
Wizzupfreemangordon: did you build it for maemo/chimaera?16:38
freemangordonmaemo/chimaera-devel16:38
freemangordonit needs dsme from -devel16:38
Wizzupok16:38
arno11Wizzup: i know. that's why i tried to capture alsamixer settings during call16:38
arno11and it works on leste16:39
Wizzupright, well, keep the files around, they will help with making UCM216:40
WizzupUCM2 is just some weird syntax around setting amixer states mostly16:40
arno11yes ok16:40
freemangordonWizzup: how do we debian package our omap kernels? I am asking because it is missing postinst script and I want to fix it17:00
freemangordonah, got it17:01
arno11Wizzup: is it ok to send an email to maemo-leste@lists.dyne.org ?18:08
Wizzupyes, please! :)18:12
arno11ok :)18:12
arno11email sent18:32
WizzupI moved it through the queue18:39
sicelopavel will be pleasantly surprised18:39
Wizzupif you add yourself to the list I won't have to approve future msgs and you will get the replies automatically18:39
Wizzupyou can subscribe here: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/maemo-leste18:40
Wizzup(you don't have to, just fyi)18:40
siceloarno11: thanks for sending to list. helps to keep everyone in the loop and able to pick up the work at any point18:40
arno11Wizzup: ok thx18:43
arno11Sicelo: i'm happy to help FOSS community18:44
Wizzuparno11: btw, tools like parec have a --latency-msec arg that you can set to say 16ms (--latency-msec=16), it might be worth checking what pa func this calls and if the pa cmspeech stuff uses this or not18:50
Wizzupif it doesn't, it could easily explain the delay18:50
Wizzup(if there even is a real delay)18:50
freemangordonWizzup: which machine builds omap kernel?18:51
freemangordonarm32?18:51
arno11ok i'll have a try18:51
arno11but tbh latency is acceptable in real call conditions18:52
arno11for me the thing to improve is micro/HP/earphone levels18:53
arno11i forgot to mention there is NO echo with custom mixers settings18:55
arno11even with pa_test or arecord/aplay which is doing exactly the same thing18:56
Wizzuparno11: weird, I would expect there to be echo since the modem doesn't do echo cancelling22:52
WizzupI guess it's more of a problem with the speaker22:52
Wizzupfreemangordon: let me check22:52
Wizzupfreemangordon: devuan-armhf - yes22:53
freemangordonWizzup: did we ever try to cross-build it?22:53
Wizzupwe could, but it will be slower22:54
freemangordonas it fails here:22:54
freemangordondpkg-gencontrol: error: current host architecture 'amd64' does not appear in package 'linux-headers-omap' architecture list (armhf armel)22:54
Wizzupprobably with bencoh's lxc setup you can22:54
freemangordonwell...22:54
freemangordonI'd better fix rules file to be able to build it in VM22:55
WizzupI am not sure, but it seems to me this problem might be more with your vm than our rules?22:55
Wizzupin any case feel free of course to change it locally and see if it helps :)22:55
freemangordonit is in the build scripts22:55
freemangordonor rather in dpkg-gencontrol22:56
Wizzupwell, the error is right, though, n o?22:56
freemangordonno, because I am doing DEB_BUILD_OPTIONS="parallel=5" dpkg-buildpackage -b  --target-arch=armhf22:56
freemangordonit should take *target* arch, not host ;)22:57
Wizzupok22:57
freemangordonit takes  DEB_HOST_ARCH instead of  DEB_BUILD_ARCH22:58
freemangordonI'll just hack that in rules22:58
freemangordonwhy I am doing that - kernel headers package lack postinst that process dkms scripts23:00
freemangordonthat's why ibhb-dkms doe not getr rebuild on new kernel version23:00
freemangordon*does not23:00
Wizzupah..23:01
freemangordonhmm, I guess I lack a parameter to dpkg-buildpackage23:06
freemangordonWizzup: my bad (DEB_HOST_ARCH)23:13
Wizzupfreemangordon: check23:20
freemangordonWizzup: https://pastebin.com/hEVB5Eyh ?23:52
freemangordongoing to push that and make a new release from -devel23:57

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