gps-lock draining battery - Samsung Galaxy Nexus

My phone's battery is draining really fast with minimal usage. Take a look at these battery usage screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see, the battery is pretty close to dying out after 11 hours with just 30 minutes of screen time. This definitely isn't right so I decided to look around. I haven't installed any suspicious apps and Android's battery usage stats are pretty unhelpful, but Better Battery Stats reveals the culprit: a gps-lock kernel wakelock.
While this wakelock is active, I've noticed that GPS apps don't work. None of the GPS apps show any GPS icon in the status bar and I don't seem to get any lock. The apps just fall back to the network location.
Turning the GPS or location services altogether off and on doesn't seem to help. Keeping the GPS off completely doesn't help either. A reboot does remove this wakelock... for a short while. Then it just pops up back again after a short while and doesn't clear unless I reboot.
I'm not sure where else I can look for the source and I could use some help.
I'm running stock 4.1.2 on a GSM Nexus.

Bogdan-xd said:
My phone's battery is draining really fast with minimal usage. Take a look at these battery usage screenshots:
As you can see, the battery is pretty close to dying out after 11 hours with just 30 minutes of screen time. This definitely isn't right so I decided to look around. I haven't installed any suspicious apps and Android's battery usage stats are pretty unhelpful, but Better Battery Stats reveals the culprit: a gps-lock kernel wakelock.
While this wakelock is active, I've noticed that GPS apps don't work. None of the GPS apps show any GPS icon in the status bar and I don't seem to get any lock. The apps just fall back to the network location.
Turning the GPS or location services altogether off and on doesn't seem to help. Keeping the GPS off completely doesn't help either. A reboot does remove this wakelock... for a short while. Then it just pops up back again after a short while and doesn't clear unless I reboot.
I'm not sure where else I can look for the source and I could use some help.
I'm running stock 4.1.2 on a GSM Nexus.
Click to expand...
Click to collapse
Google Maps/Google Now any app that use gps is active and searching for your location.
Go the app info clear cache/data and force stop them.
Google Map is pretty the biggest drain.
post your partial wakelock as well that can help us determine what app are awake =)

Simply go to maps setting and remove check-in and other useless option
This gps-lock is caused from google now and maps that continue research for your position, but it's strange and abnormal, i've googlenow actived with all option, and i do 4 hours screen on with always 3g up

r29 said:
Google Maps/Google Now any app that use gps is active and searching for your location.
Go the app info clear cache/data and force stop them.
Google Map is pretty the biggest drain.
post your partial wakelock as well that can help us determine what app are awake =)
Click to expand...
Click to collapse
I didn't take a screenshot of the partial wakelocks since there was nothing suspicious going on in there, but I can get one tomorrow if my battery drains again.
The biggest partial wakelocks usually come from AudioOut (if I listen to music), exchange sync, google backup, g+ sync and the like. Pretty much the same as on my Nexus 7, which doesn't have this crippling kernel wakelock.
Teezekel said:
Simply go to maps setting and remove check-in and other useless option
This gps-lock is caused from google now and maps that continue research for your position, but it's strange and abnormal, i've googlenow actived with all option, and i do 4 hours screen on with always 3g up
Click to expand...
Click to collapse
Thanks. Suprisingly, I had location reporting turned on in Maps, though I don't remember ever turning it on.
Hope it helps, since before this started happening, I could get around 2 days of standby time with around 4 hours of screen time on a single charge.
Other than that, I don't think Google Now and the GPS lock that Maps tries to take every now and then are the culprits. I remember Maps trying to get random GPS fixes on my old Gingerbread phone with no significant effect on battery.

Had the same problem - thanks!!
I just wanted to say thank you to all of you - I had pretty much the same problem, and I think following this advice will take care of it for me. It was obvious from the screen captures that "something" was wrong, and searching through the log files for what had the largest percentage solved it for me (I think).

Solution
Simply install TopNTP from google play
and then install his gps options (choose what you prefer)
Problem for me gone after this, and also gps working faster
sry for necro-posting

Related

[Q] Can someone take a look at my batterylog?

