libera/#maemo-leste/ Thursday, 2024-07-11

Wizzupmight be iphb if the headers pkg is not ok00:08
Wizzupfreemangordon: fwiw I've been using 6.6 for a week or two on a droid4 (not using it for calls obviously) and I have no battery life issues00:26
freemangordonWizzup: why do we have wpasupplicant in experimental?07:12
freemangordonhmm, something is wrong with headers, iphb was not build on upgrade07:16
freemangordonyeah, it is missing 67354aeac41b31bbedde49c74ef6297bd34b495207:22
freemangordonoh07:26
freemangordonI forgot to enable audio-graph-card207:27
freemangordonin config that is :)07:27
freemangordonso no sound in that kernel07:28
freemangordonWizzup: uvos: please enable audio-graph-card2 in config and rebuild07:55
freemangordonok, my d4 idles @ ~250 mW, with accounts offline08:11
freemangordonso it is not iphbd08:11
freemangordonhmm, rcu_preempt?08:12
freemangordonhmm, scratch that, seems it settled down after a while08:23
freemangordonno, it is not ok08:31
freemangordonhttps://pastebin.com/ZKd8UpaQ08:32
freemangordonWizzup: headers are installed to /usr/src/linux-headers-omap instead of /usr/src/linux-headers-$kernelversion08:51
freemangordonseems   install_kernel_headers() takes version as second parameter08:57
freemangordonhttps://github.com/maemo-leste/droid4-linux/blob/maemo-6.6.y/scripts/package/builddeb#L21508:57
freemangordonI guess this shall be changed to install_kernel_headers debian/linux-headers ${version};;08:58
Wizzupfreemangordon: good catch10:44
Wizzupfreemangordon: wpa supp in experimental is backported version10:44
freemangordonWizzup: uvos: another nasty bug, either in sphone or in vcm: if another side hangs-up before call is answered, ringing continues forever11:32
freemangordoneven if you close sphone, it does not stop11:33
arno11i remember seeing that bug with vibrator in the past but never with ringtone (at least when ringtone works)11:34
freemangordonwell, now (on 6.6) ringtone works every time11:36
freemangordonand that bug is 100% reproducible11:36
freemangordonat least on d411:36
freemangordonWizzup: did you check your d4 idle power usage?11:36
arno11ok, btw i got ringtone working on 6.6 as well but stopped working after a while11:37
freemangordonWizzup: even with iphb it is twice the one on 6.1 here11:37
arno11wow11:37
arno11something blocks ret ?11:38
freemangordonperhaps, but I don;t know how to test properly11:38
arno11you can use pm script11:39
arno11can't remember the exact name for d4, something like droid4-pm in /etc/init.d11:41
arno11'status' should show the number of ret and blockers if any11:42
freemangordonthanks11:43
freemangordond=2024-07-11|t=12:43:56|i=OFF:0,RET:6561|p=270|c=98|b=none11:44
freemangordonwhatever that means11:44
arno11seems to hit ret11:44
arno11but power usage is really high11:45
arno11maybe a module or a piece of hardware ?11:46
freemangordonhow do I know?11:46
arno11good question, that's really difficult (see N900 mess with blockers lol)11:47
Wizzupfreemangordon: this bug is fixed, the one you mention11:47
Wizzupre infinity ring11:48
Wizzupfreemangordon: this is not likely, but I have a droid 4 that I had on a lab psu and something inside it broke nad it has like much higher power usage than all my other droid4s11:49
WizzupI get 2-3 days on full chrage on 6.611:49
Wizzupfreemangordon: shall I build current 6.6 for experimental, although I guess I need to fix header thing11:49
Wizzupfreemangordon: if the bug re-appeared I will see what's up11:49
Wizzup2b3faf00e071ceeb7add6827c53686e6446a25ee ("voicecallmanager: ensure we receive hangup")11:50
Wizzup^ fixes it11:50
freemangordonWizzup: is that released?11:50
WizzupI am checking11:50
WizzupI think probably not actually since the rtco logging is still broken wrt fremantle11:50
freemangordonwell...11:50
Wizzupso yeah not released apparently11:50
freemangordoncould you release it?11:51
WizzupI can, but the rtcom logging is still broken ;)11:51
WizzupI'll take a look, IIRC there was/is the matrix breakage still11:51
freemangordonwell, my d4 was ringing for 2 hours until I got bach home :)11:51
freemangordon*back11:51
freemangordonWizzup: I'll revert the kernel to see how it is with 6.111:52
Wizzupfreemangordon: oof...11:52
freemangordonso I doubt it is HW failure11:52
freemangordonhmm, droid4-powermanagement checks for non-existent module names11:52
Wizzupthey might be blacklisted at this point11:53
Wizzupor not built11:53
freemangordonno, they are loaded, but names are with undersore and not dash ;)11:53
freemangordonlike phy_cpcap_usb11:54
Wizzupmaybe this changed in kernels11:56
freemangordonrmmod phy_cpcap_usb does not seem to help much11:57
freemangordonor it does?11:57
freemangordonWizzup: coud you do:11:57
freemangordon/sys/class/power_supply/battery$ while [ 1 ]; do cat power_avg; sleep 30; done11:57
Wizzupon wifi, not on wifi?11:58
freemangordonon wifi11:58
WizzupI can, but I get 2-3 days, which is the same as on  6.1 more or less :)11:58
freemangordonthrough ssh session11:58
Wizzupmaybe it is related to audio somehow?11:58
Wizzupk11:58
freemangordoncould be, dunno11:58
freemangordondo you have phy_cpcap_usb loaded?11:59
Wizzupif you build sphone locally, in case you do, also pull 0302bd946c5766d7fd808b9b2dae7a32dfa2f1a9 since it makes rtcom logging ok for vcm12:00
Wizzupwill check, just a moment12:00
freemangordonwhy shall I build it locally?12:00
freemangordonI am waiting for you to make a release :)12:01
Wizzupto get the rtcom logging fixes12:01
Wizzupuvos doesn't like the way I did them so I have to re-do it12:01
Wizzupbut I'll push the ringing fix at least12:01
Wizzups/push/release/12:01
freemangordonah, that's another branch I guess12:01
Wizzupyou can git fetch the object12:01
Wizzupgit fetch origin ...12:01
freemangordonright12:01
Wizzupin any case12:01
Wizzupgood news is that if you were still on that version, you should be much happier with the upcoming one12:02
Wizzupthat was still quite buggy12:02
freemangordonhmm, seems rmmod-ing phy_cpcap_usb fixes idle usage12:02
Wizzupmaybe it got renamed recently?12:02
freemangordoncould be, dunno12:03
freemangordonthat's why I asked you to see what is your power usage and if you have that module loaded12:03
Wizzup$ while [ 1 ]; do cat power_avg; sleep 30; done12:04
Wizzup102330512:04
Wizzup25032912:04
Wizzup24281312:04
Wizzup22708012:04
Wizzup22504712:04
Wizzupand then it dropped from wifi since it seems to do that with 6.612:04
Wizzuphere is the rest12:04
Wizzup22504712:04
Wizzup15681612:04
Wizzup13686712:04
WizzupI do have phy_cpcap_usb loaded12:05
freemangordonok, lemme see what is usage here without wifi12:05
WizzupI don't think we block this module in modprobe.d though12:05
Wizzupyeah the last two numbers are with wifi off I think12:05
freemangordonfir me wifi is better with 6.612:06
freemangordon*for12:06
Wizzupfunny :)12:06
freemangordonlike, most of the times it connects from the first time after boot12:07
freemangordonand never drops12:07
Wizzuplet's see if our CI can still build stuff :D12:07
Wizzupfreemangordon: interesting, that would be nice12:07
Wizzupso we should fix the droid4 pm script, but for the record we don't block the phy_cpcap_usb per our config currently12:08
WizzupI'd have to check the logs to remember why12:08
freemangordonhmm, usage from osso-xterm, with wifi off produces 182 mW at minimum12:08
freemangordongoing to revert the kernel to see if it makes any difffernence12:08
Wizzupso I am not yet on -your- 6.6 for lack of better terms12:08
Wizzupcould it be that some audio path is always on12:09
freemangordonWizzup: please fix config and headers path12:09
freemangordonyes, could be12:09
Wizzupmaybe you can check alsa dapm entries in /sys12:09
Wizzupfreemangordon: I will look, I think you already found the problem, right?12:09
freemangordonyes, but didn;t make a fix12:09
Wizzupok12:09
freemangordonwhere to check those dapm entries12:10
freemangordon?12:10
Wizzup/build/sphone-0.9.3+m7/src/modules/contacts-evolution.c:124:53: error: 'E_CONTACT_IM_MATRIX' undeclared (first use in this function); did you mean 'E_CONTACT_IM_AIM'?12:11
Wizzup  124 |   query = join_query(query, e_book_query_field_test(E_CONTACT_IM_MATRIX, E_BOOK_QUERY_CONTAINS, line_id));12:11
Wizzup      |                                                     ^~~~~~~~~~~~~~~~~~~12:11
Wizzup      |                                                     E_CONTACT_IM_AIM12:11
Wizzupso master *still* has this bug unfortunately12:11
Wizzupthat's why I didn't make the release12:11
Wizzupfreemangordon: sec12:11
freemangordonhmm, debug is not mounted12:11
Wizzupfreemangordon: /sys/kernel/debug/asoc/Mapphone Audio12:12
freemangordondebug is not mounted, but it should be, no?12:12
Wizzupwell, you will have to mojunt ot12:12
freemangordondebugfs that is12:12
Wizzupmount -t debugfs none /sys/kernel/debug12:12
freemangordonIIRC it was automountged before12:12
Wizzupor for /etc/fstab:12:12
Wizzupnone /sys/kernel/debug debugfs defaults 0 012:12
WizzupI don't know if we monut it by default, it's not considered good practice from a security pov12:13
freemangordonscratch that12:13
freemangordonI was not root12:13
Wizzupok12:13
arno11Wizzup: commenting matrix stuff (temporary) in contacts-evolution.c fixes the issue btw, at least on a local build12:14
arno11iirc12:14
Wizzupyes, but will uvos like it if I comment it out in the master branch temporarily? :D12:15
Wizzupfrom my pov it looks like the libebook version he uses locally is not the same as the leste one12:15
Wizzupand ours just doesn't have this other field12:15
arno11for master branch: ah yes indeed...:D12:16
Wizzupbut the bug has been there since april12:16
Wizzupiiuc12:16
freemangordonWizzup: most of dapm entries are On12:16
freemangordonhow to torn them off?12:16
Wizzupfreemangordon: I don't think they are supposed to be12:16
freemangordon*turn12:16
WizzupI suspect this is the c2c change, if you're still seeing more power management12:17
Wizzupwhat toggles/turns on the c2c?12:17
Wizzups/more power management/more power usage/12:17
freemangordonno idea :D12:18
Wizzupok12:18
Wizzupso I think we should build this with the fixed headers because it's still quite useful for experimental12:18
freemangordonbut I guess it is route in DT12:19
freemangordonlemme check something12:19
Wizzupthe way I would imagine it would work from userspace is we switch UCM, which sets/triggers some alsa toggles in one of our codecs/cards and that should enable the route12:19
Wizzupbut again this is from my very naive understnading12:19
Wizzupif there's nothing that triggers it either way, it's probably always on12:20
Wizzuplet me look at the headers issue12:20
WizzupI pushed headers fix to maemo-6.6.y12:21
arno11cool12:22
Wizzupfreemangordon: btw, as far as I can concerned, you can take current maemo-6.6.y and rebase it to get rid of 'xxx' commit a bit later today12:22
Wizzupthis is a branch that we -rebase- on linux-stable nayway12:22
freemangordonI will not have tiome to do anything later today12:24
freemangordonI am traveling for few days12:24
freemangordonWizzup: what am I supposed to use to try to turn that control off?12:24
Wizzupwell12:27
WizzupI don't know what limitations kernel puts on you, but I suspect some alsa widget12:27
Wizzupif that is the right perminology12:27
freemangordonbut I can;t find any that's related12:27
Wizzupjust a second12:27
WizzupI will try to explain what I mean12:27
Wizzupso if you run alsamixer -c 012:28
Wizzupyou sohuld get Mapphone Audio card12:28
Wizzupand then there is an item called 'Call Output'12:28
Wizzupthis can be set to Handset, Headset, Speakerphone12:28
WizzupI imagine that we could have something like this that just says 'yeah we are in a call', and we could set that through UCM12:28
freemangordonI think I checked and it is off12:28
Wizzupwell this is just an example12:28
freemangordonbut lemme double-check12:28
Wizzupeither that or something we can turn on/off, like for example the 'Earpiece' item12:29
Wizzupearpiece can be off/HiFi/Voice12:29
freemangordonon alsamixer everything is off12:29
Wizzupbut I think we need something that triggers the actual c2c to become active (well, you have it active currently of course, but ewr need to be able to toggle it)12:29
freemangordonswitching the ucm profile does it12:30
Wizzupas far as I am concerned you can call it 'c2c toggle' and we can turn it on/off, as long as it controls dapm for this new path12:30
WizzupI understand, but my very naive understanding is that you added a new codec or card that has a special codec to codec routing (c2c) and this makes it active without userspace interaction, right?12:30
freemangordonIt is called 'Voice Call Playback'12:30
Wizzupok, and what can this be set to?12:31
freemangordonhow do I know/12:31
freemangordon?12:31
freemangordonthis is in dapm12:31
Wizzupah, not in alsamixer then12:31
freemangordonno widget12:31
freemangordonyes12:31
Wizzupright, so I think we maybe need a widget to control it12:31
Wizzupthe example you followed from this other codec from 6.6, did that have a widget to control whether it was on/off?12:32
freemangordonno widget12:32
freemangordonit should be auto-disabled when not connected12:32
freemangordonwell, I think it would be better if you build/install latest 6.6 and check what has to be done12:33
freemangordonas yoy have better understanding than me on asoc12:33
WizzupI will try, but I can assure you that your understanding is better than mine, but I am happy to try12:33
WizzupI don't know how kernel or userspace would know when it is connected12:33
WizzupLike, something must trigger the route to be enabled/disabled, right?12:34
freemangordonyes, ucm12:34
Wizzupbut ucm can only control widgets12:34
Wizzupand volume etc12:34
freemangordonright12:34
Wizzupso if there is no widget hooked up, I don't see how this can work,12:34
Wizzuplike, can we not have a widget called 'Call' that can just be On or Off ?12:35
Wizzupwhich would trigger this new route to be on or off12:35
freemangordonmaybe I got it wrong, please try to understand what https://github.com/maemo-leste/droid4-linux/blob/maemo-6.6.y/arch/arm/boot/dts/ti/omap/motorola-mapphone-common.dtsi#L98 is doing12:37
freemangordonmaybe it should be on the opposite12:37
Wizzupok12:46
WizzupI will try12:46
WizzupI still feel like we'll need an additional widget just to enable the routes12:46
Wizzuplemme grab some foob first :)12:47
Wizzupfreemangordon: so there is now a new link for c2c, and it is just always enabled I guess?12:51
freemangordonnot always12:52
freemangordonthere are 2 links12:52
freemangordonone of them is enabled12:52
freemangordonone is for capture, the other oane for playback12:52
freemangordonplayback one is enabled12:52
Wizzupis enabled when?12:54
inkyis it possible to make qemu to rotate the screen?12:54
inkyto test rotation in qemu.12:54
freemangordonWizzup: /sys/kernel/debug/asoc/Mapphone Audio/dapm12:55
Wizzupyes, the dapm stuff is purely informational, but I would imagine it should not be on normally, right12:56
Wizzupinky: yes there is some dbus command on maemo wiki or our wiki to do so12:56
freemangordonWizzup: https://pastebin.com/psXJ1jbk12:56
inkyoh thank you!12:56
Wizzupfreemangordon: I see a bunch of stuff here regarding c2c https://kernel.org/doc/html/latest/sound/soc/codec-to-codec.html - but that's not in out motmdm.c or cpcap.c files, right?12:56
freemangordonno, it is in our DT12:57
Wizzupso the ignore_suspend or num_c2c_params, etc is all in dt?12:58
freemangordoncodec2codec is used by audio-grach-card2 to create c2c_params struct12:58
freemangordonnot exactly, it is runtime created12:58
freemangordonsec12:58
freemangordonWizzup: https://github.com/maemo-leste/droid4-linux/blob/maemo-6.6.y/sound/soc/generic/audio-graph-card2.c#L76912:59
Wizzupok13:01
WizzupI don't really understand how to control dapm for this, when you are in a call, I suspect the capture route dapm is also on, yes?13:01
freemangordonmaybe the issues is that motmdm sets .ignore_suspend13:02
Wizzupcould be, but I *still* don't see how kernel would know when it is in use13:02
Wizzupfwiw I don't see ignore_suspend in motmdm.c13:02
freemangordonyeah, scratch that13:03
Wizzupso I think we need to understand what controls dapm here, or rather what controls kernel to think it is in use or not13:04
freemangordonI think it is the route13:04
Wizzupand indeed I don't know if the additions to 'routing' that you made is correct, but mostly because I don't know enough about it13:04
Wizzupok, but what triggers the route?13:04
freemangordonmaybe I created a wrong route13:04
Wizzupwhere is the route defined?13:05
freemangordonactivating widget in icm13:05
freemangordonhttps://github.com/maemo-leste/droid4-linux/blob/maemo-6.6.y/arch/arm/boot/dts/ti/omap/motorola-mapphone-common.dtsi#L10413:05
freemangordonmaybe it should be Call Playback, not Voice13:05
Wizzupso that's not just a list of strings? :D13:05
freemangordonlemme try it13:05
freemangordonno, that's matched to widgets, but don;t ask me how13:06
Wizzupok, so it is widget, route, widget, route13:06
Wizzup?13:06
freemangordonno idea13:07
Wizzupheh13:07
freemangordonI just created what my gut feeling told me to and it just worked :D13:07
freemangordonno, really13:07
freemangordonlemme try to change that13:07
freemangordonoh,no it is correct13:08
freemangordonmotmdm_dai defines   "Voice Call Playback"13:08
freemangordonand we route that to EP SPK or HP13:09
freemangordonthat's how kernel knows13:09
freemangordonIIUC13:09
freemangordonlemme try to fix UCM13:10
freemangordonhmm, nothing to be fixed there IIUC13:13
freemangordonWizzup: sorry, can;t grok it ATM and out of spare time13:14
Wizzupok13:14
uvos__Wizzup: oh jeah my debian d4 has newer ebook13:46
uvos__ill fix this when i get home13:46
Wizzupthx14:13
arno11Wizzup: i tried 6.6 with dts fix: it works but still got slowness after 30min. Seems something is wrong with memory because when i start a qt app after 1 min of idle, it becomes buggy14:51
arno11or maybe dynamic debug causes troubles ?14:52
arno11i really don't know what's going on14:54
arno11i mean it is so smooth now on my device with 6.1 that it is particulary noticeable when i run 6.615:04
arno11*the slowness15:08
arno11btw guys, what is the best/easiest way to monitor read/write to disk ?15:16
freemangordoniostat?15:18
arno11ok i failed to find it but maybe it is part of another pkg15:24
arno11sysstat works (sar)15:29
arno11i'll compare 6.1 and 6.615:30
freemangordonyes, iostat is part of sysstat15:30
Wizzupfreemangordon: what did you need enabled in config16:42
Wizzupah audio-graph-card216:43
Wizzupdone, building kernel16:46
Wizzupfreemangordon: tested the kernel and yes, great, call audio is good with voicecall manager and 6.619:11
Wizzupthere's just the dapm being on stuff now :)19:11
arno11ah good news @call audio19:21
siceloyeah, nice sleuth work freemangordon19:21
siceloand thanks Wizzup for the vcm stuff that triggered it ;-)19:22
uvosWizzup: you missed a tonne of changes in sphones changelog19:46
Wizzupwell, the tag won't work anyway since it doesn't compile19:47
uvosit compile fine19:47
Wizzupnot in the CI it doesn't19:48
uvoson newer debian19:48
uvossure19:48
Wizzupok, great, but you're in #maeom-leste19:48
WizzupI think you can just rewrite the changelog and replace the tag or make a new tag19:48
uvosto late19:48
uvosi dont think thats relevant since i see leste as just one platform to support19:48
uvosanyhow19:48
uvosshould build this time19:49
uvosWizzup: chroot: failed to run command '/debootstrap/debootstrap': Exec format error19:55
uvosuhh19:55
WizzupI will look in a bit20:01
Wizzupuvos:20:29
Wizzup/build/sphone-0.9.4+m7/src/modules/contacts-evolution.c:60:1: warning: 'nodiscard' attribute directive ignored [-Wattributes]20:29
Wizzup   60 | {20:29
Wizzup      | ^20:29
Wizzup/build/sphone-0.9.4+m7/src/modules/contacts-evolution.c: In function 'build_query':20:29
Wizzup/build/sphone-0.9.4+m7/src/modules/contacts-evolution.c:126:2: error: expected ';' before '}' token20:29
Wizzup  126 |  }20:30
Wizzup      |  ^20:30
Wizzupmeanwhile I will look at the arch error20:30
arno11Wizzup: is last kernel build 6.6.32.2-1 or ?21:46
sicelo 6.6.36.2-1+m7 is what my d4 just updated to21:54
siceloand my first test call had perfect audio, yay21:55
arno11cool :)22:03
arno11i asked because i still get the iphb-dkms headers error22:04
arno11with this version22:04
sicelommm, i didn't get it, or i didn't noticie22:05
arno11ah maybe22:05
arno11it works with the error anyway but N900 is still a bit unstable22:05
arno11the headers dir seems still wrong22:08
arno11probably not related with the issues i see ofc22:11
Wizzuparno11: will check after I fix this weird arch issue on build servers22:31
arno11ah ok, no rush22:33
Wizzupfreemangordon: I also see an increase in power usage now with 6.6 (with the call audio changes)22:58
Wizzup18 hours instead of 2-3 days22:58
Wizzupso that's all consistent at least22:59

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