[Q] play services keeping phone awake draining batteries - Nexus 5 Q&A, Help & Troubleshooting

My phone has always been awake when screen turned off and I think the play service is causing the problem. As shown in the pics I used the app ops to disable the play services permission to keep phone awake however it doesnt seem to work. Now my battery is being drained super fast even though I have my screen turned off most of the time. Anybody can help me identify the real reason why the battery is being drained so fast and why play services are still able to keep phone awake even though its permission to do so has been disabled? Thanks.

Same problem here. *AppOps screenshot from today, other screenshot for December 31st. AppOps still had Google Play Services keep awake disabled.*
Sent from my Nexus 5 with the N5X LRX22G ROM

[Battery Life Help] Troubleshoot battery issues here!

Related

[Q] Battery draining and high CPU load when idle

Hi everyone here
I got a concern about my TF101 Tablet.
When I switch my Tablet screen off and set the WiFi as turn off when screen off, my battery still drains extremely fast. From the pic you can see, my battery is running out from full to 10% in only 1day and 6 hours without any use. My GPS and bluetooth are also turned off in this period. From the pic you can also see my CPU load is over 30% at most of the time.
From the second pic, I can see the process "System" uses the CPU very hard
Can some one figure it out and I will appriciate it very much!
Here I have to bump...
wm2001wm2001 said:
Hi everyone here
I got a concern about my TF101 Tablet.
When I switch my Tablet screen off and set the WiFi as turn off when screen off, my battery still drains extremely fast. From the pic you can see, my battery is running out from full to 10% in only 1day and 6 hours without any use. My GPS and bluetooth are also turned off in this period. From the pic you can also see my CPU load is over 30% at most of the time.
From the second pic, I can see the process "System" uses the CPU very hard
Can some one figure it out and I will appriciate it very much!
Click to expand...
Click to collapse
I am seeing the exact same problem, not sure what the cause is either. I read somewhere about "wakelocks" where some app will try to keep the CPU awake when you try to go into standby and it results in high system usage.
Thank you for this thread, I am also having this problem. I think the problem for me may be because of Google Maps.
Basically, I'm running some tests now. I had massive battery drain overnight while I slept. The tablet would go from 90% down to 50% in an 10 hour period (4%/hr). It didn't matter if it was docked or not docked. I was running Google Maps v5.8.0 and saw some people post that the new version is eating up the battery. So I removed the updates for Google Maps and tried again.
Now I'm running v5.6.1 of Google Maps and the battery went from 100% to 42% in a 17 hour period with absolutely no use (3.5%/hr). I checked battery usage, and Google Maps is at the top and it's taking up 41% of what was used. That's ridiculous.
So now I'm going to install the latest Google Maps and see if this helps at all. I've also attached some screen shots of my latest tests.
Other details:
Wi-Fi is set to sleep when the screen turns off.
MobileDock Battery saving mode is checked.
Use location for Google Search is unchecked.
I did another test last night after having updated Google Maps to v5.9.0 (latest). I got the same results. Google Maps is eating through my battery when the tablet should be sleeping.
Here's the results:
The tablet was undocked, and fully charged.
I didn't touch the tablet for 15 hours.
The battery went from 100% to 55% in 15 hours = 3%/hr drain.
Google Maps was largest user of battery at 75%!!
I also did a reboot after I updated Google Maps to v5.9.0.
WTH is going on here?! Anyone have any ideas??
ScubaSteveo said:
I did another test last night after having updated Google Maps to v5.9.0 (latest). I got the same results. Google Maps is eating through my battery when the tablet should be sleeping.
Here's the results:
The tablet was undocked, and fully charged.
I didn't touch the tablet for 15 hours.
The battery went from 100% to 55% in 15 hours = 3%/hr drain.
Google Maps was largest user of battery at 75%!!
I also did a reboot after I updated Google Maps to v5.9.0.
WTH is going on here?! Anyone have any ideas??
Click to expand...
Click to collapse
Try turning off all location services (WIFI/GPS) and see if the problem goes away. I did something similar and the sleep mode CPU utilization dropped back to 1% or so. I haven't yet enabled the settings one by one to see which one cis causing the issue.
wilkster said:
Try turning off all location services (WIFI/GPS) and see if the problem goes away. I did something similar and the sleep mode CPU utilization dropped back to 1% or so. I haven't yet enabled the settings one by one to see which one cis causing the issue.
Click to expand...
Click to collapse
You are correct. I am able to turn the Airplane mode on and see virtually no battery drain at night. But this is rather annoying to have to turn on airplane mode every time you are done using the tablet and turn it back off whenever you want to use the tablet.
The best option would be to locate the source of this issue and fix that. Tonight I'll be testing Google Latitude turned off to see if this fixes anything.
As a test I turned back on location services (GPS/Google) but unchecked the use WiFi for location and found the problem went away overnight. Only a few % CPU use. Not quite as good as leaving in Airplane mode but close. Lost about 2-3% CPU over 7 hours. WiFi use setting is to disable with screen turned off.
So after my test last night, I still had massive battery drain.
I turned off Latitude as best I could last night and still same result. Google Maps is chewing up my battery like no other: from 100% to 52% in 15 hours with zero usage by me. Anyone have any other ideas? Any other apps that might be causing this?
ScubaSteveo said:
So after my test last night, I still had massive battery drain.
I turned off Latitude as best I could last night and still same result. Google Maps is chewing up my battery like no other: from 100% to 52% in 15 hours with zero usage by me. Anyone have any other ideas? Any other apps that might be causing this?
Click to expand...
Click to collapse
I had previously logged out of latitude and saw the same high drain result as you, so don't think it is that. When I disabled the WiFi location the drain stopped (leaving gps on). I agree it may be Google maps related since it uses the WiFi location services (since maps uses that service to locate the tablet along with gps).
I have a similar issue, but my problem is not with Google Maps. Instead, the main battery drain is "Android System." I usually leave my Transformer on standby 24/7 and used to only have to charge once a week. This problem appeared out of the blue a few days ago.
Google mail is the only thing on auto-sync, and this setting has never caused any issues in the past. Thus, I'm not sure why Android System is now suddenly waking up at random when asleep. You can see in the plot that System constantly requires 30% CPU usage once it happens, until I actually turn the device back on.
In addition, my wi-fi sleep policy is set to turn off when the screen is off. Recently, it seems it is always on, even when the device is asleep.
EDIT: The graphs from the OP suggest that our issue might be related, but the problem appears to manifest much more frequently for the OP. Crossing my fingers that next week's update somehow fixes this problem.
LagginTimes said:
I have a similar issue, but my problem is not with Google Maps. Instead, the main battery drain is "Android System." I usually leave my Transformer on standby 24/7 and used to only have to charge once a week. This problem appeared out of the blue a few days ago.
Google mail is the only thing on auto-sync, and this setting has never caused any issues in the past. Thus, I'm not sure why Android System is now suddenly waking up at random when asleep. You can see in the plot that System constantly requires 30% CPU usage once it happens, until I actually turn the device back on.
In addition, my wi-fi sleep policy is set to turn off when the screen is off. Recently, it seems it is always on, even when the device is asleep.
EDIT: The graphs from the OP suggest that our issue might be related, but the problem appears to manifest much more frequently for the OP. Crossing my fingers that next week's update somehow fixes this problem.
Click to expand...
Click to collapse
The system process was the same issue on my system as well (didn't show up as google maps). I confirmed that turning off the "Use Wireless Networks" under Location and Security stopped the constant 30% cpu usage when in standby.
After freezing Maps, which is the biggest culprit for me....i noticed, System Process' was way high now.
28%
After doing some searching.... came up with this
http://forum.xda-developers.com/showpost.php?p=16828183&postcount=605
At least for my case.
Google Maps battery drain Solved!
For me, I figured out the issue was Latitude.
I was getting bad battery drain overnight and Google Maps was the largest user by far. I finally signed out of Latitude completely. Battery drain dropped to around 2% (total) overnight! This is acceptable!
As it turns out, Latitude wakes up my device while it should be sleeping in order to update my location and therefore draining massive battery overnight. I'm going to post this as a bug with Latitude/Google Maps because this is causing waaaay too much battery drain.
So it looks like I won't be able to leave Latitude signed in. Once I'm done using it, I will have to sign out of Latitude. This way I can leave Wi-Fi on and set to turn off when the screen turns off. Thereby I get really good battery life again.
On a side note, my phone has the same behaviour, but I never noticed it because I'm usually charging my phone at night. So Latitude...basically...sucks (battery).

Just hours of "EntriesRefresh_wakelock". Anyone else?

Is anyone seeing this copious amounts of this wakelock too? It's part of the Google Search app and its wakelock has now been active for close to 5 hours now just today and seems to be active for most of the day. This is reported by Better Battery Stats and is seems to be confirmed by high energy usage by the built-in batttery settings app, as Google Search hovers in the mid 20s percentage.
floepie said:
Is anyone seeing this copious amounts of this wakelock too? It's part of the Google Search app and its wakelock has now been active for close to 5 hours now just today and seems to be active for most of the day. This is reported by Better Battery Stats and is seems to be confirmed by high energy usage by the built-in batttery settings app, as Google Search hovers in the mid 20s percentage.
Click to expand...
Click to collapse
I got this wakelock overnight after completely disabling location services. My N5 was held awake literally the whole night by this wakelock. This morning I turned back on location reporting and the phone is deep sleeping once again. Very strange. Did you have location service disabled because that seems to be what is causing the wakelock?
I would like to find a solution to this so I can keep location services disabled without completely disabling Google Now for overnight when I can't access a charger.
GoldElocks said:
I got this wakelock overnight after completely disabling location services. My N5 was held awake literally the whole night by this wakelock. This morning I turned back on location reporting and the phone is deep sleeping once again. Very strange. Did you have location service disabled because that seems to be what is causing the wakelock?
I would like to find a solution to this so I can keep location services disabled without completely disabling Google Now for overnight when I can't access a charger.
Click to expand...
Click to collapse
Yeah, I have my location services set to "device only", which I guess is the equivalent to the former GPS only. It could be that the GPS is turning itself off and on continually while it's supposed to be sleeping, and the fact that I'm mainly indoors could explain the hours long wakelock.
I set it to GPS only on the Nexus 5, because that was the most battery friendly on the Nexus 4, but the way services now work, it could be the least battery friendly setting.
this is completely confirmed! my note3 wasnt sleeping at all with the new google search 20hrs of no deep sleep with location off and i turned location on and its been sleeping like a dream for the past hour.. Very weird though
Same issue here with my HTC One. I noticed my battery was tanking at about twice the normal rate today, so I just opened up Wake Lock Detector and saw that on about 5.5 hours of use, Google Search had it awake for 4.5 of them. I've just turned on location services to see if that fixes it.
But, I'm with you. I'd rather find a fix that lets me keep location disabled.
Me too. I have a Galaxy4 S4 with 4.3 stock Samsung ROM. WLD shows huge count of EntriesRefresh_wakelock with almost three hours from 12 por off charge.
Confirmed on the lg g2 on 4.3. I disabled Wi-Fi and mobile network location because of the horrible nlp partial wakelocks only to encounter the entriesRefresh wakelock leech. Keeps awake like 90 of the time. I'm going to go back to enable Wi-Fi and mobile location until this is cleared up.
I am unable to even use Google now.. if I enable Location Report it's burning up and running about 20%.. if I disable Location Reporting it's running 50%.. I like Google Now and don't have any use for the location stuff...
Anyone have any updates? My only other option is going to just be to wipe it and keep Google Now unused so it doesn't run at all..
You can try to greenify Google search which contains this wakelock if you have the paid version of greenify (hibernates system apps). They say it's inadvisable to hibernate system apps, but you can override it. I would do a full backup and try it. They refund your money in 3 days instead of 15 minutes if your not happy. I haven't had a chance to try it yet.
Sent from my LG-D801 using xda app-developers app
Oddly enough I never had this issue on my nexus 5, but my Nexus 7 is absolutely plagued with just hours and hours of this wake lock as soon as I turn location reporting off.
Same issue here, my N7 is going nuts with this.
the7thson said:
Same issue here, my N7 is going nuts with this.
Click to expand...
Click to collapse
This has happened on my N5 before. Force stopping it once I noticed and also rebooting seem to fix it.
I had this wakelock for 2 nights in a row, completely draining the battery BUT
I have location services enabled and GPS is on (I play Ingress all the time and the network loaction gives me a faster lock)
I too noticed this was my top partial wakelock yesterday even though I have location services on. First time I've seen that happen. But it wasn't as aggressive as it was when location services were off.
Sent from my LG-D801 using xda app-developers app
Noticed this keeping my Nexus 5 awake 51%, location services were disabled. My Nexus 7 and Moto X also have them disabled and they were only awake 1%. Google Search is showing 60% of the battery but my device has been mostly idle for 4 days now. I'll see if enabling the services helps otherwise I'm not sure what else to attempt.
ohmimpotence said:
Noticed this keeping my Nexus 5 awake 51%, location services were disabled. My Nexus 7 and Moto X also have them disabled and they were only awake 1%. Google Search is showing 60% of the battery but my device has been mostly idle for 4 days now. I'll see if enabling the services helps otherwise I'm not sure what else to attempt.
Click to expand...
Click to collapse
I got this wakelock this morning.... "entriesrefresh_wakelock"
my location reporting is off
I love my N5 but god......I'm experiencing battery drain frequently (when I'm not on WIFI) with different wakelocks...
Otherwise the battery life is very good, if google can fix it once for all
I had this problem on my Nexus 5 too. I "fixed" it by uninstalling updates for the Google Search app (you can get there by going Settings>Apps and tapping Google Search). However Google will re-update the app frequently so you will have to repeat the process. Here's hoping another update fixes this problem.
Either disabling Location reporting or Locations all together can get rid of this I believe. Tasker can automatically re-enable it when you leave your wifi zone.

