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

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