Thursday, November 11, 2010

Turn off Android power management from console

It is very annoying during development on Android system if it enters sleep mode and there is no keyboard connected to Android target machine. So use the following commands to turn off power management from console.

# echo my_lock > /sys/power/wake_lock
and 
# echo my_lock > /sys/power/wake_unlock
to enable power management back.

No comments: