yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] Primokorn:
How to analyze and improve your idle battery drain

If you need help to analyze your battery life, please use BetterBatteryStats to report logs.

1. Charge your phone to 100% then unplug it.

2. Leave your phone idle for at least 7 hours (do not touch the screen)

3. Open BBS and make sure that the start reference is "Unplugged" and the stop reference is "Current" or "Screen on"

4. Hit the Share button, select "Text Dumpfile" and save. The file is stored in the root of your sdcard.

5. Attach it in this thread

Note: Make sure that "Enable while charging" is NOT checked in BBS > Settings > Advanced

Any other information and screenshots about your usage pattern might help.

Here are a few screenshots from last night :)

‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗‗

Gsam has a lot of easy to follow info available, if you have root companion as well, and know where to look. Many battery issues will show their faces in these screens somewhere. Many, not all. :)

Please go from 100% to 10 or 15 percent battery left before taking screen shots.....for an accurate idea what's going on.

Here are samples of the important Screenshots from Gsam. Include these in your post and other members will quickly get an idea of what's happening. Hopefully. ;) (not all issues are easy to find)

These are from Gsam with Gsam Root Companion also installed. Without Root Companion, or if you are not rooted....you won't have all these available. So do what you can.

Main Screen

App Sucker Screen

Number of Times Waking Device (in App Sucker drop down)

Time Held Awake (in App Sucker drop down)

Kernel Wakelocks (in App Sucker drop down)

Also, if you have a weak signal a lot...maybe include Phone Radio screen

If your using Auto Brightness especially, the Screen screen can say a lot

And from the systems settings menu, under battery. Click on the graph for a more detailed graph....(tho really not necessary if you posted the first 5 above....and Radio screen if you think your signal is weak)

That's about it, from Gsam anyway. ;)
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
I know we have a battery thread with 3000 posts....but its cluttered now, as all threads get eventually. Its in General, not Q&A, where troubleshooting is usually found. And its title is Nexus 5 battery results....designed to share times, more so than fix issues. It just became the go to issue place.

Time for a more new member friendly thread that stands out. ;)
[Nexus 5 Q&A, Help & Troubleshooting] unsivil_audio:
Reserved. For moi'
[Nexus 5 Q&A, Help & Troubleshooting] PsychDrummer:
Good idea for the thread. It might also be helpful if you detailed your usage. Of course, people's usage should be what works for them and even if someone emulated your usage they will most likely get slightly different results. However, having said that I think a lot of people will ask for it anyway. I am curious myself as well of course =]
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
I'll be putting my setup, and general tips in post 2 when I get some time.

My setup is simple really, turn all the frills off. Toggle them when needed. Screen dimmer, and manually adjusted. Greenify anything that can hurt battery life. I don't usually game... I have an N7 for that. I mostly use the browser, Tapatalk...and text. Yes, boring, I know. Lol ;)

And try not to be running data in poor signal coverage areas. That's number one! Use WiFi, or turn off data and use it only when needed. Texts and calls still work with data off.

My setup definitely isn't for everyone....but decent battery life should still be obtainable with a more robust setup. Its all priority. Give up some things, gain more time. Keep some things, lose some time. And definitely squash any abnormal issues. I've ran just about every ROM out there, and always got similar battery life...setup the same on all of them of course.

And I hope others will see what I put and add to it anything I missed.

As I said, this isn't MY thread to oversee.....its just hopefully going to be a more efficient place for help. Assuming the appropriate screenshots accompany the posts. ?

It will be simplistic, nothing fancy. I'm not much into kernel tweaks and what not, not for the small amount of battery life they can add.

The purpose of the thread is for people to post issues, and for people to help solve them. :)

My tips won't be new to most, just gathered in an easy to find location....especially to help newer folks.
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
Oh....and the answer to the majority of battery issues......Location Services. Lol

Not location services alone perhaps....but it and the apps using it combined.

Thank Google. They just can't seem to get location services right.

Want significantly better better battery life immediately? Turn it off. Yes, off. Toggle it when needed (2 screen touches usually....a swipe and a click). And toggle it off when done.

