Kernel wakelocks cause battery drain - Galaxy S 4 Q&A, Help & Troubleshooting

A few weeks ago, my S4 started to have terrible battery life. BetterBatteryStats tells me that my phone is usually 1-2 hours longer active than I'm actually using it, and that it's caused by the kernel wakelocks in the screenshot. Sometimes there are wifi-related wakelocks too, even though wifi is always turned off.
Is there a known cause for these wakelocks? I couldn't find an explanation. Also, could flashing a new kernel help? I thought about doing that anyway.
Thanks!
Screenshot 1
Screenshot 2

If it really is kernel related, then yes.

Related

Excessive Deep Sleep Battery Drain

Some of you may have noticed that battery life on this phone can be both unbelievable and mediocre. I've been trying to figure out what can trigger and cause mediocre performance and I'm at a loss. The problem is, there doesn't appear to be a smoking gun. No obvious wake locks. No rogue Apps. I have Carrier IQ disabled by System Tuner. Google Now is off. What I'm running right now is pretty bare bones. And the kicker is my phone is sleeping, as can be seen in the shots below. The vast majority of the time my phone was off the charger it was in deep sleep mode.
I noticed my phone in excessive drain mode Saturday so I let it run over night and into the next day, so that BBS and GSam could pick up as much data as possible, including sitting idle overnight and very little use throughout yesterday.
Here are some shots to show the story. The graph, which is definitely steeper than when idle drain is normal, which resulted in idle drain of about 6% per hour. Also as can be seen in these shots, there is not a wakelock problem. Deep sleep shows as 12 hours 38 minutes, Awake time of 1 hour 8 minutes, and screen on time of 1 hour. So, my phone was only "awake" for 8 minutes when the screen was off out of almost 14 hours according to BBS.
I did notice and oddity here though. BBS listed the unplugged status as 13 hours 47 minutes, while the phone's battery meter listed it at 12 hours 13 minutes.
Attached are the shots I took at 19%, as well as a final battery meter shot after charging the phone to full while powered off and restarting, where it's been purring like a kitten in deep sleep.
Part of me is beginning to believe there is a bug with the battery gauge. What do you guys think is going on?
Try clearing data for google play services,google services framework and playsore than reboot and check if things changed.
And i would recommend uninstall the updates related to those apps and let them update itself again.
Sent from my LG-D802 using xda premium
gm007 said:
Try clearing data for google play services,google services framework and playsore than reboot and check if things changed.
And i would recommend uninstall the updates related to those apps and let them update itself again.
Sent from my LG-D802 using xda premium
Click to expand...
Click to collapse
Done. Although I won't know if any attempts to resolve the issue have worked until the idle drain triggers again (or doesn't).
Thanks for the advice.
Well unfortunately that didn't solve the issue. The heavy deep sleep drain again triggered after a bit over one full day. I charged to full last night and let sit over night where it drained 6% per hour with no obvious culprit. Anyone else have any suggestions?
It seem that your signal is week, did you get stable signal and have you tried airplane mode, to find out how much battery drain in this mode?
Also, did you disable LG MLT? This is a massive app from LG, can consumed about 150 MB RAM.
This might sound boneheaded, but what about just resetting the phone. Maybe some system app is causing some type of memory leak and thus draining your battery. Also disable wifi when you're not using it.
I don't think it's signal related. I get an excellent signal at work and the idle drain still occurs. Also, it happens whether wifi is on or not. I have not disabled MLT, as I'm not concerned about RAM, just running processes. Rebooting the phone eliminates the issue, so something is obviously getting hung. The really odd thing is I was draining 6%/hr overnight, all while the phone was in deep sleep, yet my top battery consuming category was the screen at 35%, with just 1 hour of screen on time of 10 hours off the charger. If something was cranking in Android System that caused 40% drain overnight I would have expected Android System to be higher. It doesn't make any sense.
I may just have to factory reset.
My battery's been great until couple of days ago when I turned on GPS and Voice Notification (for speaking out names when phone call/message comes in). After I noticed the abnormal battery drain, I turned off those two options, because that's the only thing I did differently before noticing the drain. However, that didn't help... yet. I needed to do a reboot and battery's been fine again. Not sure if those two were the actual culprit, or just coincidence.
Have you changed any settings right before you noticed the drain? Just a thought.
had the same issue., wakelock detector, BBS, GSAM nothing could show what was eating the battery. i use mobile browsing a lot and almost 8/10 times this battery drain was happening with chrome , chrome beta and firefox browsers.
Only thing thats helping me is the Greenify app . Greenified the chrome and firefox and almost all the cloud apps and the battery is now much much better.
still ...IT IS AN PROBLEM to be found..
To provide a bit more info on this, attached is a pic of my reboot a couple hours ago (marked by the thin white vertical line). The change in the slope of the drainage line is drastic. Also, notice the small hump after the reboot? The line actually increased a bit, fell, then flat lined. More and more I'm beginning to suspect the battery gauge, but I just don't know.
Sent from my LG-D800 using Tapatalk
I have the same situation after charging. Even in"deep sleep" it would chew through the battery. Now I just reboot the phone after charging and it plays nice. The gerbil on the wheel seems to take a break and rest.
To all who have excessive battery drain, did you charge your phone while it is on or off?
Some where in this forum (if not mistaken), I read that there is a bug while charging G2 when it is on. You should reboot your phone after it is fully charged otherwise you will experience excessive battery drain.
Mine always charged it while it is off and never had problem with battery life.
i got the same issue which is very annoying, have over 85% deep sleep, no wake lock, battery draining like crazy, and it happens randomly. I wonder if factory rest fixes the problem, or hardware issue
i have done a bit testing for this random drain,
with mobile signal on ==> huge drain
without mobile signal on and only phone signal ==> huge drain
airplane mode ==> no drain
so i believe it is a bug within the phone software, actually sometimes the random drain started after a phone call
I've been getting the drain too in the past few days. Last time i could fix it by factory resetting, but obviously I don't feel like doing that once per month. What I do know is that flashing another stock ROM (kdz) without factory resetting doesn't fix it. However last night I figured i'd try disabling WiFi (kept it on during the night until now) and I only drained 1% in 5 hours, down from 3% per hour. Perhaps this bug is related to WiFi.
Have you disabled LG MLT? It acts like CIQ for internal LG purposes. I have personally seen it cause mass wakelock in unexplained situations. If I leave everything on overnight under 95% battery, I will get around a 3% drain in about 7 hours. Pretty normal. The first 5% on these batteries seem magical. At 100%, with everything on, I wake to 100%.
Yup, frozen in TiBu. Will be factory resetting however when I get home as GSAM grabbed my attention. Never were system things so high up the list when i had no drain.
https://db.tt/Pw8bJ3CM
Sent from my LG-D802 using xda app-developers app
htcm7 said:
To all who have excessive battery drain, did you charge your phone while it is on or off?
Some where in this forum (if not mistaken), I read that there is a bug while charging G2 when it is on. You should reboot your phone after it is fully charged otherwise you will experience excessive battery drain.
Mine always charged it while it is off and never had problem with battery life.
Click to expand...
Click to collapse
I been struggling with this since I got the phone (almost a month now). I've done all the usual:
Removing bloat
Disabled CIQ
Disabled Google Now, Location, GPS
and I have the same apps as my Nexus 5
Just last night I realized that this battery drain only happens after taking it off the charger. This got me to add the word "charging" in my search and I found this thread.
Is this hardware related, or would a custom ROM resolve this? I have the AT&T version.
Ok and which stock rom does not do that?
shilent said:
I been struggling with this since I got the phone (almost a month now). I've done all the usual:
Removing bloat
Disabled CIQ
Disabled Google Now, Location, GPS
and I have the same apps as my Nexus 5
Just last night I realized that this battery drain only happens after taking it off the charger. This got me to add the word "charging" in my search and I found this thread.
Is this hardware related, or would a custom ROM resolve this? I have the AT&T version.
Click to expand...
Click to collapse
Probably this is a software issue. Never heard this problem on latest firmware or custom ROM.
htcm7 said:
Probably this is a software issue. Never heard this problem on latest firmware or custom ROM.
Click to expand...
Click to collapse
Guys could you write which stock rom does this wakelocks for you so we could eliminate corrupt firmwares?
For example I experience these wakelocks on latest F international version.

Lg G2 battery drain in Deep Sleep - No Wakelocks

This has been happening for a week now. My phone drains battery like 8-10% per hour. I have Wakelock detector and Better Battery Stats. They show almost no wakelocks. wakelocks are at 5%, the rest of the time it is sleeping. I'm on Cloudy G3 last version.
When using it non stop from 100% to like 5%, my phone lasts the same as before (3h - 3h30m, brightness at 80%), the problem is sleeping.
I tried Shutting Down, new kernel, unninstalling the apps I downloaded last 2 weeks, and now I flashed CyanogenMod 11 M12. This happens on CM too.
Any solutions? Is there something wrong with the battery, my phone?
Screenshots attached.
Thank you.
dj_monkeyyy said:
This has been happening for a week now. My phone drains battery like 8-10% per hour. I have Wakelock detector and Better Battery Stats. They show almost no wakelocks. wakelocks are at 5%, the rest of the time it is sleeping. I'm on Cloudy G3 last version.
When using it non stop from 100% to like 5%, my phone lasts the same as before (3h - 3h30m, brightness at 80%), the problem is sleeping.
I tried Shutting Down, new kernel, unninstalling the apps I downloaded last 2 weeks, and now I flashed CyanogenMod 11 M12. This happens on CM too.
Any solutions? Is there something wrong with the battery, my phone?
Screenshots attached.
Thank you.
Click to expand...
Click to collapse
I am having the exact same problem for the past few months. I tried countless factory resets. Nothing helped. I'm suspecting either some sensors went bad and kept the phone awake or the internal memory went bad, because as soon as I started filling up my storage(after factory reset) my battery would go to hell. I don't think it's the battery capacity because, as you said, if I used my phone non-stop I could still get around 4h screen on time. It's something else that's misbehaving and preventing deep sleep but not on software side, since there are no wake locks.
I've now given up and yesterday took my phone to the service shop. Will see how it goes.
My thread is here.
http://forum.xda-developers.com/lg-g2/help/battery-drain-deep-sleep-t2932840
revan17 said:
I am having the exact same problem for the past few months. I tried countless factory resets. Nothing helped. I'm suspecting either some sensors went bad and kept the phone awake or the internal memory went bad, because as soon as I started filling up my storage(after factory reset) my battery would go to hell. I don't think it's the battery capacity because, as you said, if I used my phone non-stop I could still get around 4h screen on time. It's something else that's misbehaving and preventing deep sleep but not on software side, since there are no wake locks.
I've now given up and yesterday took my phone to the service shop. Will see how it goes.
My thread is here.
http://forum.xda-developers.com/lg-g2/help/battery-drain-deep-sleep-t2932840
Click to expand...
Click to collapse
Please keep me up to date. Tell me what they changed (battery, motherboard etc.) and if it worked. thanks

Unexplainable battery drain

For a month or more I'm facing totally unexplainable battery drain.
As seen on the screens below, the phone is awake, but it is not detected anywhere - not by android nor by GSam. In any case the battery draws faster.
I have one observation tho - this happens after I make phone calls. Not every time, but once per 2,3 days.
Any ideas?
Spo0f said:
For a month or more I'm facing totally unexplainable battery drain.
As seen on the screens below, the phone is awake, but it is not detected anywhere - not by android nor by GSam. In any case the battery draws faster.
I have one observation tho - this happens after I make phone calls. Not every time, but once per 2,3 days.
Any ideas?
Click to expand...
Click to collapse
You have this problem
http://forum.xda-developers.com/note-4/general/explanation-horrible-note-4-battery-t3004274
I'm pretty sure that I don't have this issue. Yes, the percentage in GSam maybe high, but I don't believe this reflects what is happening.
First of all - I don't have bad battery life. Usually my over night drain is less than 1%/1h.
Second - the issue appears sporadically.
Third - in the provided thread I don't see the issue appearing in stock battery monitor, while mine appear.
At last - my battery drains faster only while the issue is present and before I restart. After that it is back to normal ...
@Spo0f
Just some suggestions maybe you're using 3g I always have that turned off and switch it on when I use it my guess is that some apps are causing your drain after a call maybe like you said if you're not fimiliar with greenify I suggest you use it to stop all those apps and system apps also uninstall all those bloatware you don't need or at least freeze them if you don't mind lower the resolution to 1080p with nomone app use power save or disable dvfs and use an app to lower and raise the CPU to save juice when not needed....
Thanks for the suggestions, but as I said - this problem appear sporadically - home when using WiFi as well as outside when using 3G.
All of the rest is done - I'm no newby
Spo0f said:
Thanks for the suggestions, but as I said - this problem appear sporadically - home when using WiFi as well as outside when using 3G.
All of the rest is done - I'm no newby
Click to expand...
Click to collapse
Oh sorry mate well I don't use much 3g so I can't help you there but if you're having drainage when you're using WiFi in general then maybe you should reconsider investigating the post above with the link I don't have so much drainage on connectivity with 3g or WiFi....viewing the pics you uploaded it seems suspicious.... Maybe an app? I don't know...
Use wakelock detector
Spo0f said:
I'm pretty sure that I don't have this issue. Yes, the percentage in GSam maybe high, but I don't believe this reflects what is happening.
First of all - I don't have bad battery life. Usually my over night drain is less than 1%/1h.
Second - the issue appears sporadically.
Third - in the provided thread I don't see the issue appearing in stock battery monitor, while mine appear.
At last - my battery drains faster only while the issue is present and before I restart. After that it is back to normal ...
Click to expand...
Click to collapse
My overnight drain was also very low, but that was because the faulty device on the network was asleep at night too (my desktop).
If you're not rooted, use the PC version of Wakelock Detector at the end of your day and post screenshots of your highest drainers for the various categories. In my case, the device was being woken up by something on the network and it showed.
Bear in mind that actively downloading something in the time period will also raise wifi power used but more stats will help.
The fact that you're still experiencing a lot of drain even when outside suggests it might be a rogue app
One phone call today and after it the phone stayed awake.
Because I had issue with the PC WLD the screen shots are from 11 minutes after one of the disconnects. The device was awake all of them.
Spo0f said:
One phone call today and after it the phone stayed awake.
Because I had issue with the PC WLD the screen shots are from 11 minutes after one of the disconnects. The device was awake all of them.
Click to expand...
Click to collapse
I also checked out my battery behaviour this night and was very disappointed. Although my phone was in flight mode and every peripherals and services shut down, today morning my phone was crying for energy. So I made a quick investigation in my power diagram and found out, that "Android OS" requested a wakelock during the whole power-on time. So I installed "CPU Spy" to check in which states the phone was really over the whole charging period. I couldn't believe my eyes. Although the kernel should do it's job good, cause most of the CPU times are in lower freqeuncy states, the deep sleep mode was never activated.
Therefore I installed an app called "Wakelock Detector" to check out which apps could cause that. I found out, that S Health had a big amount of wakelocks and also active-time, so the first thing was to disable S Health. After some minutes I checked back, but nevertheless still no deep sleep time in "CPU Spy".
So I searched around and found another one arguing about the wakelocks and that they could be the products of some programming issues concerning WiFi. The should be gone, after turning off WiFi and rebooting yout phone. And it seems that he was right. I waited some time and hooray, "CPU Spy" listed the phone state "Deep Sleep" the first time as an active state and also with the major active-time. So at least that was some step ahead. (I have to remark, that S Health was already unfrozen at this time, so S Health should not be responsible in any way.)
The next step was to reactivate WiFi, leave it on and set the phone on standby. After some time I checked back again the phone showed even more deep sleep time. So that was an improvement. I reactivated everything and waited some time... Deep Sleep all over the time. Can't figure out for now, if it was S Health, WiFi, or anything else that caused the wakelock for sure. At least the reboot helped. I'll check that out on a long-term test, maybe I get some further conclusions.

