For example, if Gmail is a big source
of wakelocks for you, you could set Gmail to never automatically sync new email.
If the app
causing wakelocks has a sync feature, set it to sync less often, sync manually, or disable sync entirely (if you never use it).
There are several apps to monitor
wakelocks on your device, but of the free options, Wakelock Detector is the best, in my opinion.
You can see the effect of
wakelocks in action by viewing the phone's state information after BetterBatteryStats has had some time to gather data.
Eventually, you'll start seeing apps pop up in this list, and they're ordered by how long they've
held wakelocks.
We can reduce the amount of time the phone spends awake thereby increase battery life by
eliminating wakelocks.
The app that caused the
most wakelocks will appear at the top of the list, so you'll know which problems you need to focus on.
(In technical terms, Doze prevents
wakelocks from waking your device, keeping it in a lower - power sleep state.)
If you have the Xposed Framework installed, there's an awesome module that will let you restrict
wakelocks without losing any functionality.
It's called Amplify, and it basically allows you to decrease the frequency at which apps can
request wakelocks.
This app works well
with wakelock detectors as a potent one - two punch.
Once you've found your
biggest wakelock culprits, you should first consider uninstalling the apps.
If you are using Lollipop, Marshmallow, or Nougat, you should head over to the official XDA forum thread to download the latest version and find out
what wakelocks, alarms, and services you might want to block.
Amplify, on the other hand, allows users to take more granular control of
Android wakelocks.
If we saw Google Talk near the top of this list and never used it, we could sign out of Google Talk to
reduce wakelocks.
As suggested in the app's FAQ, just Google «[appname] wakelock issue» and you may find the help you need.
If there's an app that continues
creating wakelocks and you don't use it, you should uninstall it.
(Note that
wakelocks just measure time the phone was awake when the screen was off.
His passion for Android turns into obsession the moment he finds a
new wakelock or sees a stutter.
And, unfortunately, there's no easy way to
diagnose wakelocks without rooting your phone, which makes it difficult for casual users to diagnose battery issues.
Since it's able to control some of the worst
system wakelocks, like NlpWakelock and NlpCollectorWakeLock, Amplify has been shown to significantly improve battery life.
One of the main causes of battery drain on Android is the
dreaded wakelock, which is a service apps use to prevent your device from sleeping so that they can sync data in the background and post notifications.
Nonetheless, you should definitely be aware of the apps on your system that are requesting too
many wakelocks.
For example, you could view information
about wakelocks, or view battery usage for periods of time not displayed in the Battery screen.
One potential issue we found that may be contributing to the battery life issues are pretty
consistent wakelocks caused by the system — particularly the touch screen «surfaceflinger» process, but others as well — that keep the phone from completely going to sleep for hours on end.
Apps that need to perform actions in the background use
partial wakelocks to keep the phone awake while performing the action.
It's important to remember that
wakelocks in themselves are not necessarily a bad thing.
Let's say your
biggest wakelock - holding apps are the kind you shouldn't uninstall.
Amplify, to put it short, is an Xposed Module which allows users to take full control
of wakelocks and alarms on your Android device.
If you're not sure what setting
a wakelock is related to, try Googling it.
- Way better settings screen - Show the number of times the alarms and
wakelocks have been blocked on the settings screen - Allow donations
Launch the app and you'll be presented with a list of other apps that have initiated
a wakelock — partial wakelocks are listed by default (called «CPU wakelocks in the app), but you can switch to view full wakelocks by tapping the CPU - looking icon and choosing «Screen wakelock.»
Any app that needs to do anything in the background — Gmail receiving new mail, a music player playing music with the phone's screen off, or the Contacts app synchronizing your contacts — all use partial
wakelocks to keep the phone awake.
For example, in the screenshot below, we can see several causes of
wakelocks: Google Maps automatically updating our location (presumably so Google Now will know where we are), Pocket syncing our unread articles, Twitter syncing new tweets, and the Google + app syncing new content.
There are two different types of
wakelocks to consider.
Next to each type of
wakelock you can see how many instances there have been.
Partial
wakelocks occur when an app or service continues to make use of CPU time but does so in the background, but full wakelocks mean that the screen is either turned on or prevented from turning off — which can obviously be a huge battery drain.
To view partial
wakelocks, tap the Other menu at the top of the app and select Partial Wakelocks.
Whether you're looking at full or partial
wakelocks, you can gain extra insight into what is going on with your phone by tapping any of the apps that have been highlighted.
Now we can see, as a community, how much time is wasted by alarms and
wakelocks.
- Fix for Sony Xperia devices - Fix for sorting by time - New descriptions and categorization for
wakelocks and alarms