![](/img/trans.png)
[英]How to verify android device Screen ON or OFF using adb shell command
[英]How to prevent an android device from entering sleep (via adb command shell)
我正在开发一个带有 android 的嵌入式电路板。 不幸的是,我无法使用显示器,因为我没有支持的显示设备(LVDS 显示器)。
每次我启动设备时,设备都会在一段时间后进入睡眠状态。
Restarting tasks ... done.
PM: suspend exit 1970-01-01 00:35:30.797352016 UTC
PM: suspend entry 1970-01-01 00:35:30.905410683 UTC
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.002 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
如何从 shell 提示中避免它? 我可以通过串口登录到shell。
我无法修改设置,因为我无权显示。
$ adb shell svc power stayon true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.