[Q] Battery drain, wakelocks and modem/wlan - Samsung Galaxy Nexus

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.

Related

Android OS killing battery

Hey everyone
Got a Nexus a couple weeks ago after having iphones for a couple years. Loving it so far.....ICS is very polished.
Initially, my battery life was adequate. However, recently the OS is using 45% battery and the phone gets a very hot when idle (I can feel the heat in my pocket)
I did a factory reset and still the same problems.
Is anyone else coming across these issues?
An old bug cropping up again?
http://forum.xda-developers.com/showpost.php?p=13247149&postcount=57
Can you please install Watchdog (https://market.android.com/details?id=com.zomut.watchdoglite) and let us know if it's the suspend process (which shows up in the battery meter as part of "Android OS") burning through the battery?
My phone has been on standby for about a day and has 80% battery left. However the battery consumption shows:
42% Android OS
37% Phone Idle
16% Cell Standby
- Also what is the difference between phone idle and cell standby
MY BACKGROUND APPS RUNNING ARE:
- Battery Monitor Widget (I need this on so I can tell what my battery life is easily)
- Google Services (What is this, can I kill it?)
Media (What is this app, can I kill it?)
Music (Again what is this, what happens if I kill it/should I? I never used it.)
I have the same problem. My SGN died after 7 hours without any usage.
Sent from my Optimus 2X using XDA App
Yup, me too. This morning, I took my phone off the charger at 98% for an hour and 15 minutes and didn't touch it. The battery had gone down to 88%, with Android OS using 64% and Android System using 14%. The phone was 'awake' for the entire period. I've had my Nexus since Wednesday and I haven't been getting great battery life. I'm hoping there's a fix for this.
Same problem here... (I testing radio UGKK7, XXKK7 and XXKK1... all with the same problem).
- Lightflow increment "Android OS" battery use.
- By using, Wi-Fi "Android OS" uses less battery.
try disable wifi when not on and unchecked "use wifi network" for location.
another thing could be some active widgets, i remember this was a problem a while back.
Note sure that this has got to do with wifi at all as I reset my phone to factory and I still have the 'Android OS' usage taking 23% of battery. I have no apps nor have I yet linked phone to my Google account.
I have read some comments to do with the Galaxy S2 which too suffered from the same problem. I remember reading something about Samsung driver implementation causing this with the S2. I will update the links when I find something conclusive. Also I have another HTC desire that has the AOSP code compiled rom and that does not suffer from this at all and it is happily sitting idle at almost 2 days with nearly 70% battery still left.
s1977 said:
Note sure that this has got to do with wifi at all as I reset my phone to factory and I still have the 'Android OS' usage taking 23% of battery. I have no apps nor have I yet linked phone to my Google account.
I have read some comments to do with the Galaxy S2 which too suffered from the same problem. I remember reading something about Samsung driver implementation causing this with the S2. I will update the links when I find something conclusive. Also I have another HTC desire that has the AOSP code compiled rom and that does not suffer from this at all and it is happily sitting idle at almost 2 days with nearly 70% battery still left.
Click to expand...
Click to collapse
Yes, the problem was with the suspend process eating up CPU. You can install Watchdog and set it to watch non-Android processes, and that will be able to tell you which "Android OS" process is actually the one eating up battery.
Chirality said:
Yes, the problem was with the suspend process eating up CPU. You can install Watchdog and set it to watch non-Android processes, and that will be able to tell you which "Android OS" process is actually the one eating up battery.
Click to expand...
Click to collapse
Is samsung aware of this problem? We need to file complaints.
Sent from my Galaxy Nexus using xda premium
Do you have your email or anything set up to receive things instantly? That can have a noticeable impact on your battery if so
Thanks Chirality, but I assume that this is happening to all users? Samsung have seen this before so shouldn't this be fixed from the very start? Wrong person to ask this question to, but it is annoying..
Anyways I will install Watchdog like you say, but unless I can kill the 'suspend' process, I am helpless.
---------- Post added at 10:00 AM ---------- Previous post was at 09:58 AM ----------
xHausx said:
Do you have your email or anything set up to receive things instantly? That can have a noticeable impact on your battery if so
Click to expand...
Click to collapse
No, that's why I reset the phone to factory settings and the current behaviour is without any apps, or registration with google, no emails, nothing installed.
---------- Post added at 10:03 AM ---------- Previous post was at 10:00 AM ----------
Additional links indicating the problem and response:
http://androidforums.com/samsung-galaxy-s2-international/337492-s2-battery-drain-problem-solved-now.html
http://code.google.com/p/android/issues/detail?id=16721
Is there anything in the logcats that could hint to a problem? Like errors or something unusual that it keeps repeating
I have the same problem with high system CPU usage. I used SystemPanel to monitor the phone (unplugged, standby mode) during my 8-hour sleep and here's the results.
The System Processes were using 49min of CPU time while the phone was idle
When I clicked on the system processes I got a list of individual processes. Anyone knows what are there kworker processes for?
When I clicked on one of the System Processes (kworker/u:1), I got its CPU usage. It was doing something almost the whole time
Finally, I should also mention that the phone lost about 7% in these 8-hour test. Seems ok but I think it would be even better when this high system CPU usage is fixed.
xHausx said:
Is there anything in the logcats that could hint to a problem? Like errors or something unusual that it keeps repeating
Click to expand...
Click to collapse
Hmm...Now that you asked this, I remember watching logcat output and was getting a null Notification event almost one every minute a couple of days back. I therefore proceeded to uninstall all my widgets/apps but I could not reach to a conclusive outcome.
Anyways as Chirality pointed out this post (Link) indicates a 'suspend' process issue. And this guy identified the process causing it (Link), I think!
s1977 said:
Hmm...Now that you asked this, I remember watching logcat output and was getting a null Notification event almost one every minute a couple of days back. I therefore proceeded to uninstall all my widgets/apps but I could not reach to a conclusive outcome.
Anyways as Chirality pointed out this post (Link) indicates a 'suspend' process issue. And this guy identified the process causing it (Link), I think!
Click to expand...
Click to collapse
A driver issue definitely sounds plausible but there are also a lot of things different between these two phones, especially between GB and ICS.
Watching /proc/kmsg should show something if it is an issue with the kernel
xHausx said:
A driver issue definitely sounds plausible but there are also a lot of things different between these two phones, especially between GB and ICS.
Watching /proc/kmsg should show something if it is an issue with the kernel
Click to expand...
Click to collapse
Do i need to be rooted to be able to read this?
Chirality said:
Yes, the problem was with the suspend process eating up CPU. You can install Watchdog and set it to watch non-Android processes, and that will be able to tell you which "Android OS" process is actually the one eating up battery.
Click to expand...
Click to collapse
Chrality, xHausx
I have installed Watchdog and set the settings to what you indicated. I am a bit confused around the app, so I have added screenshots to update you of the data at my end.
Do let me whether you see the issue immediately or need any further information.
My experience is somewhat the same.
Out of the box battery life seemed pretty good. After the update to fix the volume issue I started to notice that the battery would fall even when the phone was idle. Android OS was the culprit. I am now running MCR and I have the same issue.
It's not terrible battery life, but it's substantially worse than it was out of the box.
I did wonder if the problem was related to how they fixed the volume bug. Is something always running to pick up the volume bug problem and deal with it when it happens?
Just a thought.
paulpenny said:
My experience is somewhat the same.
I did wonder if the problem was related to how they fixed the volume bug. Is something always running to pick up the volume bug problem and deal with it when it happens?
Just a thought.
Click to expand...
Click to collapse
Interesting. I've been thinking the same thing, and the annoying thing about that is the problem doesn't affect my network (T-Mobile), so I could be getting reduced battery performance for no reason! Ah well.

[Q] Sleep Battery Life

Hey everybody,
Just made the jump from the iPhone 4S and have done the custom ROM/kernel thing the past week. Things were good at the start but I feel them slowly deteriorating.
I find my battery life during sleep has become much worse than before. I mean, it still kills the 4S which would see ~25% overnight. But I'm seeing 10% overnight right now, and was ~2% earlier in the week. I normally have my phone on the charger at night, but didn't last night and I'm kinda glad I got to see this. Makes me realize why I was likely chewing through more in the day too.
You can see what I'm running below in my signature. Last night I had 5 instances where the phone woke on its own. Likely due to emails coming in.
Am I expecting too much from my modifications? Am I doing something wrong? I'm ready to toss AOKP aside because of other issues anyway, but yesterday I also read it was known to have some excessive battery drain as well. Without turning this into a battle to defend the ROM you use (like half the threads in here), if you have other suggestions, feel free to throw in a ROM suggestion. I'll attach some pictures of my battery screen so anyone willing to give me a hand can help.
Thanks in advance.
I had this problem when I was running franco too. Switched to leankernel and never looked back. I get about 4-6% drain overnight as long as I dont do something stupid like leave something running by exiting with home instead of the back button. I also have wifi on 24/7 and gps off unless im nav'in. No BT
Screwedupsmitty said:
I had this problem when I was running franco too. Switched to leankernel and never looked back. I get about 4-6% drain overnight as long as I dont do something stupid like leave something running by exiting with home instead of the back button. I also have wifi on 24/7 and gps off unless im nav'in. No BT
Click to expand...
Click to collapse
I'm hesistant to blame the kernel. I was using franco prior to AOKP without issue. I didn't make that clear in the OP. I went 4.0.4 Stock -> Stock + franco -> AOKP b31 + franco. Things were good the first two steps and I'd like to think the first few days on AOKP.
Perhaps I have some background processes chewing battery - but there's nothing with a higher battery drain than Chrome beta with 2%. My phone idle and Cell standby had huge drain though. Could a weaker than normal signal cause this? Could my radio be the culprit?
Steps to best diagnose idle battery drain.
-Install CPU Spy and Better Battery Stats.
-Charge phone to full and let it run for several hours undisturbed (easiest to charge before bed, then unplug it when you know it won't be used till morning).
-Take quick note of your % loss per hour. Around 1%, you're golden. 1-2 is pretty normal. >3 and you've got issues.
-Launch CPU Spy. Most of the time should be deep sleep (we're talking about 95%). If your phone has been awake a lot, there's either an app that refuses to let your phone rest, or an OS/Kernel issue. If it's not extreme but noticeable, you likely just need to reign in settings on some apps to keep them from syncing so often or working in the background.
-Launch Better Battery Stats. Select Partial Wakelocks from the menu. These are all cases of apps waking the phone up, sorted by length. Go look at problem apps' settings/consider uninstalling if you don't need them. Kernel wakelocks should be low too.
Keep in mind that the goal here isn't really to get all these things to zero so do not obsess over small showings. Facebook with push notifications but updates set to never keeps my phone awake for about a minute or two every night, for instance. So does Handcent SMS. If you flash a rom and your phone needs to do a lot of syncing it's likely to show up in this kind of test as well. But for a night with nothing going on, nothing should be keeping your phone up for more than a few minutes total.
myrdog said:
I'm hesistant to blame the kernel. I was using franco prior to AOKP without issue. I didn't make that clear in the OP. I went 4.0.4 Stock -> Stock + franco -> AOKP b31 + franco. Things were good the first two steps and I'd like to think the first few days on AOKP.
Perhaps I have some background processes chewing battery - but there's nothing with a higher battery drain than Chrome beta with 2%. My phone idle and Cell standby had huge drain though. Could a weaker than normal signal cause this? Could my radio be the culprit?
Click to expand...
Click to collapse
Weaker than normal signal can kill a phone battery, when I'm in lecture out in the bumfuck nowhere school I go to, I get -100 to -120dbm, which kills my battery while i'm at school. If thats your situation not much to do besides hope radios may increase your signal, but if not then your basicly as SOL as i am and may have to just charge it
JoeSyr said:
Steps to best diagnose idle battery drain.
-Install CPU Spy and Better Battery Stats.
-Charge phone to full and let it run for several hours undisturbed (easiest to charge before bed, then unplug it when you know it won't be used till morning).
-Take quick note of your % loss per hour. Around 1%, you're golden. 1-2 is pretty normal. >3 and you've got issues.
-Launch CPU Spy. Most of the time should be deep sleep (we're talking about 95%). If your phone has been awake a lot, there's either an app that refuses to let your phone rest, or an OS/Kernel issue. If it's not extreme but noticeable, you likely just need to reign in settings on some apps to keep them from syncing so often or working in the background.
-Launch Better Battery Stats. Select Partial Wakelocks from the menu. These are all cases of apps waking the phone up, sorted by length. Go look at problem apps' settings/consider uninstalling if you don't need them. Kernel wakelocks should be low too.
Keep in mind that the goal here isn't really to get all these things to zero so do not obsess over small showings. Facebook with push notifications but updates set to never keeps my phone awake for about a minute or two every night, for instance. So does Handcent SMS. If you flash a rom and your phone needs to do a lot of syncing it's likely to show up in this kind of test as well. But for a night with nothing going on, nothing should be keeping your phone up for more than a few minutes total.
Click to expand...
Click to collapse
This is what every user should use to diagnose battery problems at first.

[Q] Short battery life but nothing specific seems to be a big drainer

Hi guys,
Though I have been reading these threads for quite some time now, I just joined so that I can post the issue that I am facing.
I am rooted and using Liquidsmooth v2.4
I am facing a battery issue. Battery life is short. I never survived more than 2 hours of screen time on my device which I know from these forums that is not normal.
The stuff I have tried but didn't help:
Wiped and factory reset on several occasions, both using the settings function and CWM
Flashed various roms (Cyanogen Mod, Carbon, Liquidsmooth, Stock rom)
Unroot to stock and root again
Changed to various more battery friendly CPU governors
Changed battery with a friend who is using the international version (which is using the same battery according to the Samsung website)
I am not in the states now and the local Samsung service centre refused to service it because they don't have the appropriate parts and also due to the difference in software. (I unrooted it and restored to stock before sending in.) They just looked at the model number and refused service; didn't do anything more.
I have attached some screenshots. There are no obvious wakelock issues and no app in particular is draining the battery. 50% power used on screen appears to be normal. The rest of the apps also look like they are behaving themselves, at least power consumption wise. I am not a very heavy user and don't run any games/apps that are huge in resource requirements. Email/facebook/browsing are my main activities.
The current settings on my phone:
Auto brightness
Wifi/bluetooth/GPS all off
Autosync is off by default but will use it sparingly if I need to.
Almost all of my apps have their notifications off and all apps are set to sync manually.
I only have one calender widget on my home screen, no others elsewhere.
CPU Governor is "ondemand", iO scheduler is "row". Min/max freqency: 384/1512 MHz
Juicedefender is enabled with "aggressive" (I know its effectiveness is controversial but on my device, disabling it eats more battery)
Any help is appreciated. "Thanks" will be awarded to all who post!
Thank you!
Hairy07 said:
Hi guys,
Though I have been reading these threads for quite some time now, I just joined so that I can post the issue that I am facing.
I am rooted and using Liquidsmooth v2.4
I am facing a battery issue. Battery life is short. I never survived more than 2 hours of screen time on my device which I know from these forums that is not normal.
The stuff I have tried but didn't help:
Wiped and factory reset on several occasions, both using the settings function and CWM
Flashed various roms (Cyanogen Mod, Carbon, Liquidsmooth, Stock rom)
Unroot to stock and root again
Changed to various more battery friendly CPU governors
Changed battery with a friend who is using the international version (which is using the same battery according to the Samsung website)
I am not in the states now and the local Samsung service centre refused to service it because they don't have the appropriate parts and also due to the difference in software. (I unrooted it and restored to stock before sending in.) They just looked at the model number and refused service; didn't do anything more.
I have attached some screenshots. There are no obvious wakelock issues and no app in particular is draining the battery. 50% power used on screen appears to be normal. The rest of the apps also look like they are behaving themselves, at least power consumption wise. I am not a very heavy user and don't run any games/apps that are huge in resource requirements. Email/facebook/browsing are my main activities.
The current settings on my phone:
Auto brightness
Wifi/bluetooth/GPS all off
Autosync is off by default but will use it sparingly if I need to.
Almost all of my apps have their notifications off and all apps are set to sync manually.
I only have one calender widget on my home screen, no others elsewhere.
CPU Governor is "ondemand", iO scheduler is "row". Min/max freqency: 384/1512 MHz
Juicedefender is enabled with "aggressive" (I know its effectiveness is controversial but on my device, disabling it eats more battery)
Any help is appreciated. "Thanks" will be awarded to all who post!
Thank you!
Click to expand...
Click to collapse
I see horrendous wakelocking. Install BetterBatteryStats. Charge it up for a bit, reboot the phone, then let it idle for a couple hours. Then post screenshots of everything.
It might be the worst I've ever seen. Good news is it's probably not a hardware issue.
It also looks like half the time you had a poor signal. Data transfer on a poor signal can wat at your battery too.
Always use wifi when available.
Sent from my SGH-T999 using xda premium
thanks folks. I've installed better battery stats and will update shots accordingly at the end of the day or end of the battery cycle(probably won't last a day)
Really appreciate the help.
Here are the shots for today.
I rethinked about the poor reception comment and wondered if any of my radios are malfunctioning or if my radios can work in the frequency bands here in Singapore. I called my local service provider to ask about the frequency bands and.it appears that my device's radios can recieve the GSM bands here although they suspect 3G may be an issue. Nothing concrete but I do hope to find out if that could be a possible reason for my battery drain.
I managed to squeeze past 2 hrs of screen time today by using as much wifi as I possibly can. This improvement in battery life probably means that data reception can really be an issue. It's not unlikely that both my home and workplace suffers from.bad reception but i do have a Q. If poor reception is an.issue, will the battery consumption by cell radio sky rocket?
For some reason the previous battery stats screenshots was only for about 5 hrs. i have refreshed and have uploaded the refreshed screenshots
Hairy07 said:
Here are the shots for today.
I rethinked about the poor reception comment and wondered if any of my radios are malfunctioning or if my radios can work in the frequency bands here in Singapore. I called my local service provider to ask about the frequency bands and.it appears that my device's radios can recieve the GSM bands here although they suspect 3G may be an issue. Nothing concrete but I do hope to find out if that could be a possible reason for my battery drain.
I managed to squeeze past 2 hrs of screen time today by using as much wifi as I possibly can. This improvement in battery life probably means that data reception can really be an issue. It's not unlikely that both my home and workplace suffers from.bad reception but i do have a Q. If poor reception is an.issue, will the battery consumption by cell radio sky rocket?
Click to expand...
Click to collapse
This is not BetterBatteryStats. We already know your battery life blows. I want to know why, and BBS will tell me. I can't do a thing for you until you show me that. I think there is a free version on the forums, but it's cheap in the Play Store, and worth it. Get Greenify, too. You're going to need it. Greenify will prevent notifications from showing up for greenified apps. If you don't need notifications from Facebook (honestly, who does?), Greenify it. Maps, too. And disable Juice Defender for now, so I can see what is really happening.
Poor cell reception, if not on wifi, causes drain, yes. It seems to only get really bad when the phone can't hold a data connection.
Try turning off GPS. Also under Settings > Backup and Reset, turn off the Back Up My Data option.
Additionally, check the stickies in this forum. Woody has a fantastic Battery Thread that you should read if you haven't already.
Sent from my SGH-T999 using xda premium
Type betterbatterystats xda on Google. It'll link you to the official thread where you can install the free apk file.
Sent from my SGH-T999 using xda app-developers app
Thanks everyone! I sheepishly searched better battery stats on Google play and.simply installed the first that popped up without looking closely. My bad. I've purchased the app and will post up screenshots soon. I didn't manage to grab the shots today as my batt went flat before I could. Should have kept a better eye.
Will certainly post up screen shots tomorrow.
PS: My GPS has been offed by default. Will disabling Google backup services help?
Hairy07 said:
Thanks everyone! I sheepishly searched better battery stats on Google play and.simply installed the first that popped up without looking closely. My bad. I've purchased the app and will post up screenshots soon. I didn't manage to grab the shots today as my batt went flat before I could. Should have kept a better eye.
Will certainly post up screen shots tomorrow.
PS: My GPS has been offed by default. Will disabling Google backup services help?
Click to expand...
Click to collapse
It cant hurt your battery life! Theres a number of things you can do for settings. Read woodys thread stickied here as its pretty much all there. One of the big batt drainers can be auto brightness btw.
Sent from my SGH-T999 using xda premium
Once you get a good cycle run with BBS, the screen shots we want to see are Since Unplugged/Process and Since Unplugged/Partial Wakelocks. Those two will help tell what is eating your battery and also what is causing all those wakelocks in your original screen shots.
If you are using Juice Defender, that will contribute to the wakelocks (but doesn't keep your device from entering Deep Sleep, so no worries there). I use it, but I have mine set up custom plus have done some basic build.prop edits regarding the RILs and wifi_supplicant_intervals.
My suspicion is that there is a rogue app that is transmitting data somewhere and that is not letting you sleep. If it is transmitting in a poor reception area then that puts ever more strain of things. You are not the first and wont be the last but Doc, Aero and I can help you figure it out.
Images for today. I've included a few more shots for the items that appear lower in the lists.
I've installed greenify but did not add any apps while collecting these data. Juicedefender is also disabled. My screen time was less than 2 hrs.
I did some of the stuff listed in Woody's informative thread. Deleting the tombstone files, lost&found files etc.
Thanks for everyone's help. Hope to solve this issue soon.
Get Greenify from the play store.
Greenify:
Maps
Facebook
Google Now
Take more pictures with BetterBatteryStats tomorrow.
Looks like Maps is misbehaving. Terrible coding is terrible.
Yup. Looks like you are broadcasting your location all over the place. Do you use Maps? If not close it and Greenify it.
Are you getting notifications from Facebook or have a "Check-in" thing going on?
Google Now>Settings> turn off what you don't use.
Settings>Location> Off.
Edit: Tombstones and Lost.dir files are just memory management and have nothing to do with battery.
Shots for today. Things are a little better but looking at my screen usage, maybe there's still a lot of room for improvement.
I've greenified just about all apps that may run in the background. Facebook, Maps, Google+, Gmail, Chrome, Google Search (I converted it into user app), dropbox, etc. Whatsapp, Viber and Wechat are spared as I needed them to be able to notify incoming messages. Juicedefender is on, with advanced settings - set to sync only once an hour. Maps have been set not to update my location although I didn't go to the extent of denying location access ( I use maps fairly often).
All these are rather aggressive steps and I do see improvement. What else can be done? Other than my messengers, all my notifications are essentially off.
Once again, thank you everyone for your time and effort.
Please stop using Juice Defender. I want to see what your battery life looks like without it now. And it's also responsible for the majority of your wakelocks. And if you could get us some ~4 hour idle BBS stats (during sleepy time), that would be fantastic.
Aerowinder said:
Please stop using Juice Defender. I want to see what your battery life looks like without it now. And it's also responsible for the majority of your wakelocks. And if you could get us some ~4 hour idle BBS stats (during sleepy time), that would be fantastic.
Click to expand...
Click to collapse
Noted. I'll charge my phone up and take some shots in the morning. Juicedefender will be disabled and hopefully more information will be revealed. Do today's shots show any improvement?
Hairy07 said:
Noted. I'll charge my phone up and take some shots in the morning. Juicedefender will be disabled and hopefully more information will be revealed. Do today's shots show any improvement?
Click to expand...
Click to collapse
I think you are heading in the right direction (8% deep sleep improvement). For this next test, please disable Juice Defender (don't turn it off through the app, but disable it in the app manager to make sure it can't run). Also, I'm hoping to get a test where the screen isn't on for more than a couple seconds, so I can get an accurate reading on the usage per hour.
I suspect the rest of your issues (bam_dmux_wakelock), are due to a bad cell connection for a good chunk of the time. Connecting to a wifi network will solve that. If you don't have a wifi network, you can turn on airplane mode, or set up some Tasker profiles to help with that.
Out of curiosity, how bright do you have your screen set? Obviously its a big drainer, but it seems like every time your screen is on the batt level plummets.
Sent from my SGH-T999L using xda premium

Help with identifying wakelocks/battery drain

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.

Help understanding battery drain

Hi guys!
I desperately need some help from you experts. I have recently noticed my LG G3 has been draining more battery than it should, especially when idle (or at least, theoretically when idle).
Please take a look at the sequence of screenshots (have in mind the analysis was made overnight, when the phone was sitting idle on my bedside):
Screenshot 1: You can see app usage has been the biggest juice thief, and an abnormal drain (24%) for a (supposedly) idle period of 6 hours.
Screenshot 2: Kernel & Android system are the biggest villains, but only sums up to 45%.
Screenshot 3: Taking a deeper look at Kernel, it shows only 7 minutes of CPU usage.
Screenshot 4: A deeper look at Android system also shows a small usage, only a few seconds shy of 6 minutes.
Screenshot 5: On the chart, we can see there was an absurd drain (around 20%) from 1:30 am to 5 am, and then it got stabilized. Wifi was on the whole time, and you can see it shows the phone was (theoretically) dozed 95% of the time.
Sctreenshot 6: Even though the phone was dozed, we can clearly see it has severe CPU usage throughout the whole night, and no pattern could be distinguished between the hours were the battery got the severe drain and the hours after. Even though the CPU frequency was low between 1:30 and 5 (except for a couple of peaks), the utilization averaged 45%.
This is why I need some expert's help. I cannot understand what is draining my battery, what is keeping my phone's CPU util so high... can someone please shed a light on this for me?
Thanks in advance!!! :fingers-crossed: :good:
Hello there guys. Anyone could please take a look at this and try and help me out?
Thanks!!!
Well, it's hard to answer simply such a complicated problem. There are so many variables to consider, but I would say rule out a few things first.
First, if you have TWRP installed, backup your current ROM and do a complete factory reset. If the problem persists, then you know it's something built into your ROM causing it and I would suggest swapping out that ROM for another. If the problem is gone, you know it's something you installed or modified in the ROM and you can start to narrow that down.
Second, I would try out the app WakeBlock. It's still in development, but it allows you to see active wakelocks (Android programming object used to keep the CPU running even if dozed) and block them if you want to. But the app may be useful for just tracking down battery hogs that are activated at 2am in the morning
Hope that helps! Good luck! :fingers-crossed:
AlwaysLucky said:
Well, it's hard to answer simply such a complicated problem. There are so many variables to consider, but I would say rule out a few things first.
First, if you have TWRP installed, backup your current ROM and do a complete factory reset. If the problem persists, then you know it's something built into your ROM causing it and I would suggest swapping out that ROM for another. If the problem is gone, you know it's something you installed or modified in the ROM and you can start to narrow that down.
Second, I would try out the app WakeBlock. It's still in development, but it allows you to see active wakelocks (Android programming object used to keep the CPU running even if dozed) and block them if you want to. But the app may be useful for just tracking down battery hogs that are activated at 2am in the morning
Hope that helps! Good luck! :fingers-crossed:
Click to expand...
Click to collapse
Hi there. Thanks for trying to help!
I don't have TWRP, as I use stock ROM (phone has MobileIron installed for work use, so I can't have it rooted).
I already have wakelock detector installed on the phone, but I don't how many wakelocks during a night should be considered as OK or not...
ghnogueira said:
I don't have TWRP, as I use stock ROM (phone has MobileIron installed for work use, so I can't have it rooted).
Click to expand...
Click to collapse
True, you would need root to flash TWRP to allow backups/restores. However once TWRP is flashed, you could just install a ROM that does not have root and do not root it. That should pass all of MobileIrons checks which are mostly package name-based. In short, root is not required to keep TWRP installed. Something to consider.
ghnogueira said:
I already have wakelock detector installed on the phone, but I don't how many wakelocks during a night should be considered as OK or not...
Click to expand...
Click to collapse
Well, in reality you don't need any wakelocks active. Especially if you are asleep or not going to use the device for a while. Wakelocks can be doing anything from downloading advertisements for apps, to syncing emails with servers. You could block them all in a certain time frame, but that may be overkill. I suggest just going through the list of wakelock package names before you goto bed or when you know drain is at it's heaviest. The package name may be different from the name of the app, but it should give you something to go on. Just uninstall the heavy drainers or disable them enough so they can not drain you so much.
ghnogueira said:
Hi guys!
I desperately need some help from you experts. I have recently noticed my LG G3 has been draining more battery than it should, especially when idle (or at least, theoretically when idle).
Please take a look at the sequence of screenshots (have in mind the analysis was made overnight, when the phone was sitting idle on my bedside):
Screenshot 1: You can see app usage has been the biggest juice thief, and an abnormal drain (24%) for a (supposedly) idle period of 6 hours.
Screenshot 2: Kernel & Android system are the biggest villains, but only sums up to 45%.
Screenshot 3: Taking a deeper look at Kernel, it shows only 7 minutes of CPU usage.
Screenshot 4: A deeper look at Android system also shows a small usage, only a few seconds shy of 6 minutes.
Screenshot 5: On the chart, we can see there was an absurd drain (around 20%) from 1:30 am to 5 am, and then it got stabilized. Wifi was on the whole time, and you can see it shows the phone was (theoretically) dozed 95% of the time.
Sctreenshot 6: Even though the phone was dozed, we can clearly see it has severe CPU usage throughout the whole night, and no pattern could be distinguished between the hours were the battery got the severe drain and the hours after. Even though the CPU frequency was low between 1:30 and 5 (except for a couple of peaks), the utilization averaged 45%.
This is why I need some expert's help. I cannot understand what is draining my battery, what is keeping my phone's CPU util so high... can someone please shed a light on this for me?
Thanks in advance!!! :fingers-crossed: :good:
Click to expand...
Click to collapse
I'm in pretty much the same boat. I lose like 14-20% overnight and I have no clue why. Factory reset and it still seems to be that bad. I also use GSam and have almost exactly the same stats in terms of Android System and Kernel usage, so that means it shouldn't be an app thing (unless you and I have the same apps installed lol). I'm really at a loss as to why there is so much crazy drain.
AlwaysLucky said:
Well, in reality you don't need any wakelocks active. Especially if you are asleep or not going to use the device for a while. Wakelocks can be doing anything from downloading advertisements for apps, to syncing emails with servers. You could block them all in a certain time frame, but that may be overkill. I suggest just going through the list of wakelock package names before you goto bed or when you know drain is at it's heaviest. The package name may be different from the name of the app, but it should give you something to go on. Just uninstall the heavy drainers or disable them enough so they can not drain you so much.
Click to expand...
Click to collapse
I understand I do not need, but I meant how many wouldn't be "harmful". But I'll keep an eye in a night where this thing happens and get back to you.
Thanks for trying to help!
The same problem here. I lose 20% battery per night. Problem is only appearing on stock rom with stock recovery, I have installed Flumics and stock rom zip from TWRP - problem gone, but I need stock rom with stock recovery.

Categories

Resources