Wednesday, 2022-07-20

voidanix[m]Thaodan: if CONFIG_PM_AUTOSLEEP is disabled then there is no sleep right? is there anything in SFOS that does/can do this in userspace?02:52
rinigusvoidanix: to my understanding, we rely on autosleep in sfos. Which could be an issue as I don't think it is used anymore in Android (kernel config was disabled at least on Tama)05:07
voidanix[m]it isn't indeed, option was marked deprecated05:08
voidanix[m]was looking at my laptop's and librem5's config as well and PM_AUTOSLEEP is off on both05:08
rinigusFor Tama, I emailed it and it works05:09
voidanix[m]wdym you emailed it05:11
rinigusEnabled it :)05:17
rinigusvoidanix: ^05:18
voidanix[m]oh, yea that's expected05:19
Thaodanvoidanix[m]: from what I understood is that it is only as deprecated as Android doesn't need it anymore06:38
Thaodanon the desktop it's not needed since sleep is triggered explicitly,  I don't know how the librem5 does it06:40
rinigusThaodan: problem is that Android vendors don't test with it anymore. as a result, we get weird issues with suspend, such as happened to tama. namely, tama was resuming and suspending in very fast loop - something I had to break by ensuring that resume time has some minimum duration06:42
T42<Verevka86> Does anyone have video recording in the camera based on hybris17.1-18.1?13:24
T42<edp_17> Even camera doesn't work on my port with android 17.1 base. 😭13:30
T42<edp_17> The camera app doesn't crash only shows black screen for both picture and video.13:31
T42<Verevka86> Photo work for me (17.1,18) (re @edp_17: Even camera doesn't ...)13:31
ThaodanDo you have rinigus miniaudiopolicy still running?13:31
T42<edp_17> @Verevka86 : Did you have to do some magic or it worked out of the box?13:32
T42<Verevka86> and with and without it with the latest droidmedia, video recording does not work (re @SailfishFreenodeIRCBridgeBot: <Thaodan>Do you have...)13:33
T42<Verevka86> only symlinks to apex libraries (re @edp_17: @Verevka86 : Did you...)13:34
T42<edp_17> I have droidmedia 0.20211101.0-1.13:34
T42<edp_17> What apex libraries have you symlinked?13:34
T42<Verevka86> https://github.com/SailfishOS-sagit/droid-config-sagit/tree/hybris-17.1/sparse/odm (re @edp_17: What apex libraries ...)13:35
T42<edp_17> Thanks.13:35
T42<edp_17> I only have these four in there : libandroidicu.so, libicui18n.so, libicuuc.so and libnativehelper.so13:37
T42<Verevka86> It's enough (re @edp_17: I only have these fo...)13:38
T42<Verevka86> does the torch work?13:38
T42<edp_17> Should I symlink /vendor/lib/egl directory into /odm/lib/ ?13:39
T42<edp_17> No, torch doesn't work either. When I toggles in Top menu, the icon is showing as it is on / off but led doesn't lit up.13:39
Thaodanrinigus: Did you try to get your changes to the autosuspend delay to aosp?13:42
ThaodanIt might make sense to push them to sony aosp if they make sense for us and aosp doesn't use autosleep13:42
T42<nephros> lbt: fyi, build.sailfishos.org timing out again.16:43
Thaodan@nephos: Something is wrong, webhooks just have been fixed now this.16:45
rinigusThaodan: the commit I am talking about is https://github.com/sailfishos-sony-tama/android_kernel_sony_msm/commit/65ad0ca39046bb32fa286612ead75692242c35ee . Which is  going to impact all SFOS/Sony devices16:51
rinigusNo, I haven't submitted it.16:51
Thaodanrinigus: That was the commit I was talking about too16:55
rinigusThaodan: I see. did you need it for some other device as well?16:56
Thaodanrinigus: I haven't check but as suspend is fixed on kumano now I will see if it helps there too but I think it should help on all devices.17:11
rinigusThaodan: it would make sense to submit it if it helps many. looking forward to your test.17:49
Thaodanrinigus: Will see, how did you test?17:49
ThaodanI looked at mainline autosleep, not much changes there.17:50
rinigusThaodan: I used systemdatascope + collectd and checked % time in suspend, duration of single suspend and how many suspend attempts were successful vs failed17:52
voidanix[m]i don't think the kernel should be modified to respect processes like this, it feels like a time hack18:46
voidanix[m]userspace should manage that...18:46
rinigusvoidanix: that hack was as kernel is responsible for autosleep as well. but sure, if it can be done in userspace and works better... for example, that 0.25s is just based on my experiments with tama.18:48
rinigusprobably something better can be done18:48
Thaodanvoidanix[m]: Well autosleep is a a kernel based solution.19:49
ThaodanAnd improving autosleep is still good.19:49
piggzthe smallest bugs take the longest :D20:56
piggzi may just go with option 2, the hacky script :)20:56
T42<Verevka86> video recording only works in armv7hl hybris17.1, does not work in aarch6422:00

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