Help with identifying wakelocks/battery drain - Nexus 5X Q&A, Help & Troubleshooting

Hi everyone, for the past couple of weeks I have had more idle drain than usual on my rooted Nexus 5x. The problem has persisted across multiple roms. I recently returned to stock, and waited a day to restore my user apps with Titanium Backup, and in that day, the stock rom did NOT have the problem. Then, when I restored user apps, the problem returned. So it appears that one of MY apps, not the OS, is causing the wakeups. However, in both BetterBatteryStats and Wakelock Detector I cannot find any particular wakelock(s) that seem to be causing this issue.
The only concrete evidence I have is the Android built in battery details screen. In the screenshot of the graph and the awake/screen on bars, you can see constant wakeups starting around 2pm (when I restored user apps). Before that, the phone mostly slept while the screen was off, but after 2pm, it has been waking up constantly. I have also attached Wakelock Detector screenshots (Have not used BBS yet on this ROM). They show awake time that is much higher than the sum of the listed wakelocks. (Note: the 52 minute "Photos" app wakelock was a one time thing today, the problem has persisted without that.) If anyone can figure out what might my issue is, I would hugely appreciate it! Thanks!

Best way might be to restore one app per day to figure out which app it is

2x4 said:
Best way might be to restore one app per day to figure out which app it is
Click to expand...
Click to collapse
I was hoping to avoid that, in case anyone had any ideas. But I have a feeling I'll have to. Thanks!

brentoma589 said:
Hi everyone, for the past couple of weeks I have had more idle drain than usual on my rooted Nexus 5x. The problem has persisted across multiple roms. I recently returned to stock, and waited a day to restore my user apps with Titanium Backup, and in that day, the stock rom did NOT have the problem. Then, when I restored user apps, the problem returned. So it appears that one of MY apps, not the OS, is causing the wakeups. However, in both BetterBatteryStats and Wakelock Detector I cannot find any particular wakelock(s) that seem to be causing this issue.
The only concrete evidence I have is the Android built in battery details screen. In the screenshot of the graph and the awake/screen on bars, you can see constant wakeups starting around 2pm (when I restored user apps). Before that, the phone mostly slept while the screen was off, but after 2pm, it has been waking up constantly. I have also attached Wakelock Detector screenshots (Have not used BBS yet on this ROM). They show awake time that is much higher than the sum of the listed wakelocks. (Note: the 52 minute "Photos" app wakelock was a one time thing today, the problem has persisted without that.) If anyone can figure out what might my issue is, I would hugely appreciate it! Thanks!
Click to expand...
Click to collapse
I believe I suffered the same issue, and I have a solution. Not a fix but solution...
http://forum.xda-developers.com/nexus-5x/help/google-photos-device-awake-diff-roms-t3406571

Seeing the same issue ... have disabled the AutoSignInandSync service, waiting for the results and will update if that helped.

Related

[Q] Battery drain, wakelocks and modem/wlan

