yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] mcdsmaster8824:
Hello - I just stumbled across this thread and won't have screenshots until Tuesday, but I can pretty accurately describe what's going on (not much of a forum contributor, but I lurk a lot and know my way around Android).

I've recently gone back to school and Google Play Services has gone nuts on me, but only when I'm in the building (battery is fine literally everywhere else I go).

Getting the following results from GSAM, Wakelock Detector, and stock battery stats. I'm currently running Mahdi Rom with FK, but had the same issue with Purity and Slimkat.

-40-60% Battery Usage from Google Play Services

-In only 4 hours off a fresh charge the phone will be awake more than 50% of the time (10-20 min SOT, with 2+ held hours awake).

-In 2 hours I'll drop at least 30% when it is theoretically in "standby"

Radio signal is average to poor in the building (although the wi-fi connection is fine), but that's no different than when I'm at apartment (typically between -90db and -105db on HSPA+/LTE and my standby time is great there).

I've experimented with the following:

-Disable GN

-Location settings high/battery/device/ and off altogether, I've tried them all.

-Used privacy guard to deny "keep awake," "wake lock," and "location access."

-Remove and re-add my google account as I thought I had it narrowed down to a sync issue, no change.

-Greenify only the apps that have wakelock issues (I don't have many of those anyway).

-Ensured all apps are up to date.

-Restarts, clearing cache, factory reset.

Ultimately it comes down to the fact that something at that specific location is causing Google Play Services to go haywire. My typical setup has Google Now enabled, location services on high, standard AppPermissions, Greenify a few apps, solid wi-fi signal, average data signal, and I have NO issues with battery life...except at school.

Occasionally I head to the basement to get books from my locker (no more than 5 minutes a day) and I'll temporarily lose signal, but it returns once I head back upstairs. Is it possible that short signal loss causes Google Play Services to misbehave and then never get back on track despite return of signal and me rebooting the device?

Any idea why one specific location would cause play services to go nuts?

Thanks for any help and I'll be happy to supply more information if I can.
[Nexus 5 Q&A, Help & Troubleshooting] :
To be clear.... Is this happening on data or WiFi?
[Nexus 5 Q&A, Help & Troubleshooting] mcdsmaster8824:
Edit: To clarify, I've tried disabling data and going only wi-fi, and also tried turning off wi-fi and using data only.

Both :eek:
[Nexus 5 Q&A, Help & Troubleshooting] :
Would need to see just about every screenshot in post 4 then. If it were Google just acting up, it wouldn't be location dependant, it would be always.

Low signal on data can be the worst battery killer out there. And there is a WiFi issue with certain routers or network setups.... But seems unlikely you'd have both those problems. But you very well could.

Especially need to see your radio screen, kernel wakelocks and held awake time and times waking device. All from gsam. As well, make sure you have gsam root companion, or most of those won't be available. ?

And as stated in the thread... Go from 100 to about 10 percent first, then take screenshots. And don't reboot, or Gsam will reset.
[Nexus 5 Q&A, Help & Troubleshooting] mcdsmaster8824:
Will report back next week. Thanks!
[Nexus 5 Q&A, Help & Troubleshooting] surrealjam:
Every now and then, WiFi becomes the main battery hog using around 10% overnight. The only thing that will fix it is a reboot after which idle drain goes back to about 2 or 3% overnight.

I am 100% stock 4.4.4, unrooted and this issue is really annoying. For reference, location services are switched off and this occurs on any WiFi network I connect to. I've tried the usual stuff like disabling WiFi scanning always available and switching off WiFi notification but nothing helps - once this issue starts a reboot is always needed.

Any suggestions welcome though I've done a lot of reading on this subject.
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
Doesn't look too bad since there was some usage in there, but you could try playing with the WiFi Optimization option and see if it helps.
[Nexus 5 Q&A, Help & Troubleshooting] Andypandiiee:
Hey, could you give me some tips on my battery please? I've literally turned everything off, used disable services. I used to be able to get 5-6 SOT in a day, but now I'm getting 3-4 SOT in a day. I'm running Mahdi ROM with Franco R61. Cheers man :)

http://imgur.com/5r3gnl4,Wh7wdUr,Zjkeiiz,VnTYg17,59AD49s,Xqunvv7,Qgbap9l,RJpu4FW,QZdmWeE
[Nexus 5 Q&A, Help & Troubleshooting] swat4samp:
I use default kernel with mahdi and i get 5-6hours SOT on average. My usage is normal, tapatalk, browsing, games for 1-2 hours max, youtube, music. I never use autosync and apps like fb, g+ etc. I guess viber drains battery the most but not sure.
[Nexus 5 Q&A, Help & Troubleshooting] :
Please see post 4 for appropriate shots. Yours don't give much clue to anything. And Gsam is preferred.

3 to 4 can be completely normal. Perhaps your usage has changed?

And with Gsam, you need gsam root companion as well. Go from 100 to about 10 without rebooting, then take shots. You can just post the shots here, instead of linking. Unless your under 10 posts. ?
[Nexus 5 Q&A, Help & Troubleshooting] Andypandiiee:
I'll give the default kernel a shot. Do you use features such as lockscreen notification and heads up drain? Do you know if they use a lot of battery? and what is your screen brightness majority of the time? Cheers for the help man :)

Alright, I'll do that. Cheers for the help :)
[Nexus 5 Q&A, Help & Troubleshooting] swat4samp:
I use only heads up and it never has much impact on battery although you can see high usage of systemui on battery stats. And for brightness, i use it as low as possible. Battery drain mainly depends on wakelocks. If you control them, you are the boss :cool:
[Nexus 5 Q&A, Help & Troubleshooting] :
I'm not saying that there couldn't be improvement for you but you are definitely reading the battery screen wrong. You lost 8% over night and WIFI accounts for 21% of that. In other words WIFI used 1,68% of your battery over night, not 8-10%.

And to my suggestion to help: have you tried resetting your WIFI router? That actually helps sometimes even if it sounds useless.
[Nexus 5 Q&A, Help & Troubleshooting] surrealjam:
Thanks for your feedback. Sorry, I wasn't suggesting WiFi used 10% of the battery but just that - since I have used Android for around 4 years, I've never known WiFi to feature as the first or second "most used" on the battery usage. It's normally 4th or 5th with small percentages... I also have the same thing on my WiFi at home and at work which use two completely different set ups.

I think I'm going to wait till Android L is out before losing any more sleep over it anyway, especially as I am not rooted and getting more detailed stats is going to be next to impossible.
[Nexus 5 Q&A, Help & Troubleshooting] :
I get you. If you get the same problem with two different WIFI setups then I'm almost inclined to believe it might be a hardware issue. And yes, thanks to Google, detailed battery information is impossible to get without root :( Thankfully in L there are lots of improvements in this area so maybe we can help you better then :)
[Nexus 5 Q&A, Help & Troubleshooting] surrealjam:
Cheers for this.

I followed the "non root guide" for Wakelock Detector and grabbed the attached screen shots. Hopefully you can see in the main battery stats graph capture that the drain suddenly takes a turn for the worse... interestingly, Android OS now is at the top of the list so perhaps this issue is actually different! So many variables it's like chasing your own tail...
[Nexus 5 Q&A, Help & Troubleshooting] Andypandiiee:
Just a question, do you guys bother with disable services, app ops or clearing recents to save battery? Cheers.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Disable Service can help with location and sync wakes. App Ops for disabling permissions in general as well as helping prevent wakes. Clearing recents won't make any difference, its Android.
[Nexus 5 Q&A, Help & Troubleshooting] swat4samp:
Clearing recents does affect battery to some extent. When the app is residing in memory, it won't take much CPU cycles to open the app. But once you clear it, it takes more CPU and thus causes a slight battery drain. I always disable rogue services which often causes wakelocks. I don't know app-ops does good to the battery.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Yeah, clearing recents too often is similar to Greenifying every single app and opening them all often. Drains more than saves (probably saves none in the first place if they don't even use a wakelock)

App Ops doesn't affect battery at all, if it does then it's indirectly, via blocking something like location or the wakelock permission.

Have to love disabling services, lol. Disabling too many/wrong ones can be harmful though (e.g. breaks things, or one service looks for another and keeps your device awake trying to call it when its disabled).
[Nexus 5 Q&A, Help & Troubleshooting] swat4samp:
Lol yeah, it sure does. I still have no idea what does checkin and event log services do :silly: But, no harm whatsoevere after disabling them. If it looks stupid but it works, it ain't stupid lol
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
No harm in leaving them enabled.. So I leave them enabled and they've never run. Lol.
[Nexus 5 Q&A, Help & Troubleshooting] swat4samp:
Not for me. It always wakes up my device very often. That's the reason i disable them. I guess most of us are facing that. You can see them in bbs thread.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
No reason it would, but oh well then. :p
[Nexus 5 Q&A, Help & Troubleshooting] :
Android OS is typically high if you have location on, and a slew of social apps, as I see you have.... If you don't use the phone much. The more you use the phone, Android OS should drop. So those screens don't really show an issue to me. You barely used your phone, so there's no competition for Android OS so far in the Battery stats.
[Nexus 5 Q&A, Help & Troubleshooting] surrealjam:
Yeah, I'm just not sure why at about 4 hours in the idle battery drain per hour has pretty much doubled without anything really changing. After a reboot, the drain can sometimes be as low as 1% per hour on idle. If it's 2% I'm OK with that (I'm not going to care if my battery is at 50% after a full day) but when it hits 4% an hour on idle that means, without use, it's almost dead after 24 hours.

Again, it seems diagnosing the problem is pretty tough.

Edit: for reference, location and location history are turned off.
[Nexus 5 Q&A, Help & Troubleshooting] ryukiri:
Is anyone experiencing that CAF ROMs don't sleep as well as AOSP ROMs? I've been testing for weeks on various CAF ROMs like PAC, AOKP, AICP, and CM and they lose approximately 11-13% battery overnight. On the other hand, I've tested Carbon (before it switched to CAF), PA, Purity+, and slim, and they only lose 3-4% overnight. On all my tests, I have WiFi on, GPS off, Google now off, sync on, and I've checked wakelocks to make sure no apps are keeping the phone awake.
[Nexus 5 Q&A, Help & Troubleshooting] :
Try Gsam and the screen shots that are recommended in post 4. After running from 100 to about 10 percent left. And no reboots, or Gsam will reset.

That will paint a clearer picture. ?

Or if it's only standby drain bothering you... Again, the screens from Gsam (with gsam root companion installed as well)

Charge to 100 right before bed.... Take screens in the morning.

If you aren't rooted, then it will be far harder to diagnose the issue.
[Nexus 5 Q&A, Help & Troubleshooting] jj14:
Unexpected battery drain

Hi!

This one is kinda baffling me, so I thought I'd ask the experts :)

I have a Nexus 5 - rooted, stock ROM/kernel. Xposed with Gravitybox/XPrivacy.

Every night, I charge my phone up to a 100% before I sleep, and remove it from the charger, reboot, and then turn data (mobile/WiFi) off, and put the phone aside for the night. I wake up to the phone showing about 97-98% (every now then, usually following a play services update, I may wake up to a lower battery level, but a reboot usually fixes that - it is pretty rare though)

Lately (past week), I've noticed a problem - twice. Everything is the same, except I switched over from Sprint (CDMA) to T-Mobile (GSM). Signal strength was/is pretty good, so I'm not sure this issue is related to the carrier switch, but nothing else has changed.

Issue: With the same scenario described above (full charge/reboot), my battery was at about 75% when I woke up. No usage overnight. I don't see any awake times, or screen-on times, or low signal strength. What am I overlooking?

In the screen prints below, I neglected to take Times waking device.& Time held Awake in GSAM, but you can see in the other screen prints that the phone was not awake the entire night.

All screen prints (including GSAM) at http://imgur.com/a/LyMtg (xda didn't let me upload all of them to this one post)

Edit: This doesn't happen every night - but since I switched over to T-mo last week, it has happened twice
[Nexus 5 Q&A, Help & Troubleshooting] bpaulien:
Hopefully it's OK to post here, even if I have a different phone. I'm running the HTC EVO 4G LTE and I don't get terrible performance, but just wanted to see what you think. Actually, what I really want is to put my sleep time stats since it drains around 1.5% / hour and I know (or at least suspect) it can do better than that. But I'll have to do that later as I don't have any sleeping stats to share at the moment.

Anyway, here's some screen shots from this weekend. I didn't actually use it that much but I do notice quite a large discrepancy between awake time and screen on time.... See Gsam screen shots below:

I'm doing this from my phone so hopefully it will work right...
[Nexus 5 Q&A, Help & Troubleshooting] :
Try leaving data alone and WiFi on. I see nothing bad in your screen shots. No need to turn off data if you leave WiFi on, it's automatically disabled by WiFi. See what happens like that.

You shouldn't need to turn off data and WiFi for good standby.

If it keeps up, since the screen shots say nothing really.... You may want to clean flash the factory firmware and only restore a few apps a day. And if things suddenly go bad, it's gotta be an app you just restored that day.
[Nexus 5 Q&A, Help & Troubleshooting] :
Well, I don't know what decent average times are for your device.

But here's some suggestions to try... You do have 2 hours awake time almost. Is it music?

If not... E-robot, whatever that is, is waking your device many times. Greenify it or get rid of it. At least temporarily to see if things improve.

You have lots of GPS time, and a solid run of it. Were you using maps? If not, something is keeping it active. Disable location, enable when you need it... And disable again. On older phones.... You will see a big difference usually.

And you must have WiFi set to turn off with screen off. The amount of times you seem to turn your phone on... That's going to hurt more than help... Since it needs to connect over and over. Try leaving it on. But turn off always scan for WiFi, even when off. If you have that option. It's a bad drain.

That's all I can see from your shots. ?
[Nexus 5 Q&A, Help & Troubleshooting] bpaulien:
Yeah, the GPS was a weird thing because I had it turned on for 2 minutes trying to get a location fix for my weather app, and then turned it off. So I'm not sure why it was showing up for so long. I always have location services turned off except when I need it.

I guess it must be different turning off via the quick settings menu than the regular location services settings. I'll have to experiment with that and maybe ask about it in my ROMs development page.

Anyway, thanks for the suggestions. I'll see what keeping WiFi on always does. I always figured it used more battery being on when not needed, but your explanation sounds reasonable. I'll give it a try.

And I'll turn off e-robot to see if it is what was making the thing stay awake so much (I wasn't listening to music )
[Nexus 5 Q&A, Help & Troubleshooting] nokiagye:
Kj the gsam is perfect so I have big problem with my battery 95-15% on screen 2 hours max . with a little tube web and maby one two games
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
That hardly tells us anything..
[Nexus 5 Q&A, Help & Troubleshooting] nokiagye:
Ok I'll post photos now it charging 2-3 times on a day...?
[Nexus 5 Q&A, Help & Troubleshooting] jj14:
Thanks [MENTION=4036181]KJ[/MENTION]

I usually turn data/WiFi off overnight because I really don't care about Emails/etc at night. If there's something urgent, somebody will call me :)

I was thinking about flashing the factory firmware and restoring a few apps a day too, but not sure if that's going to address the issue - here's what I was thinking: If it was a rogue app, it should at least show up in the GSAM results... here, nothing seems to show up, yet battery is draining more than usual.

And while I can't see why it would matter, this started right after I switched over from a CDMA carrier to T-Mo. I didn't think a factory reset was in order - it should have just switched over, no?

As a last ditch option, I will try flashing the factory images again. The only app/App-data that I care about is the Google authenticator codes, and I will use backup from Titanium Backup.

Maybe I should try wiping the cache/dalvik in TWRP first? I'm stumped... :(
[Nexus 5 Q&A, Help & Troubleshooting] UltimHero:
Hey guys . my n5 is 100% stock and I've never got more than 4 hrs on average or more use . is it normal ??

PS : I don't use data at all only WiFi
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
4 hours screen time is about average.

ふかつどう
[Nexus 5 Q&A, Help & Troubleshooting] surrealjam:
It depends how much standby time there is on that. If standby is less than, say, 10 hours I'd say that's fairly poor. If standby is 15+ hours then that's good.
[Nexus 5 Q&A, Help & Troubleshooting] Mindspin_311:
Ok, what are these? I noticed these after a 17m phonecall.

GCN_CONN

*net_scheduler*

Checkin Service

Checkin Handoff
[Nexus 5 Q&A, Help & Troubleshooting] spark2331995:
this question of mine is irrelevant of this thread ...

my device is htc one x not nexus 5 but i need help about the drain as no one was able to help me out in one x thread and i found this thread and i think that maybe you people can help me

i have issue that com.android.systemui is draining more battery then it should no matter which kitkat rom i use the problem doesnt exist in jellybean for me.

if you people can/want to help me then i post further details and screenshot as mentioned by op .

if not, then too no issue as atleast i got to know more about battery saving tips :)
[Nexus 5 Q&A, Help & Troubleshooting] Deeco7:
What's the best FKU settings for improved battery life without a compromise in performance?
[Nexus 5 Q&A, Help & Troubleshooting] askor:
Hello, I have a problem with my battery life. I don't use sync, location and report location off, google now off, I'm setting brightness manual (almost time between 10-20% of brightness), settings in WIFI like scanning off , data off (most time on 2g with good signal strenght, sometimes use data and 3g when I want to check something outdoors). I'm almost not playing games and I can't get more than 3,5-4h of SOT with ~12 hours from 100-15% battery. I think I should get much more when I'm looking and results in this topic (something like ~30h from 100-15% and about 5h SOT)

