yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] Penemue:
Hello,

GSam won't show any results for kernel wakelocks, probably because my phone is not rooted? However, yes, I do notice that my phone is awake almost always. Sometimes it's the cell standy, sometimes Google Services at the top of my battery stats page. It is getting quite annoying. How should I proceed to find out what the problem is? I tried Wakelock Detector but it also requires root. I'm not sure if I should root the phone just for this.

Now it says approx. 9hrs left on %92 battery.
[Nexus 5 Q&A, Help & Troubleshooting] Zalligan:
Well, I'm stumped. I left it off the charger last night when I went to bed - it seems to be sleeping okay with minimal wakelocks, and after yesterday with it lasting 1.5hours of SOT using only 30% of the battery in airplane mode. The problem is constant use during that SoT that drains it quickly. Attached are screenshots from last night while I was sleeping. I'm going to start looking into replacement batteries if nobody has any other ideas. Any good reputable vendors that sell solid batteries?

Also - one last thought - I've had a wireless charger since I got the phone and use it quite a bit thought I still use cables on occasion - could the constant putting on and taking it off of the wireless charger cause a battery to age prematurely? Whereas with a cable, if you want to use the phone while it's charging, you just pick it up and use it and it continues to charge, but with the wireless charger, everytime I pick it up to use it and set it back down, it stops charging temporarily, then starts charging again. Could these start-stop cycles be a problem?

Thanks for all your help!
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
32% used in 8 minutes.. Definitely a battery issue.

I've used a wireless charger for the past 11 months and it shouldn't cause any harm when you lift and put it back down often.
[Nexus 5 Q&A, Help & Troubleshooting] Penemue:
Sorry for the bump. Wanted to add some more screenshots. GSam screenshot is showing the app sucker in power usage - since plugging off mode. I tried many ways to see the kernel wakelocks somehow but no luck with any app when the phone is not rooted. In those screenshots, it says that my phone is never ever going to sleep. That is just terrible and I have no idea what the issue is.

I've tried the things mentioned in the first posts of this topic and some other general things people do when they are not happy with their battery. As I've said before, I was very happy with my batterly life after upgrading to Lollipop. I didn't really install any apps so I can't blame something 3rd party. I believe it's just Google apps deciding to keep my phone awake all day for some reason. Only problem is to pinpoint the issue and solve it somehow.
[Nexus 5 Q&A, Help & Troubleshooting] Zwambo:
Google Chrome

Hi all :)

Just a small question :) sorry if it's noobish!

When I surf the internet on my chrome app, is it normal that it consumes more battery then the screen?

Mostly I surf on LTE or 3G.

Thanks in Advance
[Nexus 5 Q&A, Help & Troubleshooting] lchazl:
So I found my issue, I am living in CHINA!!! Anyone else living here must read this. It basically stems from the always on exclamation mark in the wifi/signal icon.

Here Google is 97% blocked: hangouts and email can be received (late) and syncing works most of the time (delayed). My guess is that there's basically a guy in the gov't office pushing and holding a BLOCK GOOGLE button and then sometimes releasing it.

Solution: XDA link. I used solution 1 but #2 might be longer lasting, not sure. Please [MENTION=4036181]Darth[/MENTION] include this in the first posts since this is really did fix my battery problem. Users in China will thank you!:)
[Nexus 5 Q&A, Help & Troubleshooting] eddie_gordo:
Hi guys.. Do you think that the following behaviour is normal? Or should I be getting less wakelocks and more battery life?

http://imgur.com/a/LkvZ8
[Nexus 5 Q&A, Help & Troubleshooting] Zwambo:
Hi,

I Think personally that its a bit under average behaviour. Since you only got 1.5h SOT. Maybe Foursquare and social apps are the real battery drainers?
[Nexus 5 Q&A, Help & Troubleshooting] :
Wakelock detectors pc version will show your app wakelocks without root. Try it out... Cause you definitely have an issue there.

Otherwise you'll have to Root to find out.
[Nexus 5 Q&A, Help & Troubleshooting] Zwambo:
[MENTION=4036181]Darth[/MENTION] Thank u so much for this thread and tips! It's really helpfull for getting the most out of my nexus 5 :D!
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
Does anybody know what this wakelock is? [MENTION=4036181]Darth[/MENTION]
[Nexus 5 Q&A, Help & Troubleshooting] :
I found a lot on alarm manager wakelocks. But not *alarm*.

