I.MX6 Android shutdown shell command

时间:2023-03-08 19:05:38
/*******************************************************************************
* I.MX6 Android shutdown shell command
* 说明:
* 想在I.MX6上执行shell关机命令,不过效果貌似不是很好,开关键多按两下又亮了。
*
* 2016-7-25 深圳 南山平山村 曾剑锋
******************************************************************************/ 一、参考文档:
. How I shutdown Android phone with adb command?
http://android.stackexchange.com/questions/47989/how-i-shutdown-android-phone-with-adb-command 二、操作命令:
. adb shell:
adb shell reboot -p
. debug shell:
. reboot -p
. 现象:
root@android:/ # reboot -p
SysRq : Emergency Remount R/O
EXT4-fs (mmcblk0p4): re-mounted. Opts: (null)
EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
Emergency Remount complete
Disabling non-boot CPUs ...
CPU1: shutdown
Power down.
note: reboot[] exited with preempt_count