I made full wipe in WUG toolkit, install fresh Slimkat 7.8 + Elementalx 1.05 (almost all stock , I disabled only all options like dt2w, something like sweep2wake/sleep, I don't remember, but generally all for great battery life). Full wipe and fresh instalation don't give me what I want.

Could someone look at my logs from Android battery, Gsam, Wakelock detector and betterbattery stats? Everything (in wakelog) looks ok, but I saw "wlan_wake" problem because it hit 565026 times. I think it's HUGE ammount and I think it is not normal.

LINK TO SCREENSHOTS: http://imgur.com/a/h58x2#UvcSv7H

I hope someone help me.

Best regards.
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
Post your shots. I'll take a look.

#StayParanoid
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Hey guys, is this any good?
[Nexus 5 Q&A, Help & Troubleshooting] askor:
Dude, look at mine post (2 post up) and bless your phone ;/
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
[MENTION=4858937]jd1639[/MENTION] Is trolling. -____-

#StayParanoid
[Nexus 5 Q&A, Help & Troubleshooting] :
It's OK I guess. ?

The show off thread is in General. ?

?
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
I thought this was it:)
[Nexus 5 Q&A, Help & Troubleshooting] :
My screen shots are for samples of what to post. ?

Perhaps start a thread in XDA Assist for help finding the other thread. Lol

