yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
I find the Settings battery chart better for looking at the wake vs screen times. Using an app for it isn't always accurate.
[Nexus 5 Q&A, Help & Troubleshooting] sorcio91:
Hi everybody, i don't know if it's a battery issue.

Practically: when i recharge my phone for a long period of type (i recharge it during the sleep time), when i use it in the morning, in few minutes it gets stuck; then i have to force a reboot with a long press of the power button and then it returns normal. This does not happen when i recharge it for 20/40 minutes or so

I have a Nexus 5 16GB with the latest Lollipop official release (flashed via ADB), but this problem was present with kitkat too, but in minor way. With kitkat this happened some times, like once in a month, so i didn't investigate for the problem, but now with lollipop this happens every morning.

What it could be? Do you have any suggestions?

Thank you, and sorry for bad english!
[Nexus 5 Q&A, Help & Troubleshooting] inSaN1Ty_X:
For all of you who have a bad battery performance or have "battery charging itself", it might be a defective battery.

I had a terrible battery life from last summer until last week. What ever I did it was max 2h sot and worse each day. Towards the end the battery menu had no idea what was the actual amount of juice left in battery and it would shut down on its own.

Try out the stock factory image from google for a few days. If there is no difference in battery life, the battery is probably a defective.

Yesterday I got my Nexus 5 from the store and they said that the battery had already busted out the back cover. Now - new battery - exactly same settings and usage (actually I now have enabled gnow and location services) and 4h sot is on " meh-tier" as I just yesterday got 6.5h of sot with massive usage.
[Nexus 5 Q&A, Help & Troubleshooting] :
Completely agree! But once seen and awake time is bad...posting it here tells us nothing that the poster doesn't already know... They have wakelocks. ?
[Nexus 5 Q&A, Help & Troubleshooting] davey1412:
Having the same problem. Reflashed to old 4.4 ROM and even CM11. Same consistant issue for me with the shut downs at 25 - 30% and back on for it to say 0%. So a new battery will be arriving as soon as I'm back from my holidays.
[Nexus 5 Q&A, Help & Troubleshooting] fresyk:
Watch this.. what's this wakelock?

a lot of drain in standby
[Nexus 5 Q&A, Help & Troubleshooting] gerrysnaps:
Google already started rolling out a new build of Google Play Services. I found a link in APKMirror and downloaded it directly to see if battery life improves. I think it has improved! Now getting 18-19 hrs instead of 6-8 hours with normal use, Google Now Launcher and Google Now active.

Here's the link in case it hasn't rolled out to you and you want to try yourselves: http://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-6-5-85-1589008-438-apk/ Hope you all see similar improvement.
[Nexus 5 Q&A, Help & Troubleshooting] samcrocr:
Tried installing it but it doesn't let me press install . Im having simipar issues when trying to enable accesibility services such as lastpass, and pusbullet
[Nexus 5 Q&A, Help & Troubleshooting] gerrysnaps:
Might be obvious, but did you configure to allow unknown sources?
[Nexus 5 Q&A, Help & Troubleshooting] samcrocr:
I did enable it
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Something kills my battery. But what?

+ a quick test with Gsam. Any idea?
[Nexus 5 Q&A, Help & Troubleshooting] foosion:
It seems to have decreased my battery life by a bit, based on testing since yesterday.
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
I cannot update my Google Play Services because last 3 digits of my device. :crying::crying:
[Nexus 5 Q&A, Help & Troubleshooting] gerrysnaps:
Seems I spoke too soon. Today I couldn't get more than 8h on a full charge, only changes from last time were updates to Google Keep, Slides and Facebook.
[Nexus 5 Q&A, Help & Troubleshooting] DrZen:
Do you have Lux installed? I had the same issue. If you do, go into the advanced setting for Lux and temporarily disable it. You should then be able to install just fine.
[Nexus 5 Q&A, Help & Troubleshooting] :
You have an extreme amount of awake time. You need root and Gsam root companion to see times waking device and held awake time for us to see what's going on.

See above.... Same goes for you. Also, your gsam screens cover 42 minutes only.... That won't she'd light on anything. Gsam resets if you reboot...

You have bad wakelocks too.... And what I said above is the only way we can help. ?
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
I have some random battery drain issues too. But I think the issues belongs to 3rd party apps. In the safe mode there's not any battery drain. The 3rd party apps aren't compatible with Lollipop yet. So the main issue is this apps. Now 'Im trying to uninstall and reinstall the apps to find which apps drain the battery in deep sleep. I think which apps has a "cancel deep sleep mode" permission may drain battery if it's not updated for Lollipop. It's just a guess though.
[Nexus 5 Q&A, Help & Troubleshooting] Ghoster_Good:
Serious problem

Hello everyone, I'm an italian user and I'm writing here because I have a serious problem with my Nexus 5 battery.

In fact, the battery of my phone for about a month goes down very quickly and I can't do more than 1h 30m - 1h 45m of screen, and now I don't know what to do ..

I tried an hard reset, I tried to disable synchronization and other options, and tried to use it in safe mode, but the results have not changed.

This problem also persists with lollipop

Another thing I noticed is that the battery goes down very quickly after 40% percent, it is normal that?

For this reason, I'm thinking of contact the assistance of google for the replacement of the device because I think that the battery has some problem

I attach some screenshots to help you understand what I mean ..

I really hope you can help me .. Good evening to all
[Nexus 5 Q&A, Help & Troubleshooting] :
I'm hoping you are rooted? Try some things from post 2. And please review post 4. The screen shots you've posted just aren't helpful. Post 4 will explain the screen shots we need. Specifically times waking device and held awake time.

If you're not rooted.... Then we can only guess. Since you can't see app wakelocks details.... Unfortunately.

?
[Nexus 5 Q&A, Help & Troubleshooting] Ghoster_Good:
Thanks for your answer, but I'm not rooted, I have a completely stock device..

However, the battery drain is the same also in the safe mode with no apps (and in particular from 100% to 80%, and from 40% down..)

What I can do in this case? There is the possibility that my battery is damaged?

Thanks again..
[Nexus 5 Q&A, Help & Troubleshooting] :
You can see if there's a difference with location services completely off and Google now... And again, apply some other tips from post 2.

If it's still bad... Are you on data with a low signal? That can kill the battery fast.

Otherwise it's wakelocks. And without root... You can't check them. So.... Root. ? otherwise you just can't figure it out really. Aside from uninstalling apps until you narrow down the culprit.

Should check gsam anyway. It will let you see your held awake time at least. And you can see your kernel wakelocks without root. They're not usually the problem, but can be. But usually it's app wakelocks, but no root, no seeing them.
[Nexus 5 Q&A, Help & Troubleshooting] saman_z1384:
hello everybody

after i updated my phone to android L , i have seen camera battery drain bug several times!!!

I thought this problem was solved in android L. have you had this problem yet?? i mean after updating to android L.
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Wı-FI is the issue. If you don't close it manually the deep sleep auto-closing option doesn't work.
[Nexus 5 Q&A, Help & Troubleshooting] dcar87:
Install latest google play services. I get more than 4 hours SOT with everything on.
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Any version has got the new google play services but -738 doesn't. Grrrrr.

On the other hand SOT is not a real deal. Do you have much wakelock in deep sleep? That's the main issue now.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
There is no specific version of Google Play Services that will definitely use more or less battery.

Its been the exact same for me every single version, because I actually manage it properly.

Maybe you people should do the same and take action instead of waiting for nonexistent "magic" in the form of an "update".

And no, Lollipop won't magically increase your battery life. It still has the same battery. It still has the same SoC. Wakelocks are still wakelocks. Your screen is still the same screen.
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Sorry but NO. Wakelocks are not same. Personally I don't expect magical battery life. I just expect NO unnecessary battery drain, especially in deep sleep. There's something which drain battery on background when wi-fi is open. It deactivate the deep sleep and let the phone awaken too much. This issue looks like a software issue. So updates must fix it.

Same battery, same screen, same phone but a whole new operation system. Android Lollipop has battery drain bug on Nexus 5 and it should be fixed by Google.

And here's the proof: When Wi-fi is off there's no unnecessary wakelocks and wakelocks are mostly matchins with SOT. But when wi-fi is on wakelocks begins immediatly to drain the battery.
[Nexus 5 Q&A, Help & Troubleshooting] Celestial Fury:
Already acknowledged and fixed by Google.

http://www.androidpolice.com/2014/11/05/the-android-5-0-nexus-rollout-might-be-on-hold-because-of-a-serious-wifi-bug/

Battery drain with WiFi on is nothing new. Happens on any version. More things happen with internet connectivity - backup, sync, "phoning home", etc.

To expect NO unnecessary battery drain, you have to manage your apps. To manage your apps you need to look into managing wakelocks, alarms, services, etc. If you don't wish to then you'll have to wait for Google and app creators to 'fix the problem'. Here on XDA we fix it ourselves.
[Nexus 5 Q&A, Help & Troubleshooting] Blackbox421:
Hey guys,

last week I updated my phone to Android L. I am full stock, so I have no root. After updating to 5.0 via the official OTA my battery life is horrible! I dont know what to do.

Does a factory reset will help?
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Nothing has been fully fixed. Every sync option is closed on my phone. I tried everything. If I close wi-fi and open 3G there's no unnecessary wakelocks. But when I open wi-fi, wakelocks begins immediatly. Even in safe-mode there's wi-fi battery drain so it means no 3rd party app is guilty.

I made some tests, here are the results:

1) Wifi: off, 3G: on = no wakelocks

2) Wifi: on, 3G: on = wakelocks

3) Wifi: on but

not connected

, 3G: on = wakelocks

4) Wifi: off, 3G: on =no wakelocks again

5) Wifi: on, 3G: off = wakelocks

6) Wifi: off, 3G: on (in safemode) = no wakelocks

7) Wifi: on, 3G: on (in safe mode) = wakelocks

My decision: Wifi battery drain issue didn't fixed at all.

I recommend to make this tests who has battery drain issues. If we may find clear results we can share it with Google.
[Nexus 5 Q&A, Help & Troubleshooting] :
I'm going to suggest that if a big discussion on Lollipop battery drain or testing it is going to take place, that it find a new home. Either in the battery results thread, or a new thread dedicated to solving this particular issue.

But realistically... Advice for workarounds has been offered... Tips are in post 2 which will help (location and G Now off in particular) and multiple requests for recommended screen shots have been made. So this is not been constructive discussion the last several pages. And not what this thread is for.

This thread is for members to describe their issue, post the recommended screen shots and hopefully people can help. Endless discussion on the same thing is not helping.

Thanks guys! ?
[Nexus 5 Q&A, Help & Troubleshooting] :
^^^^ Created thread.

http://xdaforums.com/google-nexus-5/help/discussion-specific-5-0-battery-drain-t2949581

To avoid cluttering this thread with constant talk of what may be un-solvable bugs at this point (tho doing every suggestion in post 2 and 3 will stop the drain...)

So please use it to brainstorm 5.0 mysterious issues. Like WiFi potential bugs.

When the issues are fixed by Google, or members.... That thread will be closed and we can easily help members here with it, in this thread.

But for now its just not helping discussing it here.

Good luck!
[Nexus 5 Q&A, Help & Troubleshooting] :
And note... Any 5.0 posts here that are not accompanied by app wakelock screen shots (yes, you need root) You will be asked to post in the 5.0 discussion thread.

We can't solve anything without those screens. And again, guessing at wakelocks is a waste of time. ??
[Nexus 5 Q&A, Help & Troubleshooting] brandaopj:
in the keep wifi connection active during suspension whats the recommended setting for optimal battery efficiency?

only when connected? Or leave always active?
[Nexus 5 Q&A, Help & Troubleshooting] :
Most the battery gurus leave it on. As long as there are no issues, it will not hurt battery life. In fact... Initializing it every time the screen is turned on will surely drain more juice than leaving it on.

My N7 gets 0.3 percent drain per hour with WiFi always on.

My N5 got 0.4 always on.

And my M8 gets 0.5 always on.

I can tell you that if I change it to turn off when screen is off, I certainly won't get better drain per hour than that... And most likely worse drain overall throughout the day. ?
[Nexus 5 Q&A, Help & Troubleshooting] atrix4nag:
GCM_LIB

GCM_LIB wakelock not allowing my phone to sleep...

Please find my attached BBS log. Please suggest.. what is the issue...
[Nexus 5 Q&A, Help & Troubleshooting] :
It's something to do with Google cloud messaging. Can't find out much about it, or stop it.

But is this something regular, or new? A reboot would likely stop it.
[Nexus 5 Q&A, Help & Troubleshooting] atrix4nag:
Reboot fixed it temporarily, after some time it started again.
[Nexus 5 Q&A, Help & Troubleshooting] Edge330:
Yesterday I had 3:30h SOT, around 20 minutes of calls and 1d and 5h of standby...

It's not so bad result, but art should bring better battery time.

Ofc I'm running lollipop.
[Nexus 5 Q&A, Help & Troubleshooting] saman_z1384:
plz answer me
[Nexus 5 Q&A, Help & Troubleshooting] MrObvious:
The bug from 4.4.2? Mm-qdaemon or something like that?
[Nexus 5 Q&A, Help & Troubleshooting] jhysons:
Battery issue tip

To be honest I have been runnig Android L with no problem, and no battery issue. However, I am running the LPX13D build number so I will suggest to run this one untill they find a way to fox the battery issue on the LRX210
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Is there any difference between them?
[Nexus 5 Q&A, Help & Troubleshooting] jhysons:
Battery issue tip

To be honest I never use the LRX210, so I wouldn't know if they add more to it. But with the LPX13D it run smoothly on my Nexus 5 and my battery last me an entire day of full use.
[Nexus 5 Q&A, Help & Troubleshooting] surrealjam:
For me, the miscellaneous battery drain on LPX13D (fixed and described here: https://code.google.com/p/android-developer-preview/issues/detail?id=189) made battery on the preview builds far worse than LRX21O.

That's not to say LRX21O is without its issues!.. but battery isn't at the top of my hit-list.
[Nexus 5 Q&A, Help & Troubleshooting] snorfu:
Could anyone help me please? I don't know why chrome become rogue in the last hour...
[Nexus 5 Q&A, Help & Troubleshooting] :
You're issue isn't chrome itself, it's your terrible signal. While on data, poor signal drops the battery extremely quickly.

Shut off data when you aren't actively using it is all you can do. It will still drain you badly when you're using it... But it will help a lot if you turn it off when not in use. Or get on wifi. ?
[Nexus 5 Q&A, Help & Troubleshooting] snorfu:
But on the last part, where the massive drain starts the signal was the most time good. I noticed this behavior also in 3g where i got perfect signal all the time some days ago...
[Nexus 5 Q&A, Help & Troubleshooting] :
Your phone dropped steadily from the beginning... Which is another indication of signal.

Some other things to help in that case; turn location and Google now off. And get rid of chrome. Even temporarily.
[Nexus 5 Q&A, Help & Troubleshooting] snorfu:
Yeah i disabled Google now and location since i flashed 5.0 with fastboot. This is really annoying that a Google app causes this battery problems
[Nexus 5 Q&A, Help & Troubleshooting] :
I know there are issues in 5.0 reported by some, but I'm telling you... Low signal is killing you more than 5.0 issues. Disable data when not using it.... And you will see a big difference.

Or don't. ?
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Here's another proof about Wifi. I have perfect signal but when I open the wifi (and as you can see screen is off) the phone has wakelocks. But when wifi is off, wakelocks are almost same with SOT.

So low signal is killing the battery, yes. But it's a normal issue because phone try to find the signal. But being awaken in standby is not normal. The phone must be in deep sleep.
[Nexus 5 Q&A, Help & Troubleshooting] :
I agree there seems to be an issue... But the above member never had WiFi on. His issue is his poor signal while on data.

It's unrelated to this WiFi issue. His battery dropped like a rock with apps trying to access data with no or low signal. ?
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Yes but it's completely normal. It's not an issue of the phone (most probably, if there's not a hardware problem), it's the issue of service.
[Nexus 5 Q&A, Help & Troubleshooting] :
Yes, that is what I said. Poor service while on data = Poor battery. It's like that on any and every device. ?
[Nexus 5 Q&A, Help & Troubleshooting] snorfu:
Please look at the graph again. You can see that the biggest drain starts when this massive wakelocks began BUT at this time the signal wasnt't that bad.
[Nexus 5 Q&A, Help & Troubleshooting] efpob:
My battery life was abysmal after a clean flash to Lollipop, maybe 5-6 hours of my nomal useage pattern. I previously got around 12-13 (with Wifi, bluetooth, Now, location etc all on) with kitkat.

Turned out the culprit for me was Smart Lock (trust agents) . I had my bluetooth headset, and face lock on, and got around 8 hours, and once I enabled trusted locations, 5-6 hours. With Trusted devices, locations and faces all turned off under Smart Lock, then disabling Smart Lock under Trust Agents, I'm getting an average of 14 hours with 2h50 of screen on time.
[Nexus 5 Q&A, Help & Troubleshooting] :
My friend... Turn data off when you aren't actively using it for one full discharge... And then see how it looks.

Without being rooted, with gsam and Gsam root companion... We can't see your app wakelocks....

If you won't try what I'm suggesting, to see if it helps.... Then I don't know what else to say.

Good luck! ?
[Nexus 5 Q&A, Help & Troubleshooting] :
Oh... And you could freeze or uninstall chrome..... Or disable it.
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Hi folks. I made something by a forum member advice. I closed the smartlock. And it worked. Yes there's not any wakelock even wifi is on.

But this is not the trick. If you didin't specified any security lock smartlock menu isn't active. But it seems that smartlock is active. I specified any security lock, opened the menu and smartlock was active. I closed it and deactivated the security lock. And voila, it works now.

By the way I'm not pretty sure about the solution. becasue I uninstalled the swiftkey once and it was worked too. After 1 day the wakelocks has returned. So I'll let you know the results. But try that.

Here's some before-after photos.
[Nexus 5 Q&A, Help & Troubleshooting] :
Awesome! Hopefully it stays sleeping. ?
[Nexus 5 Q&A, Help & Troubleshooting] kamajikaciya:
Is it possible to report this issue to google developers? I think they might fix it.
[Nexus 5 Q&A, Help & Troubleshooting] riposinpace:
Okay I think I have enough screenshots for y'all to get an idea of my phone, I feel like it's not sleeping well and I'm not getting much screen on time. I'm stock 5.0 rooted right now with Franco R68 kernel. I know I have iffy battery life for portions of it but I also tried to have WIFI on when I had bad signal. I'm not quite experienced or knowledgeable enough to know quite what is keeping my phone awake, this was taken with location completely off and no google now. It's not too much different for me then when I had both those things on.
[Nexus 5 Q&A, Help & Troubleshooting] :
We aren't the only ones.... The issues are being talked about all over.... Fixes will come eventually.

http://fieldguide.gizmodo.com/the-worst-bugs-in-android-5-0-lollipop-and-how-to-fix-t-1663090445

?
[Nexus 5 Q&A, Help & Troubleshooting] Anderson2:
Sorry to barge in, but what is "trusted devices" and how do you turn it on/off? Is it something in android 5,or does it exists in kitkat?

Also, does data get used even when you have wifi connected?

Is this where you turn data off? (the on/off at the top?)
[Nexus 5 Q&A, Help & Troubleshooting] :
Data is off when WiFi is on.

And trusted devices is likely Bluetooth. Disable it and you may have issues. Unless I'm wrong on that. ?
[Nexus 5 Q&A, Help & Troubleshooting] :
Well, many are reporting bad drain with WiFi on 5.0....not just on XDA either.

Nothing looks horrible in your shots. That one app is obviously taking a good chunk of battery. While on data you had poor signal..... Which will take a toll.

Other than that, nothing is terrible. I think the WiFi issues some are having are affecting you also. But switching to data on a weak signal is worse.

Might have to just wait it out for a fix... Or go to 4.4.4 in the meantime.

?
[Nexus 5 Q&A, Help & Troubleshooting] riposinpace:
Yea, twitch was me watching a stream on high quality for about 45 minutes so I get that usage....but according to GSAM, unless I read it wrong, it says that the phone was active for around 4 hours and 17 minutes but yet my SoT was only 2 hours and 17 minutes....so Why is there so much difference between that? and in the battery usage screen on the stock battery monitor there was a lot of awake lines where the screen wasn't on.
[Nexus 5 Q&A, Help & Troubleshooting] :
Pretty sure that's the 5.0 WiFi drain that's being talked about. See the discussion thread on 5.0 battery issues in Q&A for more.
[Nexus 5 Q&A, Help & Troubleshooting] efpob:
Sorry, I meant to say the new Smart Lock function of of Lollopop. I was using Bluetooth devices, face, and my location as possible unlocking methods.

After I disabled them under Smart Lock, the disabled Smart Lock under Trust Agents, my batter time improved dramatically.

This is all for Lollipop, and found under Security in the settings menu.

I've edited my original post to hopefully make it a bit clearer!
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
I'm sure you know by now but those are obvious battery drainers.
[Nexus 5 Q&A, Help & Troubleshooting] foosion:
Devices and location are obvious battery drainers, but why would face unlock be a big drainer?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
It uses the camera.
[Nexus 5 Q&A, Help & Troubleshooting] Anderson2:
Thank you for the clarification.

I'm staying with kitkat for now. At least until xprivacy and xgravity become available in lollipop. ?
[Nexus 5 Q&A, Help & Troubleshooting] foosion:
Unlock should only happen when you turn on the phone, which should not be that often. How frequently do you turn your phone on?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
That question is dependant on the user in question.

It is unnecessary battery usage nevertheless.