Nexus 5 不会使用 ADB 进入休眠模式
Nexus 5 won't go into doze mode using ADB
我有一台 Nexus 5,它无法使用来自 Windows 的 ADB 命令进入 Doze/IDLE 模式。它是使用 USB 电缆连接的 adb,并且适用于所有其他 ADB 命令。屏幕关闭。
C:\>adb shell dumpsys deviceidle force-idle
Unable to go idle; stopped at ACTIVE
C:\>adb shell dumpsys deviceidle enable
C:\>adb shell dumpsys battery unplug
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle enable
C:\>adb shell dumpsys deviceidle force-idle
Unable to go idle; stopped at ACTIVE
首先你需要运行这个命令:
> adb shell dumpsys battery unplug
然后关闭屏幕(这一步很关键),否则设备一直处于ACTIVE
状态。
之后运行这条命令直到设备状态变为IDLE
:
> adb shell dumpsys deviceidle step
Stepped to: IDLE_PENDING
> adb shell dumpsys deviceidle step
Stepped to: SENSING
> adb shell dumpsys deviceidle step
Stepped to: LOCATING
> adb shell dumpsys deviceidle step
Stepped to: IDLE
可能存在阻止 phone 进入空闲状态的条件,例如预定的闹钟。确保没有闹钟应用程序设置为在您试图强制 phone 进入空闲状态后不到一小时内关闭。
我有一台 Nexus 5,它无法使用来自 Windows 的 ADB 命令进入 Doze/IDLE 模式。它是使用 USB 电缆连接的 adb,并且适用于所有其他 ADB 命令。屏幕关闭。
C:\>adb shell dumpsys deviceidle force-idle
Unable to go idle; stopped at ACTIVE
C:\>adb shell dumpsys deviceidle enable
C:\>adb shell dumpsys battery unplug
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle step
Stepped to: ACTIVE
C:\>adb shell dumpsys deviceidle enable
C:\>adb shell dumpsys deviceidle force-idle
Unable to go idle; stopped at ACTIVE
首先你需要运行这个命令:
> adb shell dumpsys battery unplug
然后关闭屏幕(这一步很关键),否则设备一直处于ACTIVE
状态。
之后运行这条命令直到设备状态变为IDLE
:
> adb shell dumpsys deviceidle step
Stepped to: IDLE_PENDING
> adb shell dumpsys deviceidle step
Stepped to: SENSING
> adb shell dumpsys deviceidle step
Stepped to: LOCATING
> adb shell dumpsys deviceidle step
Stepped to: IDLE
可能存在阻止 phone 进入空闲状态的条件,例如预定的闹钟。确保没有闹钟应用程序设置为在您试图强制 phone 进入空闲状态后不到一小时内关闭。