Tuesday, 2025-10-21

T42_<adampigg> rinigus: hi, could you summaraise your recent work wrt suspend/mce ... the volla tablet i have is working well, mcetoos says there is 0 suspend, though, power drop over nigth is only 8% so not bad ... kernel does not have CONFIG_PM_AUTOSLEEP, so, i wonder if i need something new for hibernation..07:55
T42_<adampigg> or, i dont worry about it as the drop isnt too bad!07:55
rinigus@adampigg: simplest is to add CONFIG_PM_AUTOSLEEP=y and add a new patch https://github.com/mer-hybris/hybris-patches/pull/3312:53
rinigusthen you don't need to patch mce12:54
rinigusI think this solution is the best right now12:54
T42_<adampigg> cool .. mal just told me they have to add autosleep also12:54
malI should try that patch on some devices12:55
T42_<adampigg> id have to get that patch into halium system image12:56
malrinigus: did you need to patch something else to get that into use, I mean use custom .rc file or something12:56
rinigusmal: that's right. let me find it12:57
malfor community devices that is needed but I think for devices built using the official way that probably goes to system side build12:58
rinigusmal: you have to add `android.system.suspend-service` to make hybris-hal as an additional target12:58
rinigusand add .rc https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/sparse/usr/libexec/droid-hybris/system/etc/init/android.system.suspend-service.rc12:59
rinigus@adampigg ^12:59
T42_<adampigg> Looks like its already in the halium image : https://irc.thaodan.de/.imgstore/834f0ee7/file_7818.jpg13:01
T42_<adampigg> 3827 system   {suspend@1.0-ser} /system/bin/hw/android.system.suspend@1.0-service13:01
T42_<adampigg> Looks like its running in the halium image already13:01
mal@adampigg yes, you either patch halium image or do that hybris-hal way which is needed for community style builds13:02
malI wonder if missing handling of suspend service is causing some known issues13:02
malI have seen random issues with bluetooth for example which might be caused that the device is suspended and android side service tries to use it still13:03
T42_<adampigg> Woop, it slept13:16
T42_<adampigg> mcetool --get-suspend-stats13:16
T42_<adampigg> uptime:       254.67213:16
T42_<adampigg> suspend_time: 32.29713:16
T42_<adampigg> thats just with autsleep enabled13:16
rinigus@adampigg: so, that patch is mainly to make sure that it goes to sleep when none of android services release it for that, in addition to classical wakelocks.13:18
T42_<adampigg> yeah, seems sane13:27

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