Best tip there is. Yes, a sacrifice to some....but usually, great results.
[Nexus 5 Q&A, Help & Troubleshooting] vin4yak:
So freaking true. I've set up my rom's tile to toggle between High Accuracy and Off. When I need maps or location, I hit the toggle and once I'm done, hit it again :cyclops:
[Nexus 5 Q&A, Help & Troubleshooting] danarama:
Looking good
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Just going to put this out there - if you put your brightness on the lowest settings and your device isn't awake too much while the screen is off (i.e. wake locks managed, Greenify/ROM's wake lock blocker), average screen on time should be 4-6 hours EASILY. Everything else is has minimal impact (apart from listening to music with the screen off, which would be keeping your device awake, nothing you can do about that.).

There is NO magic setup that will give you phenomenal battery life - short of a battery case but that doesn't count.

This is 4 and a half hours of continuous use, almost always SoT (4 hours 15 mins SoT). Just browsing forums on Tapatalk while listening to music. Still have a quarter left of my battery:

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
Agreed. ?

No, there's no "magic" setup, but 3 hours average to 6 hours average screen time is a huge difference. And setup, usage and signal strength all play a role. The more features off....the longer you'll go. Yes, screen is huge....but things like location services (along with a bunch of social apps) gnow, android device manager...and certain apps can also make a huge difference. :)
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Agree 100%, but by "setup" I meant ROM, kernel, etc. I hate it when people claim that a certain kernel or ROM would give you better battery life - we know otherwise. To some extent maybe, but its only a minor impact compared to other factors that may influence your battery life.

But yes, setup in the form of apps and whatnot could impact battery life but really that's just down to your own usage and management. I have a bunch of social apps on my device but I have them managed properly with Greenify and whatnot. My battery life is fine. :p

In the end the only real excuse is signal strength. But I guess that's what this thread is for - to help people with the other factors.

And yeah, always nuke location. Its useless and just wants your battery.

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
The guys saying "my battery sucks", yet have every single feature on, auto brightness, 6 different social apps...etc...etc....are the ones who don't know these things. And they have 3 hours SoT. Well....that's about right. Lol.

So hopefully with tips on what to cut out....they can pick and choose what the can live without. And times will increase with each cut or change. ;)
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
You should add it to the OP along with mentioning that a ROM or kernel will hardly make your battery life any better.

And I just hit 5 hours SoT with 15% battery left. I'm doing this just to see how much SoT I would get since I don't drain my battery down very often - and my device is asleep 99.99% of the time the screen is off (with the exception of music lol) - its just good management.

Also, I do have autobrightness enabled - but since I'm on a custom ROM I've changed the brightness levels really, really low, stock values are horrible i.e. battery drainer.

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
Awesome!!

Post 2 will have all the tips I can think of, no matter how harsh...Lol. As well as tips others contribute. Like yours! ;)

Probably won't get to it til the weekend.
[Nexus 5 Q&A, Help & Troubleshooting] unsivil_audio:
This is

not

a good battery cycle.
[Nexus 5 Q&A, Help & Troubleshooting] Darth:
Seems pretty good to me??
[Nexus 5 Q&A, Help & Troubleshooting] unsivil_audio:
Its on the borderline of acceptable to me. Location set to device, no GN. I can't tell if FB is a killer or not. I mean my wakelocks are under control (40 mins of that is listening to music). My battery life really seems to vary by the day with virtually no setup changes. I'm going back to location off today. We'll see if it helps.

v----This on the other hand was awesome...
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Nope, it's just a battery drainer since it constantly wants your location and other things that'll cause a wakelock. I have location completely nuked + denied permissions on Google Search and Google Play Services along with Google Now being disabled. Disabling the listening feature also helps a bit :good:
[Nexus 5 Q&A, Help & Troubleshooting] ColdFire InOx:
I have lost 5% battery overnight without touching my phone! 5% over ~10h. I've checked wakelock detector and there's nothing that stands out. Here are some screenshots, hope you can help me!
[Nexus 5 Q&A, Help & Troubleshooting] :
My friend....that's 0.5 percent drain per hour, that's good! Not bad. ;)

Case closed. ?
[Nexus 5 Q&A, Help & Troubleshooting] ColdFire InOx:
Oh, okay then! Thanks!!
[Nexus 5 Q&A, Help & Troubleshooting] Andypandiiee:
http://m.imgur.com/nnrVdWU,Wi3fVk0,CRklsKV,kFRz1HF,YVFdL2W,tnp35If,iYXe9Nc,HoJ5oin

Just a few things to note, this was from 90% and com.android.systemui took 26% of my battery in comparison to screen (25%). I usually get around 4-5h sot but getting ~2h was a first.

