User:Sicelo/Snippets

From Maemo Leste Wiki
< User:Sicelo
Revision as of 21:57, 24 March 2020 by Sicelo (talk | contribs)
Jump to navigationJump to search

Possible N900 USB host mode

 echo 'force host full-speed' > /sys/kernel/debug/musb-hdrc.0.auto/testmode
 echo host > /sys/bus/platform/devices/musb-hdrc.0.auto/mode
 echo 1 > /sys/kernel/debug/musb-hdrc.0.auto/softconnect
 echo disconnect > /sys/bus/platform/devices/musb-hdrc.0.auto/musb-hdrc.0.auto/soft_connect


Force N900 to stop charging while connected to power

 echo off > /sys/class/power_supply/bq24150a-0/mode