Difference between revisions of "User:Sicelo/Snippets"

From Maemo Leste Wiki
Jump to navigationJump to search
Line 1: Line 1:
Possible N900 USB host mode
Possible N900 USB host mode


   echo 'force host full-speed' > /sys/kernel/debug/musb-hdrc.0.auto/testmode
   echo 'force host full-speed' > /sys/kernel/debug/musb-hdrc.0.auto/testmode
Line 6: Line 5:
   echo 1 > /sys/kernel/debug/musb-hdrc.0.auto/softconnect
   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
   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

Revision as of 21:57, 24 March 2020

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