A couple of days ago I noticed my phone partying on my precious mAh's, it won't even last a full day anymore and even though it's being used quite alot I haven't changed my usage and still got a full day and more earlier.
I have auto-sync, wifi and 3g on constantly. But facebook sync is manual, other than that it's just skype(only when I'm logged in) and whatsapp and ofc google services. I think all Google's stuff uses push? I can't find any sync settings for that.
I should add that removing the widget was the first thing I did when I woke up so no actual usage is in the battery log. After that I checked tapatalk for 5 mins and put the phone down, after 20 min battery was down to 60% just like that...
I don't get why it uses around 40 mAh for a minute so often, at one point it was up to 162 mAh. And what the hell was it doing at the end? 60-100 mAh for a full hour? And only because I stopped it, could go on for alot longer I guess...
battery stats
Hi that is weird coz ur stats were excellent up till 8.20 ish, how about adding the 'Log running applications' setting in current widget to see what's turning on and draining ur battery.
Okay, I'll run another log tonight. Too bad the log gets like ten times harder to read with that option.
Sent from my Desire HD
u could see it urself aswell btw, in current widget, go to analyze log and select top processes, itll tell u what is draining sorted with the biggest power consumer. from ur earlier log standby should be at ~4ma and whatever is at the top is ur culprit. but post the results anyway just to be sure
I can't find that option? Anyway tonight it was a mess: EDIT I somehow didn't see the update in my apps...
The top of the list reads: com.cyanogenmod.cmparts(what's this?); gentle alarm(gotta have this...) and audiowidget(I don't even have the widget on a homescreen)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CMparts is cyanogen settings,
audiowidget is the audio manager app -https://market.android.com/details?id=com.smartandroidapps.audiowidget&hl=en
u need to remember that android has a memory management system which doesnt shut apps down immediately and only suspends them, it does this for quick recalls of a recently used app. when the phone needs more memory for a bigger app it then kills of the oldest recently used app, to free ram. you can use the task manager to kill apps off manually but not recommended since it may or may not destabilize android itself.
As for the battery drain, its actually very good, u lost 1% per hour with all of those apps running. The spikes that happens is just the phone syncing background data such as facebook, foldersync, etc as well as standby apps such as viber and go launcher activating from when you actually waking the phone up from suspend.
Google does use push sync, if this bothers you u can shut it off from Settings > Privacy > untick backup my settings - note that this will wipe backed up data and application history from google servers and not ur phone - doing this wont wipe calendar or contacts as that belongs to gmail.
if u actually notice on current widget during idle the phone sits between 1mA to 5mA. this is the expected range, now say if u open facebook it should spike up, on mine this spikes up to ~263mA for a while till it finishes downloading.
Wifi is another cause as well, since it usually disconnects after a certain period unless u specify the wifi to never standby, it will use up power to scan for the signal every so often and then reconnect.
Apart from that ur battery consumption is excellent. you can expect to use the phone regularly (browsing, calls, etc) w/o charging for a couple of days.
Thanks for an excellent reply. The thing is it usually lasted a full day and with around 30% left. Now I need to charge it around 9 or 10 so it's a couple of hours short. I use my phone alot, about an hour of music, constant wifi, games, Tapatalk, browsing and lots of texting. I was actually surprised it lasted as long as it did and even if my battery life is good now it was alot better before.
I have noticed that sometimes, say I've just exited and game with 80% left. After five minutes it can go down to 70%, don't know if my indicator is failing or my battery is crazy.
Btw wifi policy is set to never.
Sent from my Desire HD

[Q] Wrong stats on Bluetooth activity

