如何防止Android设备进入睡眠状态(通过adb命令shell)

问题描述 投票:0回答:1

我正在使用带有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。

我无法修改设置,因为我无权访问显示。

android adb sleep suspend
1个回答
7
投票

$ adb shell svc power stayon true

© www.soinside.com 2019 - 2024. All rights reserved.