Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. It's adb connected using USB cable and it is working for all other ADB commands. 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
like image 401
Veener Avatar asked Apr 22 '16 19:04

Veener


People also ask

How to enable USB debugging mode on Nexus 5?

Here your Nexus 5 should be listed as ‘Android Composite ADB Interface’. Step 1. Enable USB Debugging Mode. Step 2. Switch off your phone and boot it in bootloader/fastboot mode. To do this Hold Volume Up Key + Volume Down Key and then press the Power button.

How do I put my Nexus 5 in bootloader mode?

For Bootloader/Fastboot driver Put your Nexus 5 in bootloader/fastboot mode: Power off your device and wait for 5-10 seconds until the device is fully switched off. Press and hold Volume Down + Power button together and release them as soon as you see the bootloader screen.

Why is my Nexus 4 not showing up in ADB devices?

I had a similar problem with my Nexus 4 (Android version 4.4.2), it wasn't listed in adb devices. Make sure USB debugging is enabled from device, and do the following on your PC: From PC Control Panel, System -> Device manager -> Right click Nexus 4 -> Update driver.

How to fix Nexus 5 won’t boot?

And make sure you connect your Nexus 5 in that particular mode to be able to install drivers for it. Power off your device and wait for 5-10 seconds until the device is fully switched off. Press and hold Volume Down + Power button together and release them as soon as you see the bootloader screen. └ You’ll see an Android robot.


2 Answers

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.

After that run this command until the device state changes to 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
like image 170
Mattia Maestrini Avatar answered Oct 18 '22 23:10

Mattia Maestrini


There may be a condition which prevents the phone from going into IDLE, such as a scheduled alarm clock. 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.

like image 24
Oggy Avatar answered Oct 19 '22 00:10

Oggy