How to track down what is keeping Android OS awake?

jpr

Well-known member
Sep 14, 2010
1,700
48
0
I charged my phone fully last night, then unplugged it and immediately turned off the screen. I went to bed a little bit later and when I turned on my phone 9 hours later, the battery was down 20%. When I checked the battery stats, Android OS was responsible for 83% usage. When I clicked on Android OS, CPU total was just a couple minutes but "Keep awake" was over 8.5 hours. How do I determine exactly what is causing the Keep awake? In case it matters, I was connected to WiFi all night, with great signal. The phone was in the same place the entire time, just 4 feet from the router, so it shouldn't be a signal searching issue.
 
Have you looked into the Better Battery Stats app yet? I'm pretty sure that will tell you what apps are keeping it awake...
 
  • Like
Reactions: jpr
I have not tried that app. I will keep it in mind if I cannot find a free way to do it. Thx. Well, a free away other than wiping my phone and installing my apps one at a time all over again. I don't have the time for that so I would buy the app first.

Edit: I'm going to try Watchdog - I forgot I had the Pro version free through Amazon - so I'll install that and see if I can get any info.
 
Last edited:
Hi thanks. I already downloaded GSam yesterday and it showed 'Magnetic Field' under Android OS as being on the whole time it was supposed to be asleep. I downloaded a half dozen other apps too and then finally downloaded the Better Battery Stats one and it shows that it never goes into deep sleep and the process keeping it awake is wlan_rx_wake, which is data being sent over the WiFi connection. After extensive searching, there can be two reasons for this - either the obvious, which is something on the phone is polling for data, or the router you are connected to constantly polling the device.

Unfortunately, there is no easy solution to this in my case since it is because of the second reason. I eliminated all possibilities of it being the first one and also confirmed it does not happen over my mobile data connection, only my WiFi connection. So, it seems the only things anyone has found to solve this problem is to use a different type of router or to set a static IP, since the polling seems related to dynamic IP acquisition and resolution. But I'd have to change ISPs for that, which I don't want to do.

This is not good news for me because I wanted to use WiFi at home since my apt is a black hole for signal of any carrier even though the moment I step outside my door I get 10Mbps speeds. But I can't plug my phone in over night because I have to have my phone next to me in bed since I have serious medical problems and there's nowhere I can plug it in where it will reach my bed. So, I'm not sure what I'm going to do now. :(
 
Have you installed any app that shows wi-fi traffic per app? You may have an app that is set to use wifi only. I assume you need wi-fi but I'm not sure why if you are asleep, you could go for an app that turns wifi off and back on regularly so wifi is not on all night just parts of it.
 
This is not good news for me because I wanted to use WiFi at home since my apt is a black hole for signal of any carrier even though the moment I step outside my door I get 10Mbps speeds. But I can't plug my phone in over night because I have to have my phone next to me in bed since I have serious medical problems and there's nowhere I can plug it in where it will reach my bed. So, I'm not sure what I'm going to do now. :(

You can't just run an extension cord, or an outlet splitter?
 
Betterybatterysats is free for XDA members. Just head over there and find the app's thread. Just sayin.

Sent from my Stock AOSP Android 4.1.1 Galaxy Nexus.
 

Trending Posts

Members online

No members online now.

Forum statistics

Threads
960,775
Messages
6,983,647
Members
3,164,568
Latest member
Johnnie C Mclemore