libera/#maemo-leste/ Tuesday, 2024-07-23

freemangordonuvos: sphone still does not survive PA restart08:06
freemangordonhttps://pastebin.com/ANKNMd9908:07
sicelotmlind: i sent a patch for N900 dts. i don't know if it was correct to send to you, or i should have targeted someone else. get_maint script still returns you08:26
uvos__freemangordon: thats not a suprse since sphone was not released since then10:11
uvos__its waiting for Wizzup to look at some changes10:11
pereok, so I wrote the image from <URL: https://phoenix.maemo.org/job/leste-image-n900/lastSuccessfulBuild/artifact/arm-sdk/dist/ > to my SD card and booted from external SD, and my N900 is back in operation. :)10:41
pereIs it possible to install it internally?  <URL: https://leste.maemo.org/Nokia_N900#Image_installation > do not seem to say anything about this.10:42
pereI fail to find Norwegian Bokmål language option (nb).  Even after installing norwegian language pack.  Is it broken?10:45
Wizzupuvos__: I will look today/tomorrow10:46
Wizzuppere: I have to check for you, I am still working on building all new translations from weblate10:46
Wizzupbut if there is something obvious missing, like locale-gen for nb, please lmk10:47
perethe latest install solve my earlier issue, where it failed to connect to network, at least. :)10:47
duuudewould it damage the phone if I wire to it a bigger mobile battery with similar voltage? (n900)10:48
perethe interesting use case for me with the n900, is to use it as an address book and calendar, exchanging data with my ical server.  what is the best way to do this?10:51
pereI tested installing SyncEvolution, but it is missing its python-dbus dependency and is not installable.10:52
Wizzuppere: syncevo works, the gui we have might not install yet, but it definitily works10:53
Wizzupcheck out the wiki's Sync page10:53
WizzupI sync to nextcloud, several calendars, contacts, etc10:54
Wizzupnotes/todo s well10:54
duuudeWizzup10:54
WizzupI can look at the missing dep, I think it is not hard to fix, I will need to check10:54
Wizzupduuude: I can't help with the battery question, others might10:55
Wizzupback later today10:55
pereWizzup: I suspect python-dbus -> python3-dbus.11:07
pereWizzup: what does 'syncevo works' mean?  I found <URL: https://leste.maemo.org/Sync >, but it seem to suggest to install the uninstallable package.11:09
pereWizzup: how come <URL: https://github.com/maemo-leste-extras/dorian/pull/17 > was never applied?11:17
siceloduuude: @battery - should be ok11:19
sicelopere: i haven't read that PR with proper attention, but those b64 encoded icons are needed for the package manager to display them as well11:25
peresicelo: so I imagined, and kept working, as far as I know.11:25
sicelocan't parse :-)11:26
perethe patch just switch away from maintaining the image as b64 encoded strings in d/control, and instead allow them to be maintained as separate files in git, and converted to b64 in d/control during build.11:26
pereit make it a lot easier to improve the icons. :)11:27
siceloah, that sounds awesome11:28
pereso I was surprosed that it had gone nowhere for four years.11:29
freemangordonWizzup: maemo-input-sounds PA code is a bit buggy - it aborts if there is no PA running at startup.11:29
freemangordondo you want me to try to fix it?11:30
perefreemangordon: I believe a safe assumtion is that fixes are always welcome. :)11:31
sicelopere: apologies.  we're overworking Wizzup11:31
freemangordonpere: sure, but he worked a lot on the code and has a better understanding than me11:32
freemangordonit is not llike I have nothing else to do ;)11:32
perethat also can be safely assumed for everyone, that we have a lot of other things to do too.   In addition to assuming that you are the one most motivated to fix your problem.  There is no need to doubt, just starting fixing. :)11:33
freemangordonpere: heh11:33
sicelopere: btw you're a DD?11:33
peresicelo: yes.11:33
sicelonice11:34
pereanyway, I'll be back later.11:36
arno11freemangordon: mafw tracker seems ok, but boot is even more difficult now (h-s-m / pin code freeze). removing last vm custom stuff helps11:48
freemangordontracker related?11:52
freemangordondon;t get it11:52
arno11memory related imo11:53
arno11on boot11:53
freemangordonhmm, why would it? not it uses ~10MB before omp requests data11:54
freemangordon*now it uses11:54
arno11i know11:54
arno11no idea what is happening but we must find what is wrong with hsm first imo11:54
freemangordonmhm11:55
freemangordonI agree, but cannot repro here :(11:55
arno11i know :(11:55
arno11i wonder if it is not something in devel because boot was fine from a fresh install iirc but not after devel upgrade11:56
freemangordonI am on devel11:57
arno11with a sim card ?11:58
freemangordonmhm11:58
freemangordonwell, on d411:58
arno11ah ok11:58
freemangordonyou suggest to put sim with pin in my n900 and try?11:58
arno11yes11:59
arno11just to be sure11:59
freemangordonhmm, ok11:59
arno11cool11:59
freemangordonlater on11:59
arno11no rush ofc11:59
perebtw, are you aware of the opensnitch package in Debian?  Perhaps an interactive application firewall would be a god fit for maemo-leste?12:17
arno11Wizzup: we should remove n900 leste-config vm stuff (at least temporary) from -devel, to avoid bias with other issues on boot. (nr_request is still ok btw)12:19
arno11*imo12:19
arno11bbl12:19
peresicelo: did the project create a helper package with built tools since it was proposed in <URL: https://github.com/maemo-leste-extras/dorian/pull/17 >?12:29
sicelono :-)12:30
perewhy not?12:30
sicelolike i said, we're overworking Wizzup 😃12:31
pereaha.  why did you not do it?12:31
sicelookay correct answer is - no one's got around to it12:31
siceloi didn't even know about it until today12:31
siceloi think you might be better placed to pull it off though ;-)12:32
sicelocan you maybe make a rough sketch of how such package would work or be implemented. maybe one of us can pick it up someday12:34
perenot really.  I have other projects.  at the moment I work on updating appstream hardware mapping.  only 60 packages yet to patch.12:34
* sicelo also doesn't currently have time ... still must do Librem5 support in Leste, want to fix the MAC stuff for N900, and was 'sidetracked' by the wifi signal icon12:35
peresicelo: if I understand your proposal, it is that I should spend describing what should be done, in the hope that someone some time in the future _might_ do the required work.  I am afraid the motivation is missing.  As stated earlier, a good assumtion is that everyone is already busy elsewhere. :)12:42
siceloplease be assured that i was speaking in good faith :-)12:43
sicelobut yes, some of us are noobs here, however with some mentoring (if i might put it that way), we're able to contribute something12:44
siceloI'll be happy to look into the proposal outlined in the pr in question, and any extra info would definitely be helpful.12:47
pereI do believe good feith was the basis.  ans sure, mentoring someone who has expressed intent and willingness to contribute is quite different from hoping for some mythical man hour to show up.12:47
pereas for such helper package, pick a name, make a git repo set up the debian/ framework, populate it with the icon script from the pull request and call it a first edition. :)  See for example the dh-di package in Debian.12:49
pereI guess dh-maemo-leste might be a good name.12:52
Wizzuparno11: leste-config I will fix for -devel when the kernel is in -devel (it's still -experimental only)13:04
Wizzupfreemangordon: I can try to fix it if you want wrt m-i-s, but I think it's REd mostly like nokia did it13:05
Wizzuppere: syncevo libs, not the gui, should install with no problem13:05
Wizzuppere: wrt https://github.com/maemo-leste-extras/dorian/pull/17 - let me figure out what package this belongs to13:08
WizzupI think we have a package with some dh helper scripts13:08
Wizzupif not we can make a new pkg for it13:09
Wizzuppere: it wasn't merged because I was hoping we could just make a new pkg for it and re-use it that way13:11
Wizzupmaybe we make maemo-extras-pkg(-dev) ?13:13
Wizzuppere: it looks like the onlt reason syncevo gtk frontend works on my phone is because I dist upgraded from old debian and still have python-dbus, syncevo gui is gtk2, but trust me, you don't need the gtk ui and I don't really use it either13:14
Wizzupbtw https://github.com/NixOS/nixpkgs/issues/32895213:19
arno11_Wizzup: ok. btw i'd like to continue ucm2 stuff but it is a real pita atm since i can't test to much things on the device without reboot (due to PA kill/sphone troubles). and reboot works only 30% of time atm lol14:00
arno11_the pending ucm PR with headset is ok btw14:02
uvos__not sure why sphone dieing on pa restart would require you to reboot14:04
uvos__cant you just launch it again?14:04
Wizzupreboot works only 30%?14:07
arno11_i mean, because PA/sphone fail to restart i can't test ucm stuff on the fly14:08
arno11_and need reboot14:08
arno11_Wizzup: yes14:08
arno11_*for 30%14:08
uvos__arno11_: sphone should not fail to restart14:09
uvos__it also dosent restart itself at all14:09
uvos__you need to click on one of its icons to restart it14:09
arno11_ofc but pa module fails apparently14:09
uvos__(for now)14:09
uvos__ok but this suggests something is wrong with pa14:09
uvos__how dose it fail?14:09
uvos__how do you restart pa?14:10
arno11_see fmg previous msgs14:10
uvos__yeah but thats it crashing when pa restarts while sphone is running14:10
uvos__since it exits when the pa main loop exits14:10
uvos__this should not stop you from just runing sphone again14:10
arno11_yep but sound in calls stops working 100% of time14:11
uvos__dose sphone report anything?14:11
uvos__how do you restart pa?14:11
arno11_i stopped killing pa for a long time now to avoid troubles lol14:12
arno11_(i used every stuff from irc logs)14:13
uvos__ok but it would be helpfull if you could aquire pa and sphone logs for the failed state14:14
uvos__mostly pa14:14
arno11_sure14:14
arno11_bbl14:18
Wizzuparno11_: what about restarting pa system service the regular way?14:19
Wizzupalso it would be nice if sphone would restart just like every other essential maemo user service but I guess it probably won't :p14:20
uvos__Wizzup: sphone will self supervise14:21
uvos__i am adding this14:21
uvos__also it will (and can allready) report crashes and sutch via ui popup14:21
Wizzupas long as they don't stack then14:23
Wizzupwhy self supervise btw?14:23
arno11_Wizzup: restarting PA itself works but sphone pa module doesn't iirc and calls stop working14:24
arno11_(really have to go, sorry)14:24
uvos__because it use sphone outside maemo so i dont want to use dsme (which is an abomoniation anyhow) i could use supervise-deamon but this makes ui error reporting easier14:24
Wizzupmaybe cmt_speech has issues?14:24
Wizzuparno11_: sure, go :)14:24
uvos__*i14:24
Wizzupuvos__: ok, but maybe might want to use dsme :)14:24
uvos__no14:24
Wizzups/maybe/maemo/14:24
uvos__def not dsme14:24
uvos__that thing needs to die14:24
uvos__anyhow14:24
Wizzupgreat14:24
uvos__self superviseing is no issue14:25
uvos__ supervise-deamon also dosent exist on a systemd system (where sphone is a regular user deamon managed by systemd)14:26
uvos__so its just the best option here14:26
Wizzupit's ok, we can always use it through dsme if we want, as we can now as well14:26
WizzupI'm looking at the backend uid stuff now btw14:26
uvos__then it will be observing the wrong process14:26
uvos__but ok14:26
Wizzupright now it works14:26
Wizzupso the backend->uid is set in rtcom? that seems simple enough to change then14:27
uvos__yeah just set that and name correctly for vcm14:28
WizzupI'll fix the vcm stuff because it is currently wrong for the backend uid14:28
Wizzupok14:28
uvos__im not sure where the right string shal come from14:28
uvos__in vcm14:28
uvos__for both14:28
Wizzupthe current 'backend_name' is good for the uid14:28
WizzupI'll do it and test14:28
uvos__then name needs to be something else14:29
Wizzupthey can't be the same?14:29
Wizzupbtw you made a typo: id = sphone_comm_add_backend(MODULE_NAME, "sphone/comtest", commtest...14:30
WizzupI think that should be "sphone/commtest"14:30
uvos__ok14:30
Wizzupbtw, id and name can't be the same?14:30
uvos__i dont think it matters mutch for commtest14:30
uvos__can be but i dont think that wat you want for uid is acceptable as a user faceing name14:31
uvos__name is now exluseively used for the ui14:32
Wizzupright, it would be better to use a human readable name14:33
Wizzupbbiab14:37
SigmanificientHi15:14
Wizzuphi15:15
SigmanificientI'm very new to irc, kinda lost15:16
Wizzuphope it's also a bit of fun :)15:17
uvos__i presume you have at least found the right room :P15:17
WizzupI think I saw your name on the nixos github, yeah?15:17
Sigmanificientyeah, I'm a contributer to nixpkgs repo15:18
WizzupI commented on there, I'm Merlijn15:18
WizzupIRC is more ephemeral than xmpp or matrix so there's no unifidied channel history, but we have irc logs in the irc topic15:19
Wizzupbut, there's 90 other people here with you :)15:20
SigmanificientOh I see15:20
WizzupDid you have a particular question?15:22
uvos__whats the nixos connection here are wie switching away from dpkg? xD15:22
Wizzupuvos: I linked a gh issue where someone is requesting to pkg maemo leste for nixos15:23
uvos__oh ok :)15:23
uvos__we still need some dated packages so that would require some work or compromise on features or?15:24
uvos__i gues most of it should be in ok shape at this point to port to a distro that moves a bit quicker15:25
SigmanificientI've started working on a draft pr, to kinda see how it would go to, seem like there is some dependency to the FHS 3.0 file-system in mce's CMakeLists.txt15:25
uvos__oh really15:26
uvos__i dont remmeber adding that15:26
uvos__oh right i gues i hardcoded some paths15:26
uvos__sorry about that15:26
uvos__im mces maintainer btw :)15:26
WizzupI think the main 'issue' from a birds eye view are the gtk2 patches15:27
uvos__yeah the fact that it breaks everything else gtk2 is an issue15:28
uvos__would have to do some setting of ld envvars to make 2 gtk2's coexist15:28
uvos__Sigmanificient: note that mce.ini also contains a path that would be a prblem for you15:29
Wizzupor have a pkg that replaces it with maemo one and live with it, but yeah, I don't know what makes sense, nixos probably has some more unique options15:29
uvos__we could/should dehardcode that via cmake configure15:29
uvos__nixos has a wierd hieracy where every packgage lives kinda in its own prefix right?15:30
WizzupI don't know, I didn't make any assumptions but did mention it on their gh15:31
Wizzuplooks like we lost him ;)15:31
freemangordonWizzup: any reason why maemo-input-sounds is not .launcher?15:32
uvos__Sigmanificient: https://maedevu.maemo.org/irc-this-week.txt for what you just missed15:33
Sigmanificientuvos__: pretty much yes, each packages lives in the nix store, think of it like they each have an FHS file system to their own15:34
SigmanificientThe path is basically /nix/store/{sha256-hash}-{pname}-{version} to ensure reproducibility and easy caching15:35
uvos__Sigmanificient: right15:37
uvos__Sigmanificient: mce.ini will cut you slightly15:37
uvos__as mentioned15:37
uvos__in addition to the stuff in cmakelists15:37
uvos__patches very welcome15:37
Wizzupfreemangordon: probably forgot @ launcher15:42
uvos__its also not terribly critical for a deamon, since launch time is pretty irrelivant and it saves < 100K15:43
uvos__well it saves alot less than 100k since its 100k minus what launcher requires itself devided by the used apps15:44
uvos__but its a little under 100K for adding a app15:44
uvos__well for gtk15:44
uvos__for non-gtk it might be even less/nothing15:44
freemangordonuvos__: whatever is saved, it is for free15:52
freemangordonso no reason to not save it15:53
freemangordonWizzup: ok, in fremantle it is not .launcher15:56
uvos__freemangordon: its not impossible for the saveing to be negatvie, i think overall rn it is negatvie or close to zero with the the number of .launcher processies we have and the size of maemo-launcher when nothing uses it16:09
uvos__but yeah adding another process dosent hurt anything16:10
uvos__so you might as well16:10
freemangordonmhm16:12
freemangordonWizzup: switching in alsamixer makes voice call go through headphones16:12
freemangordonlemme try if I can switch mic as well16:13
freemangordonyep, works as well, though quality is very bad16:17
uvos__your not accidentally switching to the second mic on device are you?16:18
uvos__d4 has 2 built in mics16:18
uvos__switching to mic2 has a sideffect of the modem noise canceling the voice audio by subtracting it from itself16:18
uvos__makeing the quality very bad16:18
freemangordonI switch to "headset" for mic116:20
freemangordonsorry16:20
freemangordon'headset' for 'Right'16:20
uvos__ok16:21
uvos__maybe we need to make sure the modem dosent do noisecanceling16:21
freemangordonbut yeah, sounds like what you say16:21
freemangordonI hear the same when I do some online mic tests16:21
uvos__since that wont make any sense with the mic2 canceling hp mic16:21
freemangordonwith internal mic16:22
uvos__since it uses infomation about the relative position of the interal mics16:22
freemangordonso, lemme run some online tests with headset mic16:22
uvos__freemangordon: i def presume we need to tell the modem via qmi or at about the change16:22
uvos__otherwise makes no sense16:22
freemangordonI think we do16:23
freemangordonlemme check though16:23
freemangordonhmm, no16:24
freemangordonwell, we tell it that call output is through headset16:24
freemangordonthat should be enough, no?16:24
uvos__not nesscarly16:26
uvos__if you plug in hp with no mic16:26
uvos__android uses the internel mic16:26
uvos__so there must be 2 states16:26
uvos__how do we tell it that anyhow?16:26
uvos__who dose this?16:26
freemangordonhmm, right16:27
freemangordondunno16:27
uvos__i dont think anyone tells the modem16:27
uvos__we are just messing with cpcaps mixers16:27
freemangordonno16:28
freemangordonwe do16:28
freemangordonsec16:28
freemangordonotmdm_send_command: sending U8152AT+EACC=3,016:28
freemangordonsending U8317AT+EACC=2,016:28
freemangordonetc16:28
freemangordonlemme see what gets set when I switch call output16:28
uvos__ok16:29
freemangordonhttps://pastebin.com/Cg584YVY16:31
freemangordonuvos__: https://github.com/maemo-leste/droid4-linux/blob/master/sound/soc/codecs/motmdm.c#L5416:33
freemangordondo we know what command is send to the modem for headset mic?16:33
uvos__freemangordon: i dont think so16:36
freemangordonhmm, modem should not care which mic to use17:07
freemangordonuvos__: headset mic does not work properly, no matter voice call or online mic tests17:27
freemangordonthe same distorted sound in both cases17:28
uvos__what is online mic tests?17:28
uvos__just hifi as in arecord?17:28
freemangordonumm, webaudio17:28
freemangordonfor example http://micworker.com/17:29
uvos__why are you testing that as opposed to something like arecord17:29
uvos__but ok17:29
uvos__should be the same17:29
freemangordonok, will do arecord17:29
uvos__arecord -f cd  > test.wav17:30
uvos__i think hifi mic recording worked ok at some point17:30
uvos__could have regressed17:31
uvos__(external mic that is)17:31
freemangordonyep, the same17:31
freemangordon(distorted sound)17:31
uvos__ok17:31
uvos__i presume the mic is ok on android// another deivce17:31
freemangordonI am using that headset to carry my online meetings :)17:31
uvos__ok yeah17:32
uvos__is it a headset with a 4 ring plug?17:32
freemangordonyes17:32
uvos__ok17:32
uvos__ill repo later17:32
freemangordonlemme try to find another one17:32
freemangordonrepo?17:32
uvos__reporduce17:32
freemangordonrepro?17:32
freemangordonok17:32
siceloi guess you do remember that the 4-ring plugs are wired differently for d4 vs. n90017:39
freemangordonthis is d417:40
freemangordonand the same headset works on my laptop17:40
freemangordondoes not work on n90017:40
sicelook, yes, if works on laptop, it's wired as d417:41
freemangordonok, going to downgrade to 6.117:42
freemangordonto check if it works there17:42
freemangordonthe same17:54
freemangordonuvos__: is it possible that distorted sound is because there is no bias voltage enabled?18:07
arno11_freemangordon: on n900 with headset, mic's sound is also distorded with default capture volume (headset mics seem far more sensible). i reduced default volume a bit to stop distortion. maybe kind of similar issue on d4 ?19:41
arno11_*to stop distortion and echo19:42
freemangordonit is does not sound like an overdriver19:48
freemangordon*overdrive19:48
freemangordonquiet sounds are not registered at all19:48
freemangordonlouder ones are heavily distorted19:49
freemangordonbtw internal mic works fine19:49
freemangordonI'll compare cpcap regs in android and ours, when I have time19:49
arno11_ah ok seems definitely a different issue20:32
siceloarno11_: i'll make a note to see if i can implement jackctl for N900 ... here's to hoping it's not rocket science21:21
arno11_sicelo: jackctl ? what is it ? something different than jackcontrol ?21:49
siceloi meant that (jackcontrol)21:50
arno11_ah ok, but jackcontrol already works fine21:51
sicelooh, what's the problem then?21:52
arno11_the problem is that we need jackcontrol event to switch devices21:52
arno11_so that's perfect for 'on the fly' switch21:53
arno11_butg tricky for other use cases21:53
arno11_*but21:54
arno11_like keeping jack active between hifi and voicecall21:55
arno11_(because as soon as we change the profile, we need a new jack event atm)21:56
arno11_same problem in mapphone ucm2 btw21:57
sicelooh, thought d4 was fine21:57
perehow do one get out of dorian ebook full screen mode?21:57
arno11_sicelo: i can't confirm for d4 (no device), but that's what i see in ucm config22:00
sicelopere: press on bottom right corner22:01
siceloosso-xterm works the same22:01
peresicelo: thank you.22:01
peresadly my n900 battery life time is in the tenths of seconds, which make it quite useless for me. :/22:03
arno11_wow22:03
siceloexcessively worn out battery,,or excessive consumption?22:03
freemangordonarno11_: I can confirm, the same on d422:06
arno11_pere: pollarcell 1600mA (1400 real) is perfect for n900 btw22:06
arno11_freemangordon: ok22:06
perevery old battery. :)22:06
arno11_pere: *polarcell22:09
pereor perhaps the problem is that the setup turn off the screen, not that the battery die?22:09
pereyes.  after 18 seconds.  turn down the light after 13, turn off the screen after 18.22:10
pereis the n900 install using ntp or some other sensible clock setting system?22:18
freemangordonuvos: dapm widget  "MIC2 Bias" is not connected22:25
freemangordonMIC2 is headset mic, IIUC22:25
uvosisent mic2 the noise canceling mic? but yeah thats bad either way22:35
freemangordonyeah, that was it, got it working22:38
freemangordonno, you have mic1 L/R, which are those 2 mics, MIC2 is external MIC22:38
freemangordonsee https://github.com/maemo-leste/droid4-linux/blob/master/sound/soc/codecs/cpcap.c#L9622:39
freemangordonhmm, it records right channel only22:41
freemangordonuvos: this https://pastebin.com/NZEYzNBN was the missing route22:42
freemangordonnow I on;y have to make it record both channels22:43
uvoshmm headset mics are mono22:46
freemangordonyes, but we capture in stereo, I would expect codec to duplicate the samples, perhaps in HW22:48
freemangordonnot sure about that though22:48
freemangordonWizzup: https://github.com/maemo-leste/droid4-linux/commit/f15946bf06a297b10a02ca82b4cd237a4a3b75b723:01
freemangordonwith that one headset mic works properly even during call23:04
freemangordonofc UCM needs to be fixed23:04

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