[GUIDE] Wakelock Detector: How to read, interpret, and optimize wakelocks

UJ95x

Retired Ambassador
Aug 26, 2013
9,337
0
0
Visit site
So you've been using your phone for some time and have had no issues making it through a full day. Battery life is great and you have no complaints, until one day you notice that your phone has been draining the battery without even being in use. By noon you're at less than 50%...what gives? :confused:
If the issue wasn't caused by poor cell service, it's likely that you have a wake lock. A wake lock is a method of power management in the Android OS. Most wake locks are partial, meaning that something is preventing the CPU from entering a "deep sleep." This makes it operate at a higher frequency, draining your battery faster than it should be. The other type of wake lock is far less common, and it keeps your screen on (full wake lock). Obviously with the screen on, your battery is going to deplete at a high rate.

[NOTE]While this app will work for most phones, due to permission changes to Android, your phone must be rooted for this app to work properly if you have updated to version 4.4 or later.[/NOTE]
So what can you do to fix the wake lock and get your battery back to normal? That's where Wake Lock detector comes in.
Link for the Play Store: https://forums.androidcentral.com/e...=com.uzumapps.wakelockdetector&token=7xLFVVdB

As shown in the app description, "Wakelock Detector? helps you to detect battery draining apps in your Android phone by checking wakelock usage history. Now you can easily find out what keep your phone awake and drain your battery when it is idle!

[INFO] GSAM Battery Monitor will also report wakelocks, and shows a more in depth chart of battery stats than the one built into your phone. [/INFO]

In this guide, I will go over some of the more common Wakelocks that users seem to experience and what you can do to fix them. :)

This is a screenshot of my wakelock logs for the day. As you can see, my phone has been up for 7 hours today, and has been held awake for 6% of that time. This is a pretty normal percentage and my battery isn't taking a hit from the ones shown.
2014-04-03 22.37.16.jpg

Here is a screenshot of a phone that has been held awake by the Google Maps application.
WLD Maps.png
Likely causes: Due to the app being in use, meaning that the phone's GPS is on.
Possible solutions: Turning off your GPS after using the app, or turning off location services within your phone's settings. Navigate to settings > personal > location and turn off location reporting. If that doesn't work, you'll want to go into settings > device > apps > maps, and clear cache.

Shown below is a screenshot from the WLD Play Store images. As you can see the app Kakao Talk and Facebook have kept the phone awake for 13% of the time since boot. For this one, we'll focus on Facebook as it is far more commonly used.
WLD FB1.jpg
Likely causes: The app is set to push notifications to you, meaning it is constantly checking for messages, replies, likes, etc. or the app is reporting your location
Possible solutions: Turning off push notifications/location reporting for the app. To do this open Facebook > app settings > and change your refresh interval to something longer than what it is currently set at or turn off the messenger location services. The latter can also apply to the "Facebook Messenger" app.

Below is the Google Services wakelock. While this shot only shows it draining 13% of the battery, a lot of users have much higher percentages from the same app/service.
WLD GS.png
Likely causes: Phone is failing to connect to Google Services, or is backing up data when it shouldn't be.
Possible solutions: Go into settings > wireless & networks > data usage > Google Play services and restrict background data. If that doesn't work, turn off syncing for your Google accounts.

Those are just some of the commonly seen wakelocks, most others should have similar fixes as the ones shown above. For these and for any Android system wakelocks (the ones that show the small Android robot icon), try a reboot of your phone first, as that will often fix these issues.

[INFO]For any rooted users, if you are still having trouble with battery drain, you may want to try the app "Greenify." It lets you put apps "to sleep" and will only wake them when opened. This will prevent any wakelocks, both partial and full.[/INFO]
greenify.jpg
Link to the play store: https://forums.androidcentral.com/e...ails?id=com.oasisfeng.greenify&token=lwM0Qcbs


Hope this helped some of you with that annoying battery drain, and getting back to what you were used to expecting from your phone :)
 
Last edited:

UJ95x

Retired Ambassador
Aug 26, 2013
9,337
0
0
Visit site
Re: [GUIDE] Wakelock Detector: How to read/I interpret and fix wakelocks

Excellent idea.

Probably going to talk about some of the most common wakelocks. Any ideas?
I know a lot of the social networking apps have them...

Sent from my Galaxy S4 running SlimKat 4.4.2
 

Golfdriver97

Trusted Member Team Leader
Moderator
Dec 4, 2012
35,365
110
63
Visit site
Re: [GUIDE] Wakelock Detector: How to read/I interpret and fix wakelocks

Probably going to talk about some of the most common wakelocks. Any ideas?
I know a lot of the social networking apps have them...

Sent from my Galaxy S4 running SlimKat 4.4.2

Google Now sometimes wakelocks. Kernel, too, but that is if there is a cache data conflict, or the device just needs to be rebooted.
 

UJ95x

Retired Ambassador
Aug 26, 2013
9,337
0
0
Visit site
Re: [GUIDE] Wakelock Detector: How to read/I interpret and fix wakelocks

Google Now sometimes wakelocks. Kernel, too, but that is if there is a cache data conflict, or the device just needs to be rebooted.

I'll add those too. Thanks

Sent from my Galaxy S4 running SlimKat 4.4.2
 

mumfoau

Trusted Member
Oct 29, 2010
1,503
28
48
Visit site
Re: [GUIDE] Wakelock Detector: How to read/I interpret and fix wakelocks

If I restrict background data for Google Play Services won't that stop my Gmail from syncing?
 

Golfdriver97

Trusted Member Team Leader
Moderator
Dec 4, 2012
35,365
110
63
Visit site
Re: [GUIDE] Wakelock Detector: How to read/I interpret and fix wakelocks

If I restrict background data for Google Play Services won't that stop my Gmail from syncing?

I think you are right. A good reason that restricting background data be done carefully.

From a Carbon M8 and AC Forums app
 

mumfoau

Trusted Member
Oct 29, 2010
1,503
28
48
Visit site
Re: [GUIDE] Wakelock Detector: How to read/I interpret and fix wakelocks

I think you are right. A good reason that restricting background data be done carefully.

From a Carbon M8 and AC Forums app
I went on a background data restricting spree when I initially got my Note 2! haven't done any such thing with this g2!

Sent from my LG G2 using Tapatalk
 

Forum statistics

Threads
942,897
Messages
6,916,438
Members
3,158,727
Latest member
thtknt