Phone won't enter deep sleep....

Setup: running latest stock image (mhc19i). Rooted, xposed, ElementalX kernel with ghost pepper script, and I run naptime with aggressive Doze.
Issue: fell asleep with my phone around 50% battery remaining. Woke up seven hours later and it had 30 something. I typically don't see more than 1-2% idle drain over night so this got my attention. I checked better battery stats and I obviously have a wakelock issue. Not sure what it could be. Powermanagerservice was running at something ridiculously high, like 96%. Audiomix is the other wakelock running rampid. See screenshots below. Any input appreciated!
Pain-N-Panic said:
Setup: running latest stock image (mhc19i). Rooted, xposed, ElementalX kernel with ghost pepper script, and I run naptime with aggressive Doze.
Issue: fell asleep with my phone around 50% battery remaining. Woke up seven hours later and it had 30 something. I typically don't see more than 1-2% idle drain over night so this got my attention. I checked better battery stats and I obviously have a wakelock issue. Not sure what it could be. Powermanagerservice was running at something ridiculously high, like 96%. Audiomix is the other wakelock running rampid. See screenshots below. Any input appreciated!
Click to expand...
Click to collapse
Have you tried rebooting and then monitoring it to see if it happens again? It could just be a one-time bug, you'd need to reboot to confirm that though.
I was thinking that as well. I did recently reboot. I'm going to accumulate a good amount of up time and then check the stats again. As of now, battery drain seems to be normal.
Something is still keeping my phone awake while the screen is off...
Pain-N-Panic said:
Something is still keeping my phone awake while the screen is off...
Click to expand...
Click to collapse
I've seen this Audio Mix wakelock happen before on the OnePlus One, from memory I think it was kernel related, so switching kernels might be worth a try. You could also try using Wakelock Detector to see if it'll shed any more light on it, maybe it's an app rather than the kernel.
Hmm....think I solved my issue. I got audiomix wakelock to completely disappear. Simply going into settings and turning off all notification sounds did the trick. For me it's not an issue, however, for others who don't constantly keep their device on vibrate I could see this being a massive dilemma. I'm assuming "powermanagerservice" is a normal wakelock to observe?
Pain-N-Panic said:
Hmm....think I solved my issue. I got audiomix wakelock to completely disappear. Simply going into settings and turning off all notification sounds did the trick. For me it's not an issue, however, for others who don't constantly keep their device on vibrate I could see this being a massive dilemma. I'm assuming "powermanagerservice" is a normal wakelock to observe?
Click to expand...
Click to collapse
Yes, powermanagerservice is perfectly normal for when the phone is in use (or some background operation is running). You'll see it roughly correlates with your screen-on time.
I recently decided to check the huge battery drain during night and I found out that my phone would not go in deep sleep. Can anyone please help with that? Also, the 'jio' app I have been using was installed 50 days back and the battery drain similar before that too. Would be really great if I could find a solution for the deep sleep issue. I am trying to load the screenshots of betterbatterystats but not able to.
vikalp4jain said:
I recently decided to check the huge battery drain during night and I found out that my phone would not go in deep sleep. Can anyone please help with that? Also, the 'jio' app I have been using was installed 50 days back and the battery drain similar before that too. Would be really great if I could find a solution for the deep sleep issue. I am trying to load the screenshots of betterbatterystats but not able to.
Click to expand...
Click to collapse
Use gsam form the play store to find out what app is keeping your phone awake.
Uninstall said app.