Hello, i'm using betterbatterystats to check my battery life.
Everything is OK but i have a strange behaviour.
The App says that my bluetooth is always ON
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
but my Bluetooth is always OFF :
and i double checked in Parameters, and even restarted my phone, still same problem ....
Then today i checked my batterys stats and i get this :
My log is 19h10m5s long, and i have 2% of Bluetooth time.
But when i look at bluetooth time it says also 19h10m5s
so it should be 100 %, shouldn't it ?
Anybody also experiencing these strange Bluetooth stats ?
My Bluetooth is ON or OFF ?
Thanks.
battery stats doesn't really work, looking about the forums you see if you put wifi on all the time it says you have No or unknown signal for the same time as wifi was on.
you can look at your own screen shot for this one
seems it doesn't report as it should on the HOX
Hi, it is quite sure that betterbatterystats doesn't work but it's the system logs which is in fault not the app itself.
Even the stock app shows strange values on Bluetooth and wifi as you mentioned ...
In the case of the One X it is very useful to read those stats, but if they are totally wrong, how can we do a correct analysis of battery drain ...
By chance it is rarely bluetooth or wifi that drains the battery.
apagado es mejor!!!
19+ hours on battery with 65% left, and you call that a drain?
DanRZ said:
Hi, it is quite sure that betterbatterystats doesn't work but it's the system logs which is in fault not the app itself.
Even the stock app shows strange values on Bluettoth and wifi as you mentioned ...
In the case of the One X it is very useful to read those stats, but if they are totally wrong, how can we do a correct analysis of battery drain ...
By chance it is rarely bluetooth or wifi that drains the battery.
Click to expand...
Click to collapse
Hello, i have no drain, and never said that.
I just noticed those strange bluetooth stats when checking battery usage ...
Can you disable widget locker and associated power widgets in you home screens and figure out?
I would imagine some kind of interaction comes into the equation with these 3rd party programs.
Bonne chance.
Hello, thanks, it is a good idea ...
I removed the power widget on the home page and disabled widget locker.
I restarted my phone. Weirdly i had to insist to restart the phone.
When pushing power button, after 3 seconds, the lower buttons were blinking
but it didn't start, and then keeping power button 3 ou 5 seconds longer the phone restarted .
That is not the first time i noticed that the phone doesn't start or stop normally ...
At restart, i didn't see 100 % "bluetooth on" in betterbatterystats.
It looks like problem is solved ...
I will let the phone like that for a moment and put again the power widget on home page to see if i get the error back.
And then activate back widget locker.
Merci.
I activated the bluetooth for some minutes and turned it off.
Now i see on betterbatterystats that it is still ON in stats.
I refresh and the time "bluetooth on" is increasing.
I will wait a moment to see if bluetooth appears on "stock" battery stats.
It looks like a android system issue with bluetooth stats
treebill said:
battery stats doesn't really work, looking about the forums you see if you put wifi on all the time it says you have No or unknown signal for the same time as wifi was on.
you can look at your own screen shot for this one
seems it doesn't report as it should on the HOX
Click to expand...
Click to collapse
If you feel you have found a bug in BBS I would be glad to help you clarifying what is wrong (or fix what has to be fixed). But please take the discussion to the right thread.

[Q] Battery Life: Reviews vs Real-life experience

