libera/#maemo-leste/ Saturday, 2024-02-24

siceloWizzup: freemangordon: uvos: please review https://github.com/maemo-leste/mce/pull/59 and also https://github.com/maemo-leste-upstream-forks/upower/pull/505:56
sicelowith those in place, the battery icon on status stops animating when charge full, and the green led works (at least on N900)05:57
siceloarno11: you can also test :-)06:02
siceloto test the updated packages without rebooting, (1) sudo rc-service mce stop, (2) sudo pkill -f upower, (3) sudo rc-service mce start06:17
tmlindfreemangordon: seems like that should work though.. at least the wake up enable bit gets set when omap-usb-host is runtime suspended08:30
freemangordontmlind: yes, but no interrupt15:03
siceloi have internet problems today for some reason, so i'm struggling with updating my git repositories for droid4-linux. i have a patch that i sent as an issue. https://github.com/maemo-leste/droid4-linux/issues/717:26
siceloplease review and merge ... i'll also get it ready for upstream17:26
freemangordonsicelo: why not send it to upstream?17:35
freemangordonah, sorry17:35
siceloi would like it to hit Leste in the meantime, since of course upstream will take a while. no idea as well if they'd decide to backport it to the kernel we're on17:38
siceloit fixes that issue with charging animation never stopping while a charger is connected, even when battery is really full17:40
freemangordonsicelo: yeah, I understand what it is used for, the point is that we can backport it easily after upstream comments on it. And that usually happens in 1-2 days18:03
freemangordonand at least I will not have time soon to test it :(18:04
sicelolet's see after i get a chance to refresh my repos18:16
Wizzupfreemangordon: we often include patches before they go to upstream fwiw19:16
siceloWizzup: i have a question about https://github.com/maemo-leste/mce/blob/master/src/modules/battery-upower.c#L79-L80  ... do you know any further details about that? i can see it was added by spinal, but you might know something :-)19:21
sicelothe thing is ... in status-area-applet-battery, he eventually reverted it19:23
siceloi'll be working on dropping the n900-related blacklist entries, so i was wondering about the one for d419:24
Wizzup(will check after dinner)19:29
freemangordonWizzup: I know19:32
freemangordonI don't object, just saying that perhaps review will happen faster if sent to upstream :)19:32
tmlindfreemangordon: maybe the kernel driver for qmi does not handle usb suspend so the modem won't know to initiate a wake-up? i'd asssume the pad wake-up event works just fine..19:43
tmlindfreemangordon: it could be the kernel driver just tells the qmi modem to shut up while suspended..19:44
freemangordoncould be, any idea where to look in?19:45
freemangordonthis is option driver?19:46
freemangordonor cdc-wdm?19:47
freemangordonmaybe I can connect my ec20 to d4 to see what will happen19:47
freemangordontmlind: ^^^19:48
freemangordondoes it make sense to write to the ML?19:48
tmlindfreemangordon: no idea where to look.. yeah maybe asking the qmi folks would help or try to test with your usb modem on a pc with wakeup and autosuspend enabled19:49
freemangordonalso, do you know how it behaves with vendor kernel?19:49
freemangordonI was not able to make it suspend when connected to my laptop19:49
tmlindfreemangordon: afaik the android kernel uses the gsmmux for everything except for cell data19:50
freemangordonyeah19:50
freemangordondo you have any idea why would it not suspend when connected to PC?19:50
tmlindtesting with a usb mouse with autosuspend and wakeup enabled on some similar device could help..19:50
tmlindfreemangordon: did you enable d4 modem autosuspend (and wakeup) on your pc via sysfs?19:51
freemangordonautosuspend is enable (200 ms for the modem, 0 ms for the port)19:52
freemangordonwakeup is disabled19:52
freemangordon*2000 ms19:52
freemangordonbut runtime_status stays active19:52
freemangordonthe same happens in leste VM19:53
freemangordonmaybe because kernel there is older, dunno19:53
tmlindso you did echo auto on pc?19:53
freemangordoncontrol?19:53
tmlindyeah19:53
freemangordonoh, wait, it is on19:53
freemangordonlemme try19:53
tmlindok19:54
tmlindso i think after you enable autosuspend on some usb device like a mouse, the mouse will send the k-state wake when you click on a button19:54
freemangordonyeah, ok, ec20 is suspended now19:54
tmlindok19:54
freemangordonwill try with d4, gimme a minute19:54
tmlindso then you need some command to remotely get modem(s) to do something, like send them sms?19:55
freemangordonhmm, will take more time19:56
freemangordonI need to add my patches in VM ofono19:56
tmlindok19:57
freemangordonotherwise it is easy to test it, RSSI gets reported on every change19:57
freemangordonok, will let you know what I test it, most-probably tomorrow as otherwise GF will get angry on me :)19:57
freemangordon*when I test19:57
tmlindyeah ok, maybe check with a usb mouse too if modems won't work for wake-up20:00
freemangordonubuntu kernel on my laptop refuses to suspend it :(20:04
freemangordontmlind: what happens on d4 seems to happen in the VM when modem gets suspended20:17
freemangordonno wakeup happens, despite it is enabled20:17
freemangordonI enabled wakeup on both modem and its parent20:17
freemangordonto no use20:17
tmlindok, also for your usb qmi modem?20:17
freemangordonlemme check with it20:18
freemangordontmlind: yeah, looks like the same20:25
freemangordonso most-probably qmi driver does not properly support suspend20:25
freemangordon:(20:26
freemangordontmlind: ^^^20:26
freemangordonttyl20:27
tmlindyeah ok ttyl20:28
tmlindfreemangordon: maybe it's related to the needs_remote_wakeup in usb drivers, at least qmi_wwan_manage_power() uses it20:32
Wizzupsicelo: re your questions, I don't really know, maybe we can do without?20:36
sicelosure. i can't think of a reason too. and yes, spinal did revert it in status-area-applet-battery. i'll drop it in an MR i'm yet to submit, while dropping the others. only bq24150 will remain in blacklist20:43
siceloi'll fix the kernel driver for that, and the upower problem will fix itself20:44
freemangordontmlind: https://www.quectel.com/wp-content/uploads/2021/03/Quectel_WCDMALTE_Linux_USB_Driver_User_Guide_V1.7.pdf21:22
freemangordonsee 4.2 "Enable USB Remote Wakeup"21:23
freemangordonI wonder why it is not in upstream21:23

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