Cheers
[Nexus 5 Q&A, Help & Troubleshooting] A1ps:
It was a clean install followed by a boot unlock and root. But running stock ROM and Kernel.
[Nexus 5 Q&A, Help & Troubleshooting] Aadilnz:
Fair enough, I just clean flashed Carbon with Banks' latest gapps and my excessive nlpcollector wakelocks are gone even with network location (battery saving/High accuracy) + all google now features enabled, gives me some peace of mind knowing I can use Cerberus if I lose my phone and it falls into the hands of someone who isn't an expert thief, and I also use Google Now for reminders a lot :D
[Nexus 5 Q&A, Help & Troubleshooting] Sharpie24l:
I went as far as to try and track down the wakelocks. One by one disallowing keep awake for everything related to ok google everywhere. Turned out, in my case at least, that its not one or two things but google search, play services, google+, the phone app itself and play music all take turns keeping it awake. I know the last two seem strange but if I turn off ok google everywhere they stop keeping it awake. Too much drain for me I was losing 8%/hour with it turned of idle the whole hour.

And if course disabling the keep awake breaks everything that has to do with google if ok google everywhere is enabled.
[Nexus 5 Q&A, Help & Troubleshooting] MulchShake:
After I got the 4.4.4 update my idle battery life has been destroyed. Over night with the device in what should be a total sleep state I lose 20-30% battery. I have tried a clean flash of 4.4.3 and 4.4.4 and they are exhibiting the same behavior. I have not gone through and tried installing apps one per day, but that is the next step if I have no other choice.

I have Google+ and Google Now disabled. Locations off, screen brightness minimal (though this drain is happening when the screen isn't on anyhow). I have data turned off as at my current location I have WIFI.

I apparently can't put pictures into the post so the below are imgur links.

imgur.com/3eP7cCv

imgur.com/2lFsmCP

imgur.com/louaDME

imgur.com/7UBJtkb

imgur.com/hhL9BxL

imgur.com/avVtp2

*Resolved*

I flashed the 4.4.2 radio from Google onto my 4.4.4 install and I am no longer experiencing the drain.
[Nexus 5 Q&A, Help & Troubleshooting] :
Oops....free thanks. Lol

But, your links don't work. Without screen shots from gsam, can only guess.

Based on what you've said, maybe you have the router issue. That can drain phones bad. Put the phone in airplane mode when you sleep next and see what happens. ;)

If its still bad....its an app.
[Nexus 5 Q&A, Help & Troubleshooting] MulchShake:
I can't post clickable links until I have 10 posts apparently. You can copy paste those URLs as they are valid hosted images on Imgur. As for the router I can't rule that out, however I haven't made any changes to my router in months.
[Nexus 5 Q&A, Help & Troubleshooting] :
Entertaining ATM....I'll look at links on morning.

For now, try airplane mode over night....see what its like. ;)
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
[MENTION=4036181]KJ[/MENTION] My battery life is bad, not sure why ;) Screenshot was taken with 2% left
[Nexus 5 Q&A, Help & Troubleshooting] :
You're screen used it up. Lol
[Nexus 5 Q&A, Help & Troubleshooting] ajaxcbcb:
Undervolting

undervolting has potential to crashing. so isnt it the same with higher voltage with less crashuing :cyclops:
[Nexus 5 Q&A, Help & Troubleshooting] Andypandiiee:
What do you even do with your phone? Just leave it on lowest brightness and on the homescreen? :P
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Surprisingly, no, I'm using auto brightness with modified values (some ROMs have it changable taken from CM, using Lux or whatever app to do this uses more battery) and its mostly Tapatalk, Twitter and random browsing.

---------- Post added at 04:21 PM ---------- Previous post was at 03:42 PM ----------

Undervolting doesn't increase battery life in any real noticeable way, difference would be like 1% lol. It's done to reduce heat during intensive processes, not to save battery.
[Nexus 5 Q&A, Help & Troubleshooting] whisky_:
@KJ,

Can you please look at my thread and help me out? I can only wish I had battery life like yours.