I know there are a million battery threads, but I can't find the answer to this one. I'm one of the people who gets fairly significant battery drain no matter what rom/kernel I use. I noticed in the last month or so with Better Battery Stats that there are a series of processes in the kernel that causes wakelocks. I've tried to look this up on google and several forums, but cannot figure out why they occur sometimes and not other times. They are:
modem_usb_gpio_wake
modem_usb_suspend_block
wlan_rx_wake
musb_autosuspend_wake_lock
wlan_wake
It seems that when these processes run, my battery drains much more quickly than when they don't. If I reboot the phone, they'll go away for a while (hours to days) and then come back.
Any ideas?
Did you try changing the baseband?
arzbhatia said:
Did you try changing the baseband?
Click to expand...
Click to collapse
Yes. I changed to the newest release when 4.0.4 was leaked.
There is one post in Sven's github knowledge base about this. It suggests using a "sniffer" to figure out what is causing the wlan_wake.
wlan_wake
Speaking Name: wlan_wake
Rationale: wifi chip woke the CPU (Usually this fires and leads to a wlan_rx wakelock).
Know actions: Use a sniffer to determine the cause of the traffic.
Known conditions of occurence:
Related wakelocks: wlan_rx References:
Last edited by asksven, 4 months ago
all Wakelocks
Hi,
i have a galaxy note GT N7000 runing PA 3.99. Since a few days, my battery started to rain really fast ( i haven't done anything to my settings nor installed anything new), i let BBS get some statistic that i will post here. Hope you could help me. As i can see i have most of the wakelocks from first posts...
During night
During next day
A little of next night and day
I can also post screenshots of bbs if necessary.
Best regards,
the modem_usb ones only occur on toro and toroplus roms I believe
I usually do a test - complete wipe and install rom with literally no apps for a full charge to see how it does. Ive had so many battery problems but i have always been able to nail down an app/or many apps that caused the issue. i tried all the battery apps, looked at my wakelocks, etc but i dont think they really helped me much.

[Q] Titanium Backup Causing Partial Wakelocks?

I am on stock AT&T 4.0.4, and just rooted a few days ago so I could take a backup with Titanium Backup. This morning I went for a 2 hr bike ride using Strava as my GPS app (it only used 2%). In the several hours before and after the ride, I see that Titanium Backup has a 4.27 hr partial wakelock having taken 35% of my battery life.
I'm new to Titanium Backup, and backed all of my apps and settings up yesterday. I have no automated backups scheduled at all. It shouldn't even have been running, I have no "frozen" apps set or anything. Why would it be causing these partial wakelocks? Is there anything I can do without having to uninstall the app? I am using the latest free version from the Google Play Store.
I get fairly good battery life on my GS3, considering that on the weekends I run or ride for several hours at a time, sometimes streaming music the entire time (and GPS always on). This is the first time I've had a "rogue" process really chew up the battery. I'd hate to have to uninstall Titanium Backup because it eats my battery with partial wakelocks.
Thanks in advance for the help
While i have never seen Titanium backup do this, and cant offer much help as to fix this, but a process running in the background, using up battery is not a wake lock.
TRusselo said:
While i have never seen Titanium backup do this, and cant offer much help as to fix this, but a process running in the background, using up battery is not a wake lock.
Click to expand...
Click to collapse
Thanks for the response. So in Better Battery Saver (attached screenshot), when I am looking at "Partial Wakelocks" under "Since Unplugged" and the top item is com.keramidas.TitaniumBackup.service.WorkerService -- that's not a wakelock? Am I to assume that's what's eating the battery though? Sorry, I'm new to the Android planet.
tekchic said:
Thanks for the response. So in Better Battery Saver (attached screenshot), when I am looking at "Partial Wakelocks" under "Since Unplugged" and the top item is com.keramidas.TitaniumBackup.service.WorkerService -- that's not a wakelock? Am I to assume that's what's eating the battery though? Sorry, I'm new to the Android planet.
Click to expand...
Click to collapse
Even if it's not actively doing anything, keeping the phone from going to deep sleep would be a big drain on the battery. I would say that's definitely the cause of your issue.

Event log service battery drain

I currently have a problem that "Google services -> event log service" is draining my battery a lot,
I was asking this in another thread about this problem but got told I should ask here in the specific forum for my phone.
I fully charged it during night and at 2:30am I rebooted the phone and unplugged the charger.
Now in the afternoon at 5pm I checked again (haven't used the phone since then) and battery was at 62 %
Wakelock detector is showing an activity of Google-services/Event log service with 1 hour 43 minutes.
Wlan off, 3G on, GPS off, bluetooth etc off.
I disabled all unessesary syncs including google backup/restore, not helping at all.
I checked developer settings for log recording etc.. but everything is off.
It's the international E975 model btw,
I have the same issue. I think i tweaked it too much lol.
Partial wakelocks in BBS indicates EventLogService has been on for 5h.. -_-
Have you done any tweaks to it? I.e: freeze anything from titanium, greenify, etc
This is a result of frozen apps.
jiexi said:
This is a result of frozen apps.
Click to expand...
Click to collapse
hi there
so if i check what apps are frozen and uninstall them, this will get rid of the problem basically, that simple??
It may just cause more problems. The reason the wakelock is even appearing as event log service is because the app is frozen, but causing wakelocks. But wait, didn't we freeze it?.. how can it still be causing wakelocks? Some other system level app is still capable of waking it, so it may or may not be something important.
jiexi said:
It may just cause more problems. The reason the wakelock is even appearing as event log service is because the app is frozen, but causing wakelocks. But wait, didn't we freeze it?.. how can it still be causing wakelocks? Some other system level app is still capable of waking it, so it may or may not be something important.
Click to expand...
Click to collapse
cheers, actually i have LOTS of wakelock time taken from these 2:
1) Alarm Manager - Android System. this one grows by 5 units every time i unlock the phone and check, NORMAL??
2) Event Log Service - Google Services, this one is a bit more quiet but still growing silently.
Things i have on:
usually sync, but those 2 above grow regardless of sync being on or off, then i have 2 alarms in the calendar, one active and one not and some calendar notifications.
are those responsible? right now my phone is doing around 2% battery use but i notice that it grows very easily, just now i lost 1% in only 25 minutes.
the "awake" graph under battery looks strange.. sometimes it matches screen off (so good), sometimes, it seems to be on, with screen OFF for no reason whatsoever.
any idea?
thanks

