Saturday, 2026-05-09

malhmm, but usb detection only works in peripheral mode somehow?00:00
Mister_Magisterno it doesn't, we established that already00:00
malbut you said that a few lines earlier that you got it to configured state00:01
Mister_Magisterit's jsut that, if it's none, i connect usb, write pripheral, it will change to configured and usb will work00:01
Mister_Magisterif you disconnect and reconnect it won't update state and usb will be broken00:01
Mister_Magisterif you set it to none it will become disconnected00:01
Mister_Magistertechnically we could do super super super super dumb move and write peripheral/none depending on charging state xd but that'd be really really really really really stupid00:02
malyeah, that would be next level hacky00:02
Mister_MagisterI'll ask guy who has this phone on android how it behaves00:03
Mister_Magistermaybe android does set it to none/peripheral00:03
maldoes this return anything: grep -r peripheral /*/etc/init00:03
Mister_Magister`/vendor/etc/init/hw/init.qti.kernel.rc:    write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout}` but I don't think that's what you want00:04
malyeah00:05
Mister_Magisteri think init script in ramdisk writes peripheral to the /mode no?00:08
Mister_Magisterhttps://github.com/mer-hybris/hybris-boot/blob/master/init-script#L246 yeah00:08
Mister_Magisterthat's why it works if i boot with usb connected00:09
Mister_Magisterand that's why it won't ever suspend because it's peripheral by default00:09
malyeah00:09
malbut peripheral should be fine usually00:09
Mister_Magisterwell good night to you man and thanks a ton for help00:22
maldo you have any android usb services running?00:22
Mister_Magister /vendor/bin/hw/android.hardware.usb-service.qti /vendor/bin/hw/android.hardware.usb.gadget-service.qti00:23
malsee what happens if you disable that00:24
Mister_Magisterthe generic disabled_services has service vendor.usb-hal-1-3 disabled00:26
Mister_Magisterrebooting00:27
Mister_Magisterthere's also /system/bin/usbd should i disable that as well?00:30
malprobably good idea00:30
Mister_Magisterdmesg is spammed crying for the gadget service00:30
malby what service?00:30
malthat usbd?00:31
Mister_Magisteryeah :)00:31
malwe don't really want any android usb service to conflict with usb-moded00:31
Mister_Magisterye ye i getcha00:32
Mister_Magisterhmm usbd is still running00:34
Mister_Magisterah typo00:34
Mister_Magisterokay dmesg is quiet agaihn00:35
Mister_Magisterstate still doesn't change00:36
Mister_Magistersuspend doesn't work either00:37
Mister_Magisterit was good try though00:38
malneeds more investigation later00:39
Mister_Magisteryeah00:39
Mister_Magistermaybe android guy will come up with something00:39
Mister_Magisterbut at least device is usable now00:39
Mister_Magisterif we get the usb state and usb suspend to work then only hanful of issues will remain that are, in comparison, easy to debug00:41
Mister_Magisterlike ngfd bing at 100% volume, bootup led not working (probalby mce enables led before module loads), easy stuff00:42
Mister_MagisterOh i know, i'll make app for users to manually change usb state :D00:43
*** ggabriel is now known as Guest900502:02

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