Hello everyone!
I have a quick question: why do all the reviews talk about 6+ hours of screen on time in "real-life usage conditions" while my M8 only seems to get around half of that? I'm usually down to 10% when my screen on time is 3,5h or somewhere around that depending on what I was using it for. Do these reviewers turn all the connectivity off? Or are they in airplane mode or something? Brightness all the way down? Mine is on wifi almost 100% of the time, google now and location reporting and such enabled. I know I can turn these off to get better battery life, but can you still call it a "smart" phone, if it doesn't even know where you are? It takes away all context awareness applications.
This isn't limited to my M8, I saw this trend on all the phones I've owned, so here's the main question: do I have bad luck and are the batteries in my phones always bad ones? Or am I using them different than those reviewers? (I mostly text, use facebook messenger and browse the web)
Looking forward to hear about your answers!
Note: I know there are a lot of battery life threads, but I thought this would make more sense in it's own thread.
I'm running the latest HTC Stock firmware (5.0.2).
LanderN said:
Hello everyone!
Mine is on wifi almost 100% of the time, google now and location reporting and such enabled. I know I can turn these off to get better battery life, but can you still call it a "smart" phone, if it doesn't even know where you are? It takes away all context awareness applications.
Click to expand...
Click to collapse
Google Now eats battery for breakfast. Even with syncing all my possible accounts (eMail, Google, WhatsApp, Threema, etc.) and having WiFi or 3G usage lots of times, Google Now (and especially in High accuracy-mode) is still #1 battery consumer. Did you have a look inside your battery usage using some tool like GSAM Battery Monitor?
Yes, i am regularly checking gsam, but the kernel and system apps seem to be eating the battery the most. Screenshot attached.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LanderN said:
Yes, i am regularly checking gsam, but the kernel and system apps seem to be eating the battery the most. Screenshot attached.
Click to expand...
Click to collapse
yes, huge parts of the location service go into the "Android System"-group. Just try setting the location accuracy a bit lower (or disable location services completely), just for one day, and compare the results.
toxic_garden said:
yes, huge parts of the location service go into the "Android System"-group. Just try setting the location accuracy a bit lower (or disable location services completely), just for one day, and compare the results.
Click to expand...
Click to collapse
It is in battery saving mode constantly except when i'm actively using google maps to navigate or something (which happens rarely)
LanderN said:
It is in battery saving mode constantly except when i'm actively using google maps to navigate or something (which happens rarely)
Click to expand...
Click to collapse
I had good battery life on TMO Stock 4.4.4, but as soon as i went to 5, yeah not good. My battery life seems to be about 40% worse.
So much for Project Volta
Do the custom roms improve battery life?
My batt results are pretty much the same as yours. I have GPS to high accuracy and am usually on LTE (however I did turn off location services as the wakelocks were killing me).
i m getting 4.3 hours screen on time with 1% battery drain per hour on standby... stock lollipop... google services eating battery
n70shan said:
i m getting 4.3 hours screen on time with 1% battery drain per hour on standby... stock lollipop... google services eating battery
Click to expand...
Click to collapse
Here is the bomb, brace yourselves:
My current setup:
Latest S.ROM (Stock Android 5.02 + Stock Kernel)
No facebook (disabled)
Wi-Fi Scanning Always On: OFF
Location mode: battery saving
No google account
Mobile Data: Always On
Brightness: Auto
Everything else: Default
I get:
7+ hours screen-on time
18 hours of usage, AND
By the end of the day, I still have 10-20% battery leftover.
It turns out Facebook is a battery parasite (, but having a google account is the true mother of all battery hogs. From my own experience, Google Services uses about 35% of my juice. After removing the google account entirely, Google Services use only 5%
Opinion:
Google services are cool, but NOT cool enough to sacrifice both my privacy and a high-quality phone experience to. I now enjoy my phone as much as I please for as long as I'm awake.
shirreer said:
Here is the bomb, brace yourselves:
My current setup:
Latest S.ROM (Stock Android 5.02 + Stock Kernel)
No facebook (disabled)
Wi-Fi Scanning Always On: OFF
Location mode: battery saving
No google account
Mobile Data: Always On
Brightness: Auto
Everything else: Default
I get:
7+ hours screen-on time
18 hours of usage, AND
By the end of the day, I still have 10-20% battery leftover.
It turns out Facebook is a battery parasite (, but having a google account is the true mother of all battery hogs. From my own experience, Google Services uses about 35% of my juice. After removing the google account entirely, Google Services use only 5%
Opinion:
Google services are cool, but NOT cool enough to sacrifice both my privacy and a high-quality phone experience to. I now enjoy my phone as much as I please for as long as I'm awake.
Click to expand...
Click to collapse
nice to know that... by the how much time your charger takes to full charge your phone?? my is taking 2.5 hours from 0 to 100... is that normal? i m using stock 1.5 A charger.. wht about u?
I honestly have no idea, but, "Overnight" should accurately account for that. It's terrible, I know.
Cheers
@shirreer how did you remove google account. Is it by disabling google services?
To remove a Google Account:
Settings -> Accounts and Sync -> Google
Tap the 3-dots menu next to your name, select remove.
You might also want to clear the data for Google+, Google Now, and Google Play Services (must deactivate ADM first).
Good luck.
everyday i got 18 hours 5 hours sot. if i use more lte during the day the sot go down to 4 hours, but i always use high brightness with auto enabled, sync activated and location on battery saver.
My phone usually charges in around 1hr30min from 5 to 100 (although Im using a 2amp charger). So seems about right. I am running stock Lollipop from the GPE (5.1). Usually I am getting around 4hrs sot. I do have Google services enabled as I do use them often and screen brightness at around 45%. The only app i have greenified is FB.
Overnight Im draining due to Nlp wakelock. Anybody experience this?

High battery drain for a fresh reinstall 7.0 in idle for no apparent reason

Hello, people!
So, on 6.0.1. stock ENcrypted it was like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
about 5% lost per night
WiFi always on, whatsup, maildroid checking one imap mailbox for every 120 mins (set to wake up the phone), ok google OFF, now cards OFF, backup-ing OFF. Steady about 5% (4-6%) per night.
Now, I flashed factory image 7.0.0. everything stock. Then I flashed boot.img with disabled encryption and formated data and cache. Everything is as it is described above expect for the maildroid has NOT been even installed yet.
And that's what I get second night in a row (rebooted, cache wiped from recovery mode before leaving the phone):
23% eaten for doing ABSOLUTELY NOTHING!
What even worse, even android itself does not know what it was doing that it ate so much battery because the percentages does not add up for the whole drain.
After so many time invested into this phone for getting pure stock 7.0 unencrypted I just feel exhausted and want to throw this phone out of the window.
I'd appreciate a right direction for figuring out what drains the battery.
Yeah battery blows with nougat. Significant Google play services drain mainly bet scheduler. Had somewhat similar with MM but was able to really calm it down with Power Nap, bit since Xposed is not out yet for N....I'm nandroiding back to MM too.
Sent from my Nexus 5X using XDA-Developers mobile app
I downgraded to MM, and it became normal. The next day I missed the quick switching between the last two opened apps and I flashed N again))
Actually, this night it drained 8% what is kinda OK. What I additionally did was that I disabled under google account sync everything except for the contacts and calendar. Also I activated data saver and added only whatsup there. Wifi was on all night, but he phone did not seem to be waking up during the night at all, what is good because I didn't need it to be doing anything except for idling in case someone calls for emergency. So, I guess after some hard tweaking and disabling things I can cope with N, but mostly for the sake of awesome interface features.
Oversemper said:
I downgraded to MM, and it became normal. The next day I missed the quick switching between the last two opened apps and I flashed N again))
Actually, this night it drained 8% what is kinda OK. What I additionally did was that I disabled under google account sync everything except for the contacts and calendar. Also I activated data saver and added only whatsup there. Wifi was on all night, but he phone did not seem to be waking up during the night at all, what is good because I didn't need it to be doing anything except for idling in case someone calls for emergency. So, I guess after some hard tweaking and disabling things I can cope with N, but mostly for the sake of awesome interface features.
Click to expand...
Click to collapse
Just give it sometime...things are settling in...so a lot of time play services and stuff also go crazy...also apps are getting updated as well...give it a week or so...things will be better
I had this sort of issue on DP5 after a while but clean flashing MM stock and then re-OTAing to N seemed to fix it for me and I'm back at 5-6% overnight.
I honestly think there is a bug in there somewhere, whether its Google services or what i've no idea as my battery stats didn't seem to add up to the drain I was seeing. I had a similar weird drain before on MM too which a wipe sorted out.
give the system some time to settle in. i upgraded to N the day it came out and after giving android a few days i recognize no major difference in performance or battery life, even though things like Force Doze are incompatible now.
Sorry for off topic
How did you get that icon to the left of alarm icon in status bar (circular arc with + sign in the center)?
Thanks in advanced
ABSathe said:
Sorry for off topic
How did you get that icon to the left of alarm icon in status bar (circular arc with + sign in the center)?
Thanks in advanced
Click to expand...
Click to collapse
That's a new data saver feature being turned on. Setting -> Data usage -> Data Saver option there
I went back to MM not because of the idle drain, infact, I had no drain but the SOT sucks... Like 2-3 hours instead of 4-5 on MM. Maybe I'll wakt until Xposed it compatible again...
Hi, I don't mean to hijack the thread, but I posted about an issue with the screen, which is battery related as well. Actually when idle I have almost no battery drain (up to 2% per night). Could you take a look at this thread regarding the issue: http://forum.xda-developers.com/nexus-5x/help/nexus-5x-android-7-screen-battery-usage-t3463591
I have screenshots prepared (even worse than what I've already described), but as already mentioned I don't have enough posts in order to be able to post them here.
Is this an issue with the screen, battery or OS? The device is new with the OTA Nougat update.
How exactly did you downgrade to Marshmallow? I'd like to know because my 5X drains battery like crazy without doing anything on 7.0
Rage9one said:
How exactly did you downgrade to Marshmallow? I'd like to know because my 5X drains battery like crazy without doing anything on 7.0
Click to expand...
Click to collapse
Flash factory image from https://developers.google.com/android/nexus/images
Did that too but unfortunately for me it didn't fix my drain...

Deep Sleep vs. Awake (Screen Off)

I installed BetterBatteryStats on my phone and was checking some of the stats today.
The following information called up my attention:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
During this period, the phone screen was off most of the time (at least 5 hours), but the phone remained in "Deep Sleep" mode for just a short period (12 minutes). The rest of the time, the phone was in a state called "Awake (Screen Off)", which I don't recall from my previous Android phones.
Did anyone else notice a similar behavior? Is that normal or should I be looking for apps that may be causing wakelocks?
My phone is still unrooted and running OxygenOS 3.2.7.
I was wondering if this behavior may be related to the OnePlus 3 gestures, which I have enabled on my phone.
Any ideas?
Not normal. Try installing wakelock detector and see what is causing this
OK, thanks.
I'm now running both Wakelock Detector and BetterBatteryStats. I don't have root, but I figured both apps have a way of detecting wakelocks on non-root devices.
My first suspicion was WhatsApp Web, which I had been using lately. So I stopped using it for a while. I also disabled the OnePlus Screen Gestures to see if there was any change.
Even then, my phone is not going to Deep Sleep as much as it should. I took some new measurements overnight. The phone was not connected to the charger and was idle the whole time (screen off, no use). I expected at least 6 hours of Deep Sleep. But I got 1 hour of Deep Sleep and 7 hours of Awake (Screen Off). I'm attaching several screenshots of this scenario. During this time, the phone was connected to my Wifi network and bluetooth was enabled (the phone was connected to an Android smartwatch). Do you think that might be preventing the phone from going to Deep Sleep? Any other ideas?
Thanks a lot
Mmm... I guess I finally found the culprit!
I decided to uninstall the Android Wear app, the Google Fit app and disable bluetooth. My phone is now going to Deep Sleep as it should. The battery usage decreased from 5,3% per hour to 0,9% per hour, which is just a massive difference! I'm attaching screenshots of the battery stats after getting rid of Android Wear.
Too bad Android Wear is actually an app I wanted to use... Anyone had similar issues? Anything I can do to keep using Android Wear and have a decent battery usage?
Actually, I'm not really sure if the culprit was Android Wear or Google Fit (or a combination of both).
I'll perform a few more tests and report my findings here.
I'm confirming that Android Wear / Bluetooth is causing the battery issues.
Google Fit is responsible for a few wakelocks as well, but the battery drain is not significant.
I'm attaching a few screenshots showing that a process called bluedroid_timer is preventing the phone from going to deep sleep. This wakelock is related to the bluetooth connection in Android Wear. This is very annoying because I can't use my watch and have my phone's battery lasting a full day. Anyone else having this issue? Suggestions?
I googled the issue and found similar reports, but none of the workarounds seem to work:
https://forums.oneplus.net/threads/bluedroid_timer-wakelock-battery-drain.463468/
https://code.google.com/p/android/issues/detail?id=87778
http://en.miui.com/thread-281577-1-1.html
https://www.reddit.com/r/oneplus/comments/33l0ys/bluedroid_wakelock_large_battery_drain_on_opo_and/
https://www.reddit.com/r/AndroidQuestions/comments/2obk9i/bluedroid_timer_wakelock/
Thanks a lot
I performed a few more tests and realized that the battery issue is indeed related to Bluetooth, but not to Android Wear!
I had the following app installed on my device:
https://play.google.com/store/apps/details?id=br.com.edeploy.gol.checkin.activities
After uninstalling this app, the bluedroid_timer wakelock disappeared and my phone is going to Deep Sleep as it should (even if I enable Bluetooth and use Android Wear). It appears that this specific app uses the android-beacon-library (BLE beacons), which causes wakelocks even if I'm not using the app.
Problem solved for now!
info wld statistics window
tiagobt said:
I'm confirming that Android Wear / Bluetooth is causing the battery issues.
Google Fit is responsible for a few wakelocks as well, but the battery drain is not significant.
I'm attaching a few screenshots showing that a process called bluedroid_timer is preventing the phone from going to deep sleep. This wakelock is related to the bluetooth connection in Android Wear. This is very annoying because I can't use my watch and have my phone's battery lasting a full day. Anyone else having this issue? Suggestions?
I googled the issue and found similar reports, but none of the workarounds seem to work:
https://forums.oneplus.net/threads/bluedroid_timer-wakelock-battery-drain.463468/
https://code.google.com/p/android/issues/detail?id=87778
http://en.miui.com/thread-281577-1-1.html
https://www.reddit.com/r/oneplus/comments/33l0ys/bluedroid_wakelock_large_battery_drain_on_opo_and/
https://www.reddit.com/r/AndroidQuestions/comments/2obk9i/bluedroid_timer_wakelock/
Thanks a lot
Click to expand...
Click to collapse
Hello @tiagobt,
could you explain me how did you show up the statistic window containing total awake time, deep sleep, screen ontime, awake time, etc ?
https://dl.xda-developers.com/3/9/3....png?key=YWuq_rrWQ8oq8AOaPWZqVQ&ts=1491603260
thanks a lot
enigma14 said:
Hello @tiagobt,
could you explain me how did you show up the statistic window containing total awake time, deep sleep, screen ontime, awake time, etc ?
thanks a lot
Click to expand...
Click to collapse
Just tap the orange/green bar on top of the screen.
In betterbatterystat my Awake (screen off) is 100%. What does it mean? Is it the lower percentage better or higher percentage like 100% better? I've attached the screenshot.
Atharkhan101 said:
In betterbatterystat my Awake (screen off) is 100%. What does it mean? Is it the lower percentage better or higher percentage like 100% better? I've attached the screenshot.
Click to expand...
Click to collapse
Awake(screen off) means that the screen was off but the phone was active and this value should be as low as possible. However this screenshot doesn't establish anything since it is not equal to an idle dump in BBS.
Visit the BBS thread, learn how to produce an idle dump and then post one in that thread and seek help.
I've attached the screensho, why everything shown as 100%? is it that if battery level is below 10%, or shoes like that?
Atharkhan101 said:
I've attached the screensho, why everything shown as 100%? is it that if battery level is below 10%, or shoes like that?
Click to expand...
Click to collapse
The screenshot shows the "from" reference as "Unplugged" but no "To" reference is shown. Go into the BBS settings and enable the options to show the "From" reference as "screen on" , and the "To" reference as "current" and "screen off" etc. That should sort out the issue.
tiagobt said:
I performed a few more tests and realized that the battery issue is indeed related to Bluetooth, but not to Android Wear!
I had the following app installed on my device:
https://play.google.com/store/apps/details?id=br.com.edeploy.gol.checkin.activities
After uninstalling this app, the bluedroid_timer wakelock disappeared and my phone is going to Deep Sleep as it should (even if I enable Bluetooth and use Android Wear). It appears that this specific app uses the android-beacon-library (BLE beacons), which causes wakelocks even if I'm not using the app.
Problem solved for now!
Click to expand...
Click to collapse
Can you please tell us how did you figure out which app is causing this? I have a similar issue where most of the battery is going for Android System and Google Play Services. I am on Mi9T with MIUI 12.

Categories

Resources