http://xdaforums.com/google-nexus-5/help/wake-locks-t2806683
[Nexus 5 Q&A, Help & Troubleshooting] MulchShake:
I was able to resolve my issue by flashing the 4.4.2 radio onto my 4.4.4 install. I am not sure what actually changed but something in the new radio isn't compatible with my WIFI and or cell service.
[Nexus 5 Q&A, Help & Troubleshooting] shohag2018:
Noob here, does this look normal to you?
[Nexus 5 Q&A, Help & Troubleshooting] Parideboy:
Need more specific screenshots. Install GSam and post the screenshots showed in the firsts posts [emoji106]

Inviato dal mio GT-I9505 AICP 5.0.2
[Nexus 5 Q&A, Help & Troubleshooting] Bei60:
All are greenified. Settings are set properly for no notifications
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
By looking at app wakelocks instead of kernel wakelocks
[Nexus 5 Q&A, Help & Troubleshooting] Parideboy:
Where exactly?

Inviato dal mio GT-I9505 AICP 5.0.2
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
"Time held awake"

"Num times waking device"
[Nexus 5 Q&A, Help & Troubleshooting] Primokorn:
likewise :(
[Nexus 5 Q&A, Help & Troubleshooting] Falco33:
Here are two GSAM screenshots. Pictures were taken when I haven't put the phone on the charger. Phone randomly shut down, and it somehow got some extra juice.
[Nexus 5 Q&A, Help & Troubleshooting] :
Works on my M8. I know it's never worked on the wife's moto X on kit Kat. No idea why. :confused:
[Nexus 5 Q&A, Help & Troubleshooting] :
Not sure about the reboot and suddenly extra juice after. You could try draining your battery til the phone dies on its own. Then charge it fully before powering it on again. That's been said to "recalibrate" the battery...

And for other issues, 30 minutes of stats isn't enough to help. Try going from 100 to about 10...then take screenshots.
[Nexus 5 Q&A, Help & Troubleshooting] moseso:
Google Play Services has become a Monster!

Rooted -- 4.4.4 --

I've had completely adequate battery life since I got the thing in November of 2013 -- until last Sunday.

Now,suddenly, Google Play Services tops the app sucker list. It also "unfortunately closes" a lot. All new behavior.

Can anyone help me return my phone to the way it was last Saturday? Gsam pics, below.

Also note, in the Android battery graph, all the awake time that does not correspond to screen-on time.

[Edit] I just restored a Nandroid from Feb. 10 -- days before any of this started -- and I am not going to update any of the apps that have updated since then.

Within a minute of booting-up after the restore, I got the "Unfortunately Google Play Services has stopped" error. I never saw that before, until last Sunday. /[Edit]
[Nexus 5 Q&A, Help & Troubleshooting] Falco33:
I don't think that will fix the issue, but I will try. And post new screenshots later.
[Nexus 5 Q&A, Help & Troubleshooting] :
Well honestly, the device just shutting down could be a bad battery... But usually it's not. It's an app issue, or rom or mod issue... Or a hardware issue. I haven't seen many posts in my time that a battery caused such things. ☺
[Nexus 5 Q&A, Help & Troubleshooting] Falco33:
It's stock, not rooted.
[Nexus 5 Q&A, Help & Troubleshooting] MrObvious:
When did this start? It could be a bad battery or an app. Try clearing cache (can be done from stock recovery) and see if that helps.
[Nexus 5 Q&A, Help & Troubleshooting] Ivan_282:
Help me!
[Nexus 5 Q&A, Help & Troubleshooting] :
Please Read post 4 very carefully. ?

More screen shots and from a far longer time.

?
[Nexus 5 Q&A, Help & Troubleshooting] Ivan_282:
That I can do about this problem ?
[Nexus 5 Q&A, Help & Troubleshooting] :
I'm sorry, but without at least a few of the recommended screen shots, and from a longer period of time... Hard to help.

It does seem your device was being used the entire time it's been on. Depending what you are doing on it, you may not have an issue at all.

And running benchmark apps will drain your battery quickly.

Please read posts 1, 2 and 4 carefully and after considering some tips from post 2...please post screen shots from a normal day... Not after leaving the screen on the whole time and using the device solid.

Go from 100 percent to about 15 percent left and do screen shots. From normal use... As you would any typical day. And please post as many recommended shots from post 4 as you can.

Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] Ivan_282:
Look this
[Nexus 5 Q&A, Help & Troubleshooting] Falco33:
Here are new screenshots as promised.
[Nexus 5 Q&A, Help & Troubleshooting] :
Need to see app wakelocks. Kernel wakelocks too maybe. I don't have time to read back... But if you're rooted, please post times waking device and held awake time from gsam, in app screen. (the drop down)

