Saturday, 2026-09-26

*** n2klb_ is now known as n2klb01:10
T42<the_hiktor> @Mister_Magister what have you done for miami suspend issue ?07:54
T42<the_hiktor> igot the same case07:54
T42<the_hiktor> i need to write none/periphiral to /sys/devices/platform/soc/a600000.ssusb/mode to get suspend07:55
T42<the_hiktor> im not sure i got it right from message logs on telegram but you mentioned creating systemd service07:56
T42<the_hiktor> i peeked your repos :)08:03
T42<the_hiktor> nothing related08:04
T42<elros34> so it never sleep out of the box without messing with sysfs?08:45
T42<the_hiktor> i don't know any other way to tamper with suspend08:53
T42<elros34> I mean you boot device, leave it for a while unconnected, then check suspend08:56
T42<elros34> without usb08:56
T42<the_hiktor> no it doesnt work that way i have to poke it like i mentioned08:57
T42<elros34> what if you just plug in and dissconnect usb for a while. Will it help for suspend?08:57
T42<the_hiktor> no it doesn't  tried that already08:58
T42<elros34> strange that you have simillar issue with quiet old device. I guess this is the service which miami uses: https://github.com/VerdandiTeam/usb-state-notifier08:59
T42<elros34> mind that you probably need to change path to mode file09:01
mal@the_hiktor which device is that09:01
T42<the_hiktor> poco x3 nfc09:02
malsharks[m]: the latest droidmedia won't work with sfos 5.1, if want to use it revert commit 81db5a7b2a50083f70f1249d99b9c1a735ff4114 from droidmedia09:03
maldidn't think the merging order properly so the breaking commit is before the android 15 and 16 support09:04
sharks[m]@mal ah, if I upgrade to SFOS 5.2 as I plan to try in an hour or two, can I keep the latest droidmedia?09:04
sharks[m]Interesting that it works with picoplayer in 5.1 but not Gallery!09:05
malthere is a struct size mismatch in gst-droid build since that is built against the older droidmedia09:10
sharks[m]I upgraded gst-droid and still have issues09:11
sharks[m]But as you say if I upgrade to 5.2 I perhaps will be able to fix that09:11
T42<Mister_Magister> @the_hiktor is question still active or did you solve it?09:17
T42<the_hiktor> wdym ?09:19
T42<Mister_Magister> did you solve it or the question targetted towards me still needs to be answered by me09:19
T42<the_hiktor> ohh , i was looking into usb-state-notifier09:21
T42<the_hiktor> not sure09:21
T42<the_hiktor> if you service helps then we're fine09:21
T42<Mister_Magister> ok so you want me to answer still i will assume. first off, does usb work for you?09:21
T42<the_hiktor> ya09:21
T42<Mister_Magister> but like, you can plug in OTG or into computer and get MTP?09:22
T42<the_hiktor> ya just mtp doesn't work for me09:22
T42<Mister_Magister> how about rndis mode? aka developer mode09:23
T42<the_hiktor> it does09:23
T42<Mister_Magister> then i can say you don't need my service09:23
T42<Mister_Magister> if you plug it into pc in developer mode, what does `/sys/devices/platform/soc/a600000.ssusb/mode` say09:24
T42<the_hiktor> peripheral09:24
T42<Mister_Magister> and if you unplug it?09:25
T42<the_hiktor> none09:25
T42<Mister_Magister> so it works fine09:25
T42<Mister_Magister> you just have to plug it into computer and then unplug09:25
T42<Mister_Magister> hold09:25
T42<Mister_Magister> ramdisk init script writes peripheral thats why you get peripheral on boot and have to first connect it to computer and then disconnect for suspend to work.09:26
T42<Mister_Magister> 09:26
T42<Mister_Magister> https://github.com/VerdandiTeam/droid-config-pipa/commit/2d36c8a34d4ca3f498a766d150ef2de2ae9e0e1f09:26
T42<Mister_Magister> this simple fix fixes it09:26
T42<Mister_Magister> but it also means if you boot with usb plugged in it will disconnect it and you'll have to reconnect phone but thats minor09:26
T42<the_hiktor> ya i don't think this will be a problem09:27
T42<the_hiktor> ill test it09:27
T42<Mister_Magister> @elros34 @the_hiktor in miami when you plug in usb it doesn't change to peripheral, that's what that miami's service does09:28
T42<the_hiktor> is that only in miami or in every moto ?09:29
T42<Mister_Magister> i've only ported miami from the recent motos, my other motos are from 201409:29
T42<elros34> but I just ask him few minutes ago and he said plugging in/out usb doesnt fix suspend09:29
T42<Mister_Magister> but i was told by android dev its totally normal in modern phones09:29
T42<Mister_Magister> @elros34 don't trust people :)09:29
T42<Mister_Magister> verify yourself :)09:29
T42<the_hiktor> @elros34 ya plugging in/out doesn't help unless i echo none to /sys/devices/platform/soc/a600000.ssusb/mode09:31
T42<the_hiktor> it does work normally after that09:31
T42<Mister_Magister> but it already says none brotha09:31
T42<Mister_Magister> so echoing none does nothing09:31
T42<the_hiktor> wait im testing again after reboot without that echoing first09:33
T42<Mister_Magister> first check what it says09:33
T42<Mister_Magister> if it says peripheral, sure it will block suspend, but if it says none, it shouldn't09:33
T42<the_hiktor> yeah it says none and it doesn't suspend after plugging in/out09:36
maljust curious, what in android handles that mode? something in .rc files or some service?09:36
T42<Mister_Magister> and after pluggging in/out it still says none? and it doesn't suspend?09:36
T42<elros34> stupid question but just in case: You are checking suspend stats without usb/charger connected?09:40
T42<the_hiktor> @Mister_Magister it says peripheral after pluggin in and no it does'nt suspend09:41
T42<the_hiktor> @elros34  yes09:41
T42<Mister_Magister> no ofc it will say peripheral and won't suspend09:41
T42<Mister_Magister> i'm asking after you plug it out09:41
T42<the_hiktor> sry ill check09:41
T42<Mister_Magister> it won't ever suspend when usb is plugged in and you won't change that09:41
T42<the_hiktor> it goes back to none09:41
T42<Mister_Magister> and suspends just fine?09:42
T42<the_hiktor> if i echo then yes09:43
T42<the_hiktor> echo none09:43
T42<Mister_Magister> but it already says none09:44
T42<Mister_Magister> according to you09:44
T42<elros34> so just write once "none" at boot and forget09:48
T42<the_hiktor> wait after rebooting it says peripheral when unplugged i plugged in it still shows peripheral then i unplugged now it show none but still suspend doesn't  work until i echo none09:49
sharks[m]Goddamn so much for updating to 5.2 tonight09:49
sharks[m]obs is down again09:49
T42<the_hiktor> @elros34 yeah looks like ill do that09:49
sharks[m]Hmm and back up again...09:49
T42<Mister_Magister> slow down. do this simple test. Note the suspend time in mce, plug in and out, verify its none, turn the screen off, do not plug in usb, wait for a minute or two09:49
T42<Mister_Magister> @elros34 according to him it won't help09:50
sharks[m]Aaaand back down again, damn AI bots09:50
T42<Mister_Magister> writing none when its already none should do whole lot of nothing09:50
T42<the_hiktor> but it's on peripheral after boot while unplugged09:51
T42<Mister_Magister> but that's not what I asked09:51
T42<Mister_Magister> you're claiming that after you unplug usb, it says none, but it doesn't suspend until you write none09:51
T42<Mister_Magister> which makes no sense09:51
T42<the_hiktor> ya so you need me to test without echoing ?09:52
T42<Mister_Magister> yes09:52
T42<Mister_Magister> thats what i thought you've been doing all this time and saying it doesn't suspend anyway09:52
T42<Mister_Magister> unplug usb, verify it says none, and leave it be for minute or two with screen turned off and check suspend stats09:53
T42<the_hiktor> fuck it suspended now :P just fyi i was using this10:10
T42<the_hiktor> https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini#L510:10
Mister_Magisterso answer to my earlier question and @elros34's question was yes it suspends all along10:11
T42<the_hiktor> ive been testing for like an hour and it wasn't suspending10:11
T42<Mister_Magister> sure… well add the line from pipa10:11
T42<the_hiktor> i also enabled android_tracking in that10:11
T42<elros34> @the_hiktor did you reboot? maybe it's stilll erratic10:12
T42<the_hiktor> rebooted three times to get this result :P10:12
T42<elros34> mal just a side note about peripheral usb mode: We don't use hybris-boot script on pro1x so it's not important but I have check cat /sys/class/udc/"$udc"/device/../mode and this doesn't exist. On pro1x 'mode' location is different so it would have to be /sys/class/udc/4e00000.dwc3/../../../mode:   github.com/mer-hybris/hybris-boot/blob/master/init-script#L246.10:19
mal@elros34 yeah, some devices have had issues with that10:21
malneeds some improvement10:21
T42<the_hiktor> why the hell im having hard time make device power off or reboot into bootloader or recovery things were nice before enabling selinux and adding sepolicy10:26
T42<the_hiktor> it just keep rebooting into os10:26
T42<Mister_Magister> perhaps its segfaulting when powering off10:27
T42<the_hiktor> not sure what's wrong but doesn't look segfaulting to me10:52
T42<the_hiktor> https://paste.opensuse.org/pastes/6cc126cdb76710:52
T42<the_hiktor> besides it takes long time to shutdown10:52
T42<Mister_Magister> then check what service are you waiting on to shut down10:53
T42<elros34> ```10:55
T42<elros34> systemd[1]: metadata.mount: Unmounting timed out. Terminating.```10:55
T42<elros34> but is' only about 10s10:56
T42<Mister_Magister> shutdown already is long so 10s is a lot believe me10:57
T42<Mister_Magister> i was optimizing shutdown in op6 recently10:57
T42<the_hiktor> it's by default 10s11:03
T42<elros34> looks like you enable watchdog's nowayout so maybe poweroff is too slow and watchdog do his job11:15
T42<the_hiktor> i enabled watchdog in kernel few days ago11:15
T42<the_hiktor> no i think i enabled it with selinux at the same time11:17
T42<the_hiktor> so yeah it's enabled11:17
T42<elros34> are you sure it wasn't enabled? How do you check it first? In generated .config?11:18
T42<the_hiktor> i've done that in defconfig but didn't check  in device11:19
T42<the_hiktor> yeah its enabled11:20
T42<the_hiktor> just checked it11:20
T42<elros34> that doesn't make sens for me to blindly enable some features in kernel. THen you never know whether this helped or did nothing at all. I would suggest you to always check whether something is already enabled/disabled in generated .config file in out/ directory or in /proc/config.gz11:21
T42<elros34> if something is missing in defconfig it doesn't mean it's not enabled11:22
T42<elros34> Back to issue I was talking about CONFIG_WATCHDOG_NOWAYOUT you enabled long time ago11:22
T42<the_hiktor> i enabled it in defconfig and forgot about it i was making overlays for selinux stubs in /odm for vndselinuxstubs11:23
T42<the_hiktor> zcat /proc/config.gz | grep CONFIG_WATCHDOG_NOWAYOUT11:23
T42<the_hiktor> CONFIG_WATCHDOG_NOWAYOUT=y11:23
T42<elros34> why did you make overlays? simple 'touch and mount' wasn't enough?11:25
T42<the_hiktor> I only get Permission denied doing that11:30
T42<the_hiktor> https://github.com/GloboPatro/droid-config-surya/blob/master/sparse%2Fusr%2Fbin%2Fdroid%2Fdroid-hal-early-init.sh11:30
T42<the_hiktor> And sorry i meant hwservicemanager11:30
T42<the_hiktor> I think i need to make systemd service for it  but it works nice for now11:32
sharks[m]Can confirm successful update to 5.2.0.18, no apparent loss of functionality aside from my beloved Launcher Combined patch fails to apply and xmatic wanted '/usr/lib64/qt5/qml/Nemo/KeepAlive/qmldir', but this requirement cannot be provided, so I had to uninstall it13:09
sharks[m]Overall very painless, thanks all13:10
sharks[m]xmatic is happy again after reinstalling it now that 5.2 is up and running, epic13:12
sharks[m]And the best bit? My video codec issues in the Gallery app are solved!13:15
Mister_MagisterAnyone remembers what droidmedia version 5.1 requires? :D15:27
Mister_Magistermal: could jolla potentially add sample animation duration to Theme, then we could control animation speed globally?15:42
malthere has been some discussions about improvements to such things15:54
Mister_Magisterahh okay15:54
T42<adampigg> I think 20260522 (re @SailfishFreenodeIRCBridgeBot: <Mister_Magister>Any...)16:10
Mister_Magistercheck fairphone :D16:23
T42<Mister_Magister> indeedio @adampigg you're correct, thank you16:23
Mister_Magisteri'll use master cause it has the android15 fix16:25
Mister_Magisterhmm i think i also need to build gst-droid…16:27
malyeah, latest droidmedia needs newer gst-droid to be built16:37
Mister_Magisterthanks to my changes xdd16:37
T42<b100dian> So can 5.2 be adapted, what are the dragons/ issues with non -JP2?17:36
Mister_MagisterHmm, i tried to build 5.1 image and got https://releases.jolla.com/jolla-apps/5.1.0.11/aarch64/LICENSE.txt 40417:42
malthere is no obs target probably for 5.2 yet17:44
Mister_Magistermal: got any clue about this 5.1 error?17:44
malhow new platform sdk do you have?17:45
Mister_Magister5.017:45
Mister_Magisteror 4.6 even not sure17:45
maltry updating it17:45
Mister_Magisterahh coderus updated the docker image17:46
Mister_Magisterbut latest should be 5.2 xd17:46
Mister_Magisterdid docker pull it seems to be working now thanks17:49
Mister_Magistermal: Iphone detected my xiaomi pad 6 and miami in bluetooth list despite both of them having bt turned off since they were turned on, got any clues why that might be?17:51
malI remember maybe fp2 or something did that also17:51
malI think it wasn't possible to connect to it if I remember correctly17:52
Mister_Magisteryeah but i'm worried now that bt really is turned on and drawing battery17:52
malyeah, somehow the chip might be activated by default17:53
malugly hack might be to toggle it via rfkill at boot17:53
Mister_Magisterthanks i'll look into it17:54
Mister_MagisterAnd would be cool of you to give approve on my sensorfw PR :)17:54
malwhat does rfkill say as the state after boot?17:54
Mister_MagisterI don't quite have time to debug it right now so… can't answer that sorry17:54
Mister_Magisterhttps://paste.opensuse.org/pastes/45d09a8ee24417:55
Mister_Magistermal: even after toggling bt on/off it still is being detected18:06
malhmm18:27
malwhich platform was that?18:27
malwhich qcom?18:27
malare those using bluebinder?18:31
malin case those are this could be something to try https://github.com/mer-hybris/android_kernel_sony_msm/pull/21/changes18:42
malmight not be relevant but still18:43
T42<Mister_Magister> qcom indeed18:57
T42<Mister_Magister> bluebinder inded18:57
*** xmn_ is now known as xmn19:48
sharks[m]Mister_Magister: Mal said master requires 5.2 now. For me 5.1 with master wouldn't play any video, but 5.2 works great. On 5.1 the last version that mostly worked was 20260508 with the Android15 branch20:59
T42<Mister_Magister> 5.1 does indeed play videos just browser likes to crash21:12
T42<Mister_Magister> Dont worry i messed around droidmedia and gst-droid enough21:12
Mister_Magistermal: so, restarting bluebinder got rid of the bluetooth, and i've confirmed after reboot it came right back up22:05

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