[Q] GS3 - Voicemail and battery drain issue? - 2nd highest WakeLock item

So, I've been having battery issues for awhile now, and they only got worse with the most recent Sprint update. I'm not a battery management rookie, and I've been consuming info on posts and threads for some time now trying to figure out the issue. Turning off options or syncs doesn't seem to do anything (and I've toggled almost everything off and on with no measurable effect to battery).
MediaServer was an issue for awhile, and I went through and located and pulled all 0kb media files and MediaServer has dropped back down to no longer being a major wakelock/battery issue.
I have no one app that seems to the issue when I check SETTINGS->Battery, or GSAM battery stats or WakeLock Detector. It's always just "Android System" and "Kernal". But I have noticed over the past several days that "VOICEMAIL" in consistently in the top THREE when it comes to WakeLock (see photo).
Problem is, I haven't received more than a handful of calls in the past several days (I mostly use texts to communicate. Just preference - don't judge), and none of them used voicemail. Why would voicemail be at the top of the wake list?
Any ideas on this one? I can't really uninstall voicemail (I tried to "disable" it in settings, but that's not really possible...understandably), plus I would like to keep it around. It's a bit of a necessity with phones.
I am running a Sprint GS3 on the newest update and unrooted (although I might root again if that would solve the problem). I am going to try and do a factory wipe today and start over again to see if that solves the issue (I've already wiped CACHE and that did very little). Maybe updating made something not work with each other.
I've been searching threads for a few days now, and I see nothing about voicemail and battery drain. Is it supposed to be that high on the list? Am I missing something else?
Thanks.
K--
EDIT - Oh, and the phone has been off the charger for only 2 hours and it has dropped 20% while NOT BEING USED at all...aside from sitting in my pocket. The apps that are opened are because for ten minutes I went through and wrote down what I needed to reinstall after the factory wipe. I had tapped some of the apps while moving screens around. It was at about 83% before I started that process. That can't be "normal" for battery.

Battery drain

Hello.
I've bought a G4 in March and only 20 days ago I've started to notice a odd and big battery drain. Android tells me it's "Android SO" consumption. What once drained like up to 5%, now drains more than screen. 20 days ago, battery lasted like 34h. With same usage now, turned 12h.
I've uninstalled the apps I've installed meanwhile, used it in battery eco mode and even on airplane mode, without any luck.
4-5 days ago I've installed Wake Lock Detector (no root, but with the right permissions) and Better Battery Stats. From what I understand from the reports, they don't blame any specific app but show thousands of wakelocks on Android SO. I believe sometimes it can be normal (for instance, when I run with GPS and music). Anyway, maybe the issue lies here.
What I find really odd is that those 2 apps say that the phone is awake more than 90% of the time. Like 1h of deep sleep only per full battery.
I could understand if someone says that it's the battery that had a great use already, but not only has 7 months of use, but also the phone behaviour changed (Android SO was never so high before, at least constantly).
Thanks in advance for any advice!
JoaoAfonso said:
Hello.
I've bought a G4 in March and only 20 days ago I've started to notice a odd and big battery drain. Android tells me it's "Android SO" consumption. What once drained like up to 5%, now drains more than screen. 20 days ago, battery lasted like 34h. With same usage now, turned 12h.
I've uninstalled the apps I've installed meanwhile, used it in battery eco mode and even on airplane mode, without any luck.
4-5 days ago I've installed Wake Lock Detector (no root, but with the right permissions) and Better Battery Stats. From what I understand from the reports, they don't blame any specific app but show thousands of wakelocks on Android SO. I believe sometimes it can be normal (for instance, when I run with GPS and music). Anyway, maybe the issue lies here.
What I find really odd is that those 2 apps say that the phone is awake more than 90% of the time. Like 1h of deep sleep only per full battery.
I could understand if someone says that it's the battery that had a great use already, but not only has 7 months of use, but also the phone behaviour changed (Android SO was never so high before, at least constantly).
Thanks in advance for any advice!
Click to expand...
Click to collapse
Suggest you check out and install the apps recommended apps on ✭[GUIDE][26-07-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭ at https://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Read the OP thoroughly for each app discussed. The wakelock situation can be helped a good deal with Amplify and Greenify in particular - the paid versions - but I would also install AppOppsXposed - all require Xposed which requires root in order to be installed and I would also check out Power Nap to see if any incremental improvement.
You may a also want to run a malware scan ...
Thanks for the info. I checked it earlier, but most of those apps only run in root phones. I'm waiting for official Nougat in G4, mostly because haven't saw yet a Nougat image for this device without any problems, like camera not working, or such. I wouldn't mind to pay for apps that could work on this, but I want to avoid rooting. I guess I rather put Android 7, that has a bigger chance to even solve this problem, than root at this time.
Haven't said earlier but did a factory reset yesterday and device kept the behavior... I believe a hard reset would reduce almost to 0 the eventual malware problem.
No obvious alternatives for not rooted phones? Haven't this happened to someone else and been solved?
Thanks!
I had the same problem a few weeks ago...i was loosing ~30% of the battery at night with no wifi/data/gps etc. I tried everything...factory resets, different roms, greenfy & those kind of apps but the phone would not sleep. The last thing i tried was a factory reset and after i logged into my gmail account i set the phone as a new device...so no restoring apps and backups from my gmail account. Now everything is ok, my phone sleeps like a baby. I've read somewhere that it might be related with the syncing & backups....i don't really know, but you can give it a try.
uzadragos said:
I had the same problem a few weeks ago...i was loosing ~30% of the battery at night with no wifi/data/gps etc. I tried everything...factory resets, different roms, greenfy & those kind of apps but the phone would not sleep. The last thing i tried was a factory reset and after i logged into my gmail account i set the phone as a new device...so no restoring apps and backups from my gmail account. Now everything is ok, my phone sleeps like a baby. I've read somewhere that it might be related with the syncing & backups....i don't really know, but you can give it a try.
Click to expand...
Click to collapse
Haven't tried that yet. I'll try to remove and add the device again, to avoid the pain of a new hard reset.
To have a reference, it was good to know an average percentage of other G4 deep sleep. If everyone has around 90%... maybe it's not a problem at all. The "sleep like a baby" is which percentage? Also, there are plenty babies that wake up hourly crying for a period of time...
Thanks for the tip!
JoaoAfonso said:
Haven't tried that yet. I'll try to remove and add the device again, to avoid the pain of a new hard reset.
To have a reference, it was good to know an average percentage of other G4 deep sleep. If everyone has around 90%... maybe it's not a problem at all. The "sleep like a baby" is which percentage? Also, there are plenty babies that wake up hourly crying for a period of time...
Thanks for the tip!
Click to expand...
Click to collapse
My phone was awake >90% of the time(when screen was off), even in flight mode, when it had "the problem". Now things are back to normal...~2% awake when the screen is off.
Hello again.
Tried to reset a couple more times, tried to remove old phone register in my gmail account, but I wasnt successful.
How you did the
"The last thing i tried was a factory reset and after i logged into my gmail account i set the phone as a new device..."
?
Once it asks for my account, I'm not able to set it's a new device. I also did no restores... Is there a way to disconnect devices from Google account? I was only able to do so in devices I connected like one month, or more, ago, but not able to do so in the device I'm using at the moment.
One thing I did not try but that would confirm your thesis is to register device with a new account.
Anyone with an alternative?
I'm hoping LG really releases Nougat for G4 in 2017...
Today, the device returned to normality without any intervention. I can only imagine the following: since last factory reset I've disabled some apps I didn't used, like Google books, or Google music, but only yesterday I did a normal reboot (due to huge battery drain...). Eventually, some updates just took place after this reset. Anyway, even having imagined this theory, I don't believe in it. Wizardry, I bet.

Categories

Resources