(K.... That is a joke, don't do that... Lest you and me both be Judged) ?
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Wow, tl:dr but you don't need a custom Rom or kernel. See my post a few up from yours. That's stock rom and kernel. Also running exposed. no greenify but op apps to control Google services,etc. It's your signal strength, how you set up the device and how you use it.
[Nexus 5 Q&A, Help & Troubleshooting] :
Well, want to see a huge difference? For one day, freeze all your social apps. Including instagram and anything else Web related. For chat, pic uploading, social boards... Anything.

bam wakelock is your data being hammered by all these social apps.

Is location services on? That will make things even worse.

Doesn't surprise me if your past few devices all had similar issues, it's because your setup and usage is the same on all of them. Your setup is probably many services running, and your usage seems to be social app heavy. Both those will reduce your battery life a lot.

Go one day with all those social apps frozen with titanium backup... Or at least greenified. all of them .

I am confident you will see a huge difference.

As far as a long term answer goes, there isn't one. Your setup and usage are battery unfriendly I'm afraid.

Also, if you are ever on data with a weak signal.... All those social apps will just destroy your battery in a hurry. And that will never be shown in any battery Stat app. It's the silent killer. ?
[Nexus 5 Q&A, Help & Troubleshooting] :
Just noticed your held awake from Spotify. It's notorious for stealing battery life too.
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
[MENTION=4165750]fba9398[/MENTION]. OK I look at your 1st 2 days. And I already see why you only lasted 12 hr vs 16 on the 1st day. Look at the main GSAM page for Day 1. You see your awake time and awake time for the 2nd day? BIG DIFFERENCE! That awake time on your 2nd day killed you. And it was because Google Play Services wakelock and Tumbler/FB wakelocks. G Play Services on the 2nd day held your phone awake for an hour by itself. The Facebook added onto that as well.

I'm not going to waste my time comparing the 3rd day. You need to get rid of Facebook or freeze it when not in use. It's so badly coded Google should ban it. I'm serious. It exploits Location and keep awake/wakeup permissions like crazy. If you need alternatives for FB use "Fast for Facebook". I recommend just using your mobile browser though.

Also follow our recommendations for killing GSF and Play Service Wakelocks. They can eat battery.

TL;DR Its your setup. Not the XPosed Framework or any kernel/ROM. It's the setup. The Stats are there to prove it. Your Apps are eating your battery alive

#StayParanoid
[Nexus 5 Q&A, Help & Troubleshooting] fba9398:
Ok, tomorrow I'll greenify all my apps and post the screenshots tomorrow! Thanks a lot!
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
Be careful with Greenify. Don't go crazy. It may cause your Android OS battery usage to skyrocket. Don't Greenify apps you use too often.

In other words freeze your social apps when not in use. Much better solution IMO.

#StayParanoid