If you're not rooted, try wakelock detectors pc version.

Your device has way too much awake time for only 8 hours.
[Nexus 5 Q&A, Help & Troubleshooting] Falco33:
It's not rooted. I will try the PC version and see if that has anything useful.
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
Your screenshot shows that the screen was on and the phone being used during that time. Not sure why you thought the screen wasn't on then but you can see a long period of idle followed by usage which is what the graph is showing a drop in battery for.

Try clearing your storage cache. This can be done through the Settings > Storage > Cached data and rebooting. This trick has solved abnormal Google Play Services drains for me in the past, specifically after doing software updates. A Google employee's twitter account recommended it and it has been my go-to ever since.

Taking battery measurements after using a benchmark application (such as AnTuTu) is useless. Benchmark apps are designed to push the phone further than under normal usage and has zero regards for your battery life. Please try again after typical daily usage and not from while you're still testing or setting up the device. Also uninstall Battery Doctor, battery saving apps tend to do the opposite of what they promise.
[Nexus 5 Q&A, Help & Troubleshooting] porman:
Would you consider Greenify a battery saving app? And is it counterproductive as most of the others?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Most other apps just blindly kill everything (doesn't prevent further possible wakes, which means some stuff will start up and get killed over and over) and shut off wifi/data/location/etc

Greenify lets you choose apps to hibernate (kill, but also prevent it from causing a wake until opened again), and doesn't touch anything else.

Greenify can potentially be counterproductive if you abuse it and just hibernate everything, especially the things you use most.
[Nexus 5 Q&A, Help & Troubleshooting] porman:
Yes, I understand as much as hibernating stuff you frequently use would use juice to power them up all the time. I found out that the Facebook app restarts itself out of hibernation. I don't use the Facebook app anymore though.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
If you don't have root access/Xposed, Greenify can act a little weird sometimes. Personally I hardly use it anymore, I only hibernate things that I specifically don't want running unless its opened lol.
[Nexus 5 Q&A, Help & Troubleshooting] :
If you don't use it, uninstall it. ?

But, if not... Do you have Facebook messenger? If it's not greenified too, it will wake Facebook from hibernation.
[Nexus 5 Q&A, Help & Troubleshooting] porman:
I only have Facebook Messenger, since it's essential to my daily group chat with my band members. I don't hibernate that, but it doesn't show any weird usage patterns anyway. Guess I'm one of those who haven't had an issue with it.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Facebook Messenger and Facebook are like Hangouts and Google Play Services - the former will always wake the latter, possibly even if you have the latter Greenified.
[Nexus 5 Q&A, Help & Troubleshooting] Thakis:
Extrem Battery-Drain with Euphoria

At first, sry for my englisch, it isnt my mother tongue, but i hope you will understand me ;)

Since I use Euphoria with different kernels, I have always batterydrains over night (maybe also over day, but I recognize it at night at most) , but I dont know why.

Only with Catalysm and ElementalX i didnt have this problem, but I want to use Euphoria.

At the end I added a picture with combined screenshots.

I hope this data can help you to give me an answer for my problem.

I had the same apps during Catalysm and Euphoria, only Gravity Screen is new.

But I don't think that Gravity is the big problem, isn't it?

If you know something, say it pls :D

Ps. I cant post this question in the Euphoria-thread, because I didnt post 10 times till now :/

Edit: and you can see on the 7th screen that my battery loading up to 100% in ca. 1 hour with 5V and 1,2A, is this a normal time?
[Nexus 5 Q&A, Help & Troubleshooting] Ivan_282:
What can I do?
[Nexus 5 Q&A, Help & Troubleshooting] :
Sir, please read my previous posts again to you.

More details of why you're phone screen is on constantly and any other details on your usage would he helpful too.

I realize we may be experiencing a language barrier here, but do far I personally can't suggest anything. You haven't supplied to screen shots and information I've asked about.

Sorry.
[Nexus 5 Q&A, Help & Troubleshooting] Falco33:
Here are new screenshots of the wakelocks. I fully charged the phone, and it went to 5% in 3h 30m.

http://gyazo.com/57da334e9dc89e9ae3aa49df40eede52

http://gyazo.com/63668034eba951e6ec060a05128d6448

http://gyazo.com/4fa632fa327808d70cd61a4e9ff98488