Wednesday, 2025-05-07

T42<TheVancedGamer> mal: has fast dormancy been implemented for ofono in SFOS?15:28
malhmm, not sure15:38
malneed to check what that is15:38
thevancedgamerbasically low power mode for modems15:39
malwe have some low power mode stuff there15:39
thevancedgameryeah but that's just indication filters15:40
thevancedgamerthe actual device state methods aren't implemented15:40
malwe do use RADIO_IND_FILTER_DATA_CALL_DORMANCY15:40
thevancedgamerhttps://cs.android.com/android/platform/superproject/main/+/main:hardware/interfaces/radio/1.0/IRadio.hal;l=155315:40
thevancedgamerandroid uses this too15:40
malhttps://github.com/mer-hybris/ofono-binder-plugin/blob/master/src/binder_devmon_ds.c#L17715:41
malwe do send device state15:41
thevancedgameraha15:42
thevancedgamerhmm15:42
thevancedgamerI've noticed really bad battery drain on FP5 with a SIM installed, maybe we don't properly handle MCE events15:42
thevancedgamerneed to try15:42
maldid you find anything for the wlan issue?15:43
malneed to test that modem stuff with wlan off and sim in15:43
thevancedgamerI did some kernel hacks and wifi started working again, no idea if that fixed it or something else15:43
thevancedgamerI can send it15:43
malyeah, since it reboots always for me it should be easy to see if that fixes it15:44
thevancedgamerhttps://github.com/mer-hybris/ofono-binder-plugin/blob/master/src/binder_plugin.c#L174115:44
thevancedgamerdo I need to enable devmon_ds in ofono config?15:44
malthevancedgamer: https://github.com/mer-hybris/ofono-binder-plugin/blob/master/src/binder_plugin.c#L176 seems to be all by default15:47
malbut if display state is not reaching ofono then it might not handle things correctly15:48
maldebug log should tell if it sends device state15:48
thevancedgamerwhat is actually the difference between devmon_if and devmon_ds?15:48
malthose control different things15:48
malif = indication filter control, ds = device state control15:49
T42<TheVancedGamer> ah, ok15:50
T42<TheVancedGamer> https://paste.myself5.de/hecizoseti.diff15:56
T42<TheVancedGamer> mal: this is what i have15:56
malthevancedgamer: what is that CONFIG_LOG_BUF_SHIFT ?16:03
malis that needed?16:03
T42<TheVancedGamer> mal: that's for debugging, you can omit it if you want16:09
T42<TheVancedGamer> to increase dmesg size16:09
malstarted kernel build now, will test later today and probably overnight if it doesn't cause reboot16:11
thevancedgamerok16:21
malI also need to see how fp4 behaves16:25
malneed to find fp4, too many phones everywhere16:26
thevancedgamerhmmm i'm quite confused as to why i'm suddenly draining 2.3% per hour on FP516:26
thevancedgamerI guess modem pulls too much power16:26
thevancedgameror mce events aren't working16:26
malis the battery drain with or without mobile data enabled?16:29
T42<TheVancedGamer> without16:29
T42<TheVancedGamer> wifi connected16:29
T42<TheVancedGamer> without a sim i'm getting 0.3-0.5% per hour16:30
malok, I will test without wifi with one sim card16:30
T42<TheVancedGamer> maybe try that patch first and see if it fixes wlan? :p16:30
malstill building16:30
malI started wifi battery testing with fp4 also16:30
thevancedgamerit takes 3 minutes to build for me16:31
thevancedgamerunless you're doing full LTO I guess16:31
malah, it had built, just the terminal was in in copy mode and didn't update16:31
thevancedgamer:D16:32
malthevancedgamer: patch didn't help16:45
T42<TheVancedGamer> what the heck16:48
T42<TheVancedGamer> can you send me the journal?16:48
malthevancedgamer: https://pastebin.com/FPpf1P0b16:50
T42<TheVancedGamer> oh, you have pstore functioning?16:51
T42<TheVancedGamer> interesting16:51
mal?16:52
T42<TheVancedGamer> I thought FP5 had the same pstore issue as FP416:52
malthat is from ssh using dmesg -w16:53
T42<TheVancedGamer> ```16:55
T42<TheVancedGamer> [   42.737106] [kworke][0x41045a32][16:44:48.358880] wlan: [336:E:QDF] Cannot malloc 0 bytes @ policy_mgr_init_dbs_hw_mode:771```16:55
T42<TheVancedGamer> this is interesting16:55
malyou don't have that?16:56
T42<TheVancedGamer> checking17:12
T42<TheVancedGamer> interestingly there's no kernel bug or anything17:12
T42<TheVancedGamer> mal: what if you drop my last commit (the one that loads WLAN driver without manual invokation) and try it again?17:13
malok17:50
mal@TheVancedGamer fp4 with wlan on has lost about 1% of battery in about 1.5 hours17:52
malcould be less since I didn't know how close it was to the threshold17:52
T42<TheVancedGamer> yeah, that's fine17:54
T42<TheVancedGamer> without SIM?17:54
malyes17:54
T42<TheVancedGamer> hmm17:54
maljust for comparing to fp5 wlan17:54
T42<TheVancedGamer> I get about 1% every 2 hours17:54
malwith the fix?17:54
T42<TheVancedGamer> but I have a smartwatch connected too17:54
T42<TheVancedGamer> yeah17:54
malok so about similar maybe, will test overnight17:54
T42<TheVancedGamer> I know it wakes up every 15-30 minutes in my case, because the watch dumps health and analytics17:55
malI think that kind of wakeup is usual anyway17:55
T42<TheVancedGamer> probably yeah17:55
malthere is some timer I think to wake up sometimes17:55
T42<TheVancedGamer> need to fix this WLAN issue though, so weird17:55
maldid you manage to reproduce it how often?17:56
T42<TheVancedGamer> I reproduced it thrice, got home, tried to reproduce again and it just wouldn't17:56
malso odd why it's so different for me17:57
T42<TheVancedGamer> I think it's some sort of race condition17:57
T42<TheVancedGamer> if you can disable auto loading we can rule that out too17:57
mal@TheVancedGamer reverting that didn't help, I do have the other patch from today though, should I revert that also?18:27
T42<TheVancedGamer> yeah18:28
T42<TheVancedGamer> so now you have to do the echo ON stuff to load driver, right?18:28
malhmm, now wlan worked after reboot18:29
malso maybe it's less bad now but need to see18:29
malI have systemd service to echo ON to /dev/wlan18:30
T42<TheVancedGamer> yeah, it's a firmware load race condition18:30
T42<TheVancedGamer> I think18:30
T42<TheVancedGamer> if I let the phone sit for 3-4 minutes and then turned on wlan, it magically started working18:31
T42<TheVancedGamer> and then kept working18:31
malhmm18:31
malwe also use firmware loading script from userspace18:31
malif kernel loading fails18:32
T42<TheVancedGamer> it might not be firmware, but that's my guess18:32
T42<TheVancedGamer> we don't have a stack trace either18:33
malbut probably some race condition since it was very reproducible until I reverted the autoloading commit18:33
malI had always reboot before that18:34
T42<TheVancedGamer> need to figure it out18:34
malyes, it's annoying there is no clear error18:34

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