[Q] Higher idle drain?

Looks to me like there is a higher idle drain with the OTA/OTA Incremental update.
I'm seeing a 3-4x increase in amperage draw.
7-9mA before the update.
30-40mA after the update.
Nothing new installed.
Is anyone else seeing the same problem?
May have to go to my backup if this doesn't somehow fix itself.
My battery hasn't been great from the beginning. This update does seem to have made it significantly worse though.
It's starting to seem like it's worse than my Nexus 5!
mbudden said:
Looks to me like there is a higher idle drain with the OTA/OTA Incremental update.
I'm seeing a 3-4x increase in amperage draw.
7-9mA before the update.
30-40mA after the update.
Nothing new installed.
Is anyone else seeing the same problem?
May have to go to my backup if this doesn't somehow fix itself.
Click to expand...
Click to collapse
Turn off the " OK google " stuff , i had experience of it waking up device quite often and draining my battery, try turning them off ...
Other place to look out for what is walking up your device most of the time and deny them the access to wake up your phone , to hunt those apps , check
settings -> privacy -> privacy guard -> menu -> advanced -> device tab .
I found my facebook app / google play services was constantly waking up my device when on sleep , i denied "keep awake" to boost some more battery life ...
Hope that helps
For the first day, the phone was wakelocked by google play services. I used privacy guard to block it and unblocked it after a day and the drain has disappeared.
kokocabana said:
For the first day, the phone was wakelocked by google play services. I used privacy guard to block it and unblocked it after a day and the drain has disappeared.
Click to expand...
Click to collapse
For me it's been Android OS. It's used more than twice the battery as the screen and in 6 hours off battery has had 2 hours of "keep awake."
As a note I had disabled the google play services that was causing the drain when I first got the phone last month.
Vote for the issue here!
https://jira.cyanogenmod.org/browse/BACON-599