Almost 100% Awake time draining my battery

My battery life had previously been fine. We had that last security update from AT&T and suddenly, my device is awake almost 100% of the time. Android OS is always at the top of my stats and awake time shows at 99%. I used the light version of Wakelock Detector (which doesn't require root) and it's not really showing anything, but I deleted all apps showing the most wakelocks anyway and I'm still at 99% wake time. I even took out my SD card to test that and it hasn't changed anything. I also disabled GPS to test and "awake time" still stayed at max.
I'm on the verge of wiping it, but I have already done that once to resolve other issues and I know there has to be a cause to all of this. Is anyone else experiencing this since the last update? Anything I haven't tried that someone recommends? I have not installed any new apps or anything.
One thing to note is that my drain is only around 1%/hr at idle, but I'm pretty sure the phone still shouldn't be awake almost 100% of the time.
1%/hr drain while idle means 4 days of standby i think you're fine
greyhulk said:
One thing to note is that my drain is only around 1%/hr at idle, but I'm pretty sure the phone still shouldn't be awake almost 100% of the time.
Click to expand...
Click to collapse
percussionking said:
1%/hr drain while idle means 4 days of standby i think you're fine
Click to expand...
Click to collapse
That doesn't change the fact that the phone is awake over 99% of the time. After a wipe, it's no longer going that and my idle drain is less. So, something was clearly wrong.
Sent from my SAMSUNG-SM-G935A using Tapatalk
Yeah, you're right if the behavior is different after resetting the phone. I was wondering if maybe Wakelock Detector might see certain features of the QC820 like AOD as applying a wakelock.

Categories

Resources