简体   繁体   English

Nexus 5不会使用ADB进入打盹模式

[英]Nexus 5 won't go into doze mode using ADB

I have a Nexus 5 that won't go into Doze/IDLE mode using ADB commands from Windows. 我有一个Nexus 5,它不会使用Windows的ADB命令进入Doze / IDLE模式。 It's adb connected using USB cable and it is working for all other ADB commands. 它是使用USB线连接的adb,它适用于所有其他ADB命令。 The screen is off. 屏幕关闭。

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

First you need run this command: 首先,您需要运行此命令:

> adb shell dumpsys battery unplug

Then turn off the screen (this step is crucial), otherwise the device remains in ACTIVE state. 然后关闭屏幕(此步骤至关重要),否则设备将保持ACTIVE状态。

After that run this command until the device state changes to IDLE : 之后运行此命令,直到设备状态更改为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

There may be a condition which prevents the phone from going into IDLE, such as a scheduled alarm clock. 可能存在阻止电话进入IDLE的情况,例如预定的闹钟。 Make sure there are no alarm clock apps set to go off in less than an hour of you trying to force the phone into IDLE. 确保没有闹钟应用设置在您尝试强制手机进入IDLE的不到一个小时内设置为关闭。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM