| mal | hmm, but usb detection only works in peripheral mode somehow? | 00:00 |
|---|---|---|
| Mister_Magister | no it doesn't, we established that already | 00:00 |
| mal | but you said that a few lines earlier that you got it to configured state | 00:01 |
| Mister_Magister | it's jsut that, if it's none, i connect usb, write pripheral, it will change to configured and usb will work | 00:01 |
| Mister_Magister | if you disconnect and reconnect it won't update state and usb will be broken | 00:01 |
| Mister_Magister | if you set it to none it will become disconnected | 00:01 |
| Mister_Magister | technically 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 stupid | 00:02 |
| mal | yeah, that would be next level hacky | 00:02 |
| Mister_Magister | I'll ask guy who has this phone on android how it behaves | 00:03 |
| Mister_Magister | maybe android does set it to none/peripheral | 00:03 |
| mal | does this return anything: grep -r peripheral /*/etc/init | 00: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 want | 00:04 |
| mal | yeah | 00:05 |
| Mister_Magister | i think init script in ramdisk writes peripheral to the /mode no? | 00:08 |
| Mister_Magister | https://github.com/mer-hybris/hybris-boot/blob/master/init-script#L246 yeah | 00:08 |
| Mister_Magister | that's why it works if i boot with usb connected | 00:09 |
| Mister_Magister | and that's why it won't ever suspend because it's peripheral by default | 00:09 |
| mal | yeah | 00:09 |
| mal | but peripheral should be fine usually | 00:09 |
| Mister_Magister | well good night to you man and thanks a ton for help | 00:22 |
| mal | do 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.qti | 00:23 |
| mal | see what happens if you disable that | 00:24 |
| Mister_Magister | the generic disabled_services has service vendor.usb-hal-1-3 disabled | 00:26 |
| Mister_Magister | rebooting | 00:27 |
| Mister_Magister | there's also /system/bin/usbd should i disable that as well? | 00:30 |
| mal | probably good idea | 00:30 |
| Mister_Magister | dmesg is spammed crying for the gadget service | 00:30 |
| mal | by what service? | 00:30 |
| mal | that usbd? | 00:31 |
| Mister_Magister | yeah :) | 00:31 |
| mal | we don't really want any android usb service to conflict with usb-moded | 00:31 |
| Mister_Magister | ye ye i getcha | 00:32 |
| Mister_Magister | hmm usbd is still running | 00:34 |
| Mister_Magister | ah typo | 00:34 |
| Mister_Magister | okay dmesg is quiet agaihn | 00:35 |
| Mister_Magister | state still doesn't change | 00:36 |
| Mister_Magister | suspend doesn't work either | 00:37 |
| Mister_Magister | it was good try though | 00:38 |
| mal | needs more investigation later | 00:39 |
| Mister_Magister | yeah | 00:39 |
| Mister_Magister | maybe android guy will come up with something | 00:39 |
| Mister_Magister | but at least device is usable now | 00:39 |
| Mister_Magister | if we get the usb state and usb suspend to work then only hanful of issues will remain that are, in comparison, easy to debug | 00:41 |
| Mister_Magister | like ngfd bing at 100% volume, bootup led not working (probalby mce enables led before module loads), easy stuff | 00:42 |
| Mister_Magister | Oh i know, i'll make app for users to manually change usb state :D | 00:43 |
| *** ggabriel is now known as Guest9005 | 02:02 | |
| rinigus | b100dian: our nagara kernel - I will look into copyleft updates and will try to bump to latest version from LOS. I am sure there have been plenty of point releases since it was done last time | 10:32 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!