If it's new, it's likely a recent app or update you've installed.... Or an option/service you've changed?

I've seen it on my devices plenty, but never as an issue.

A reboot stops it I bet.
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
Reboot does not stop it unfortunately. I may just clean flash my ROM to see of that fixes it.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Theoretically should be a harmless wakelock, but if it occurs in every system app all the time then it's a weird ROM thing. Not much to worry about, but i've blocked it and nothing broke lol
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
Yea something kept your phone awake for most of that time. Rebooting your phone should stop any constant wake locks like that, at least temporarily.

That seems like normal usage to me. 3 hours SoT over the course of a day is normal when using most of the battery draining features as well as social media.
[Nexus 5 Q&A, Help & Troubleshooting] Penemue:
Hello,

Thanks for your replies. I've solved my problem by disabling and re-enabling the Google Play Services. This kinda resets most of the Google services and I no longer have full day wakelocks. Getting 2 days of battery from my Moto G again.

Thanks for the help everyone!
[Nexus 5 Q&A, Help & Troubleshooting] eddie_gordo:
I actually never get to 3 hours SoT. The best I had was 2 hours and I have to be really careful when using the phone... Here's another day of battery for me: http://imgur.com/a/WxFoN
[Nexus 5 Q&A, Help & Troubleshooting] porman:
I get about 2 - 2½ hour of SOT, with a bit of browsing, playing NBA General Manager, listening to music usually for two hours per day. I'm thinking of getting one of those power packs. They are pretty cheap and you don't need to find a socket for your charger if you're outside.
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
That other day you would've been on point for close to 3, but this still looks normal to me. You've loaded up your device with many battery draining apps and by the looks of it every single default setting has been left enabled (Google Fit, all Google services, bluetooth, etc.) so the battery tends to drain in about 1 work day with 2-3 hours SoT using the device in this way.

I can't quite tell for sure, but am I right in assuming you are using mostly mobile data as your internet connection? I see your WiFi was always on but based on my experience it seems like it was using mobile data but you just have "WiFi always scanning" enabled, or perhaps WiFi during Sleep is disabled, both of which increase battery drain. Also your signal is fairly weak (orange is weak, red indicates full loss of signal) which will increase drain, especially when using a mobile data connection.

I'm not one to tell someone how to use their phone or what to disable as everyone has different needs, but if you haven't already please read the first few posts of this thread and perhaps try a few of those things if you'd like to find ways to increase your time away from a charger.

Awesome man! It's good to hear. Now you can enjoy using your device again.
[Nexus 5 Q&A, Help & Troubleshooting] bland.life:
I'm getting the Android OS wakelock after wireless charging again, this time on Lollipop.

Posted the pics and details in a G+ post so I'll include a link to that:

https://plus.google.com/111727410437311013402/posts/cdxPoujztYD
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
[MENTION=4036181]Darth[/MENTION] I've wiped and flashed the latest nightly of my ROM and the wakelocks went away. Left phone sitting overnight for 6 hours and got 0.6%/hr drain (Poor WiFi signal in my Bedroom).

[MENTION=5666997]Elluel[/MENTION] (Still want to type Lethargy lol) I've blocked the wakelock using your method. I have the same wakelock blocker in my ROM. Thx man!
[Nexus 5 Q&A, Help & Troubleshooting] :
Now keep track of changes you do.... To narrow down the cause if it starts again. Would be good to know if you find a culprit.... If it happens again anyway. ?
[Nexus 5 Q&A, Help & Troubleshooting] eddie_gordo:
I am connected to a WiFi network during work and at home, but I never turn the WiFi off when I leave... But yeah, I understand that if I want Google Fit, Bluetooth enabled, etc, I won't have too many hours away from the charger. My main point coming here was to try to understand if what I have is the usual for my type of usage or if I had something draining my battery. I work in a computer so I can easily charge the phone during the day, no big of a deal. :)

One quick question though... if I switch the "Keep Wi-Fi on during sleep" to "Only when plugged in", will my phone disconnect to the Wi-Fi network when I turn the screen off? Or what exactly does this do?