Kernel wakelocks draining battery, anybody else? Help needed

Hello all,
My phab 2 Pro is draining its battery too fast with the screen off. Using Battery Historian I've been able to pinpoint it down to something keeping the phone awake when it should be sleeping. The problem is it happens randomly and I haven't been able to "connect" it to a specific app or setting.
The "kernel wakeup reason" that Battery Historian shows as the (I think so anyway) culprit is "Abort:Wakeup IRQ -1169425744 (null) pending". The number after "IRQ -" changes from log to log.
Something else that keeps popping up on the "Userspace wakelock" line with short bursts is "RILJ". This is precisely during the period that the phone is "awake" but the screen is off. So maybe the RILJ and the IRQ thing have something to do with each other?
Steps I took:
Full factory reset
Uninstalled ALL apps that can be uninstalled.
Disabled ALL apps that can be disabled, apart from things that have to stay like keyboard.
Switched of any Location setting that can be switched off
Switched of all syncing that can be switched off
Enabled developer options (to be able to pull the bugreport.txt off the device using adb)
Engaged airplane mode
But even with all of these steps, which leaves the phone totally unusable (but I have another daily driver) this weird kernel wakelock still happens frequently, draining the battery very fast. Going from 38% down to 9% in just 6 hours, with the screen off(!) is plainly unacceptable.
Are there other users out there experiencing the same? I know of one guy who posted lasted year, but maybe there are more out there?
Can anybody help with this? I have no idea what to do now I more or less now where the problem lies. I'm no coder and don't know anybody at Lenovo...
Regards,
Sander
Is not normal what happens to you, but as a remote solution ... try to get into the applications that are working, and look at google services, there is one that spends a bestiality, it is called fileakintentoperation $ external that application next to the others Spend a lot of ram, I ended up blocking the services of google play and play store, and I assure you that the battery lasts for more than two days
rogerbcn said:
Is not normal what happens to you, but as a remote solution ... try to get into the applications that are working, and look at google services, there is one that spends a bestiality, it is called fileakintentoperation $ external that application next to the others Spend a lot of ram, I ended up blocking the services of google play and play store, and I assure you that the battery lasts for more than two days
Click to expand...
Click to collapse
Hi Rogerbcn,
thanks for replying.
Could you type the name of the app/service again? Google doesn't return anything on "fileakintentoperation" .
I already have the Google play and Play Store apps disabled, unfortunately, that didn't help.
Regards,
Sander
Is just below, where are the services of google play, and is also a service, but after reading that you have disconnected and you also have disconnected play store, gives me your battery or is badly calibrated or is to change, Take it to the sat of lenovo and assert your guarantee that for that we have spent 500 dollars / euros,regards
[rogerbcn] is probably correct and that you may have a defective battery. I use greenify and it seems to extend battery life about 23% for app hibernation.
https://play.google.com/store/apps/details?id=com.oasisfeng.greenify&hl=en
I resolved with task killer (kil 1 sec. After lockscreen)
edit: not resolved... anyone has other experience?
Seems to be resolved.
I used greenify, with doze go (adb solution)

OP7Pro battery drain 10%/h screen off 🤯 HELP

So I've had my OnePlus 7 Pro for over a year now and battery has been getting steadily worse. I've been running the latest stock beta channel (O2_BETA_5 atm) with Magisk and my battery drain has been consistently awful. I'd turn off WiFi in the evening and still my battery would be half gone by the morning. In the beginning the phone would easily last the day and now it barely gets me halfway through. I've attached a SS from AccuBattery showing a 10%/h drain with screen off. I've ordered a new battery but don't see the point of changing it before fixing this glaring software issue. I've done minor tweaks with root (including https://github.com/peterroth/OnePlusBatterySaver) so I don't know - maybe I ****ed something up. I would prefer not to do a factory reset but at this point I don't know what else to try. Please help!
Was also using beta 5, moved too the latest stable. Battery on last beta is bad.
Or maybe install BBS to monitor what's draining your battery
Lot of trash apps.
At least block the Gallery app with Karma Firewall; it doesn't need internet access unless you're using cloud services.
Any cloud services impact battery life...
Google Backup Transport, Framework and Google play Services are known serial offenders.
Google Firebase is another one that runs in the background mining your data like a little b$tch.
Trash apps sometimes wake up Google system apps or Android Services with their bs.

Categories

Resources