Thanks for the reply! :)
[Nexus 5 Q&A, Help & Troubleshooting] :
In my humble opinion... It's best to leave WiFi on full time when in range. No off when screen off or anything else. Many achive 0.5% standby drain with WiFi on always no problem. And I toggle it off when I'm not near my network.

Do turn off always scan for networks though. That's evil.

Having it turn off and on every time the screen goes off or on likely wastes more battery constantly initializing. Also, SocIal apps and anything else seeking data whenever they need it will be spamming your data signal if WiFi is off. That'll hurt your battery even more in many cases... Unless you have a strong signal.

Just my 2 cents. ?
[Nexus 5 Q&A, Help & Troubleshooting] eddie_gordo:
Thanks. I'll disable both "Network notification" and "Scanning always available" and leave the rest on. :)

Thank you guys, you've been really helpful. I'll get back in the case that I have some strange battery behaviour and need your help.
[Nexus 5 Q&A, Help & Troubleshooting] slylust:
wierd issue for me

Every time i use my phone for more than 10 mins it turns off and wont turn back on unless it is plugged in.

More specifically it shows the boot animation the nexus dots unfortunately it turns off right after won't even reach the android animation.

Initially i thought it was just battery running low, so i plugged it in and turned it back on the phone boots up with no issues. The second i unplug it to use it the max i get is about 10 mins of use. Plug back in turn it on and the battery shows 60 70 or 80% charge left and still charging. Using in app battery setting kinda shows the drop off.

When this issue first started i would be able to use the phone for 1hr to 30 mins at least before it turned off now. Its practically unusable.

Something i have noticed is the problem seems to be from me using the phone with the screen on. During the recent snow shower, i used the phone with bluetooth turned on had it running for good 40 mins no issue but the minute i turn the phone screen on it shuts down on me.

Things i have tried

Initially looked through the GSAM battery app to figure out what was draining my battery or at the very least using it the most and uninstalled/disabled them. No help.

Just today i did a factory reset was plugged in during the erasing part. Unplugged tried the initial setup instruction and before i could even finish it shut down on me and had to plug the phone back in to finish the setup.

The phone was perfect till the recent lollipop update things have been getting worse and worse for me. Any help is much appreciated.
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
You don't have a battery issue. You have something else going on. I'd flash the factory image and start over again and see if you still have problems. If you do I'd start thinking hardware.
[Nexus 5 Q&A, Help & Troubleshooting] methuselah:
Well i am facing something very strange issue. 5 percent of battery just vanish in few minutes. I mean as soon as i unplug my battery from charger . It comes down on 95% . I am using greenify, wakelock blocker no. Recaliberated even. I am now on official slimmed ROM . What you suggest me. Using official slimmed 4.4.4 kitkat. Phone moto g falcon xt1033
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
There's a few reasons that can happen. Most commonly the phone is still charging when you unplug it. This can be either because you unplugged it right as it hit 100% when it's actually still slowly charging the last few percentage, or the phone was on the charger for an extended period of time and trickle charge hadn't kicked in yet.

Lastly there is a chance that it is normal battery degradation. This will always happen after a certain amount of charge cycles and can also be accelerated by exposure to extreme heat or cold specifically while charging.

There are battery calibration apps that some people claim can help in such a case but I'm skeptical about their usefulness personally as the battery should calibrate every time it's charged.
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
So just an update after yesterday's clean flash. Very heavy use today. Like 2 hours of Pandora over LTE. Half an Hour of YouTube over WiFi. I'm happy. I don't think anything is out of norm. [MENTION=4036181]Darth[/MENTION] would you say everything is Good?
[Nexus 5 Q&A, Help & Troubleshooting] :
What I find strange is time held awake shows 6 hours awake time from mediaserver, but the main gsam screen says 2 hours. That's weird. Usually it only omits kernel wakelocks.

And wow you tube took a chunk! Lol But considering the usage... I'd say it's not all bad. The main gsam screen says all is good.... But that 6 hours of media server is strange. I wonder if it got caught up after and held you awake.

Even though everything else disagrees with that 6 hours.

Strange. I'm still thinking battery stat reporting is glitchy on Lollipop.
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
[MENTION=4036181]Darth[/MENTION] yes I noticed that glitch too. Confused me. It didn't match BBS times either. Very strange. But yes Lollipop probably needs a bit more Polish in some technical areas.

---------- Post added at 10:23 PM ---------- Previous post was at 10:20 PM ----------

[/COLOR [MENTION=4036181]Darth[/MENTION] I noticed this. Can you explain why the Accelerometer Time is higher? Lol?
[Nexus 5 Q&A, Help & Troubleshooting] methuselah:
This was the issue with my last battery and it also had same problem .i got it.replaced. May be its trickle charge effect that you are talking about, but what is time i should give after battery full for trickle time???
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
You can use something like Current Widget to monitor how much power is going in or out at any given time. With my device it's about 30 minutes after first showing 100% that it actually stops charging.

After that the phone can lose battery again say throughout the night and it will kick in every now and then to top it off. Depending on when you unplug it, there could be a few percentage missing.
[Nexus 5 Q&A, Help & Troubleshooting] apolonio1993:
Problem with spotify and mediaserver

Hi,

First of all sorry for my english.

In my nexus 5 i have install the cataclysm rom(newer version) and the code_blue kernel(877), i have even modify the google services that i don't use and my battery is around 4 hours of screen but think i could make it even longer if

spotify

, with

mediaserver

, could not waste this kind of percentage in my battery. I only have offline playlist so there is no any kind of streaming.

¿This is normal?
[Nexus 5 Q&A, Help & Troubleshooting] bland.life:
So I guess my problem isn't a battery problem then?
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
I wouldn't think so. Rather this is an android bug that needs to be reported.
[Nexus 5 Q&A, Help & Troubleshooting] :
Usually a reboot after unplugging will cure charging related wakelocks.
[Nexus 5 Q&A, Help & Troubleshooting] bland.life:
I thought so.

Was thinking its something in the AOSP code.

Maybe I'll add an issue in the Android bug tracker?

Nothing to unplug as the issue is about wireless charging.

Reboot works as I mentioned in my G+ post, but the next wireless charge will trigger the wakelock again.

A reboot will not cure or fix this issue.
[Nexus 5 Q&A, Help & Troubleshooting] :
It wakelocks after you charge? Or during the charge?

Just checking, cause last I knew... The N5 will remain awake always while it charges, wireless or wired. But should sleep when off the charger.
[Nexus 5 Q&A, Help & Troubleshooting] bland.life:
That I'm not sure as BBS only start capturing after charge.

But I think it continued to stay awake from charging to after charging.

Maybe something prevented whatever receiver to process that wakelock?

If only theres an app that can diagnose the wakelock and create a targetted receiver to catch the wakelock.
[Nexus 5 Q&A, Help & Troubleshooting] :
I'm not sure about that one.

But, rebooting after charging, whether wireless or wired charging, should stop the wakelock.

My S2 had to almost always be rebooted after charging. Even my M8 on a couple Roms I've encountered. Charging sometimes causes an Android Kernel wakelock, and rebooting stops it.

It's not nice, but it happens.

Edit: CPUSpy will confirm your phone is awake during charging if you reset it's stats as soon as you start charging....and will show you deep sleeping after, if it does. (you can refresh the stats to monitor)
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
I use a Qi charger and I have never seen such a wakelock. It could be a kernel issue or a ROM issue. Absolutely nothing to do with any receivers. Try a clean flash, or if your ROM has a wakelock blocker (or use Xposed) simply block it.
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
hi ...

i have a problem with "keep awake"

I have problems for a week.

Lollopip + screw'd rom + hells core (touchboost 960) + gapps minimal edition 3/1 + xposed

thanks for this amazing thread :)
[Nexus 5 Q&A, Help & Troubleshooting] :
Read post 4 a little more. Screen shots are only useful over a long period. From 100% to about 10%left on battery is ideal.

And personally, BBS is a lot of mumbo jumbo to me. Lol

Gsam would be better used here. For me anyway. ? it's all in post 4.

As far as what your brief shots show... Social apps seem to be an issue, but other than that... More time before screens is needed. ?
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
I knew that something was wrong xD

GSAM I tried it but I do not like it; I'll use it anyway.

I'll tell you, thanks :)
[Nexus 5 Q&A, Help & Troubleshooting] :
My favorite thing about gsam is the main screen..... It's a great summary of everything. ?

You need gsam root companion installed too to see times waking device and held awake time.
[Nexus 5 Q&A, Help & Troubleshooting] amir7777:
Hey man what app is that?
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
It's not an app. System function. It's built into many Lollipop ROMs. Look in Developer Options for Wakelock Blocker. It's in Blisspop for example.
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
[MENTION=4036181]Darth[/MENTION]. It's back. I may have to switch ROMs completely if this keeps happening. 3rd BlissPop build I've been on this week that this has happened to me.

Only One 20 minute video in YouTube. But Accelerometer was at 52 minutes. I don't get this.
[Nexus 5 Q&A, Help & Troubleshooting] amir7777:
Thanks man I'll check it out
[Nexus 5 Q&A, Help & Troubleshooting] :
Audio offload is coming from you tube. You tube is clearly misbehaving, which probably means a bug in a recent update.

Freeze you tube, use dolphin browser or something.

Solved. Lol

Or try another rom. It's a kernel wakelock I think though... So another kernel may or may not help too.

Maybe uninstall YouTube updates.

Try wake blocker on it.... Or that sorcery that I don't understand. ?

?
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
I'll update you next the couple of days. Thanks man!

Edit: Tibu Freeze/Launch App widgets are so convenient. I recommend them over Greenify.
[Nexus 5 Q&A, Help & Troubleshooting] :
But freezing or hibernating an app doesn't mean it will stop the process that is wakelocked. It could. But okay take a freeze, then reboot to end the process. ?
[Nexus 5 Q&A, Help & Troubleshooting] skymapper:
here's how my battery looks like :)

mind you, i like my phone clean of all useless (for me) apps
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
Sorry man. Are you looking for help? If you are just trying to show of stats there's another thread in the General section for this. This is for getting help only.

If you are looking for help then please read the first 3 posts and provide GSAM screenshots
[Nexus 5 Q&A, Help & Troubleshooting] Zwambo:
Hi =),

Is this function also available on cataclysm rom?

Sorry can't seem to find it ...
[Nexus 5 Q&A, Help & Troubleshooting] Zwambo:
Thx for your response =)

Tried disable service app like you suggested in OP but ended up in having an error from play music ... sorry dont have screenshot.

Don't have the error no more since i reflashed stock and re-installed Cataclysm.

Although I am quite satiesfied with my battery life, i have a question. Is there a way getting less battery drain from Google Chrome app?

Thx in advance =)!
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
There is a warning in my post that says you shouldn't copy what I disable, since I disable some things that other people may use. That is why you're getting an error in Play Music.

I do not know why people complain about Chrome all the time. On Android I use it as my primary browser and there is no such battery usage issues with it, it causes the same amount of battery usage as any other browser.
[Nexus 5 Q&A, Help & Troubleshooting] peter_90:
Changing the battery

Hy guys!

I bought a used Nexus 5 a few months ago and I am getting about 2,5h SOT, even after restoring to factory settings. (sorry, no printscreen).

The phone is about 14 months old, and it was charged daily. Should I consider replacing the battery after 14 months? Have you noticed a drop in battery life after some time?

Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] :
Battery failing is rare.

And without screen shots as recommended in post 4...no way to know what's going on. Could just be your usage style that lands you those times.

Post 2 has many suggestions for better battery though. ?
[Nexus 5 Q&A, Help & Troubleshooting] peter_90:
I read post 2, and done that. Still, about 2,5h SOT. I understood the SOT when I was playing a lot of Asphalt 8, but i uninstalled it, and no change.
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
here i am. LOL

I did all screens possible in this world haha

THANKS
[Nexus 5 Q&A, Help & Troubleshooting] :
Post 4 my friend. Or all we can do is toss guesses at you. ?
[Nexus 5 Q&A, Help & Troubleshooting] peter_90:
Just installed Gsam :).
[Nexus 5 Q&A, Help & Troubleshooting] Zwambo:
I do not complain about Chrome =P! Just asked if there is a way for less battery drain.

But as I said i am quite satisfied with my battery =) thanx for the tips =)! Really appreciate what you guys do!!

Kind regards and keep up the good work =D!!