yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] :
[MENTION=5666997]Elluel[/MENTION] [MENTION=4828464]Sandman-007[/MENTION] [MENTION=5530350]bblzd[/MENTION]

See time held awake screen and the main gsam screen above? Seems some of you N5 folk have a bug with Gsam. Held awake screen is wayyyyy off the main screen reported held awake time. I've never seen this before. And it doesn't do that on my M8, Moto X or N7.

Making our jobs here tough. Lol

Though the stock graph seems to agree with Gsam main screen. Very strange.

And to the member I quoted here, I see no issue for you... Assuming the held awake screen is not reporting correctly. With your social apps, gaming... And perhaps other setup items you may have... 4 hours screen time seems pretty good to me.

According to the held awake time screen... You can see some apps at the top that could be issues.... But I think that screen isn't reporting correctly for some reason.

But according to the main screen from gsam, and your stock graph... You don't have app wakelocks.

Either way... I think you're doing pretty good here. Is it too late to see BBS app wakelocks from that same time frame? See what it says. Gsam and the N5 (or certain roms or Lollipop or something) may have a reporting bug.

?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
He was using the device most of the time so the wakelocks were hardly in effect while the screen is off.

Maybe the main screen just shows how long it was kept awake while the screen was off (hence "held awake"), and the wakelock screen just shows how long the wakelocks were active, including while the screen is on.

I never really paid attention to it myself.
[Nexus 5 Q&A, Help & Troubleshooting] :
I definitely think that's what is happening. But none of my devices report like that. They all report screen off held awake time. So did my N5 previously.

Very strange. Mixing held awake time with screen on or off totals isn't very helpful finding issues either. ?
[Nexus 5 Q&A, Help & Troubleshooting] :
Here's mine taken right now...
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Notice Shuttle+ was playing music for longer than the main screen reports held awake.

Main screen = time held awake (while screen off)

Wakelock screen = total wakelock duration (regardless screen on or off, wakelocks can be active while screen is on but obviously doesn't have discernable battery usage)
[Nexus 5 Q&A, Help & Troubleshooting] :
I hear you! I've still never encountered this til now. And I guess that would say that my 5+ hours of use were apps that caused no wakelocks.

I think something has changed with this. And not for the better. The member above for example... If he had say 2 1/2 hours of wakelocks on main screen... It would be impossible to find the culprit in his held awake time screen.

Shakes my faith and praise of gsam. I may need to incorporate wakelock detectors into the recommended shots.... Especially since it can do Non rooted devices.

Still not a BBS fan. Lol
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Again, I never paid much attention to the durations in apps. I prefer Android's battery graph for the duration, then the apps only to see what specific wakelocks, not the duration.
[Nexus 5 Q&A, Help & Troubleshooting] :
I am likely going to do some playing, and tweak things here. I don't think wakelock detector behaves the same.... And also it can view Non rooted app wakelocks. Maybe a mixture of stock shots and wakelock detector is better for issue tracking.

And a quick explanation of the pc version for Non rooted help.

?
[Nexus 5 Q&A, Help & Troubleshooting] darebt5:
Hi everyone,

My Nexus 5 battery suddenly started draining very fast (5 months old phone) so after googling I found this thread. I installed the GSam app (pro version as well) but I can't find the view time held awake option. Has the app been changed lately, are there any other screenshots I can take so you guys can help me out, or maybe other app?

Thanks in advance
[Nexus 5 Q&A, Help & Troubleshooting] amir7777:
You have to install the root companion for gsam
[Nexus 5 Q&A, Help & Troubleshooting] darebt5:
I suppose the device needs to be rooted, which in my case is not. Is rooting necessary or can other screenshots help? In my case for example I have 40% next to screen and 25/15 at discharge while screen on/off. My brightness level is almost minimal, no adaptive brightness and screen timeout set at 15 seconds. So, do I have to root the phone now for best data?
[Nexus 5 Q&A, Help & Troubleshooting] :
Wakelock detectors pc version doesn't require root. ?
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
it is strange. however, I have no problems wakelock (remember the old results). the main problem are whatsapp, pushbullet and others that remain active ("keep awake"). I think to use the battery well: greenify, app opps, amplify ... but I have this problem. I do not know
[Nexus 5 Q&A, Help & Troubleshooting] EugeneFromRussia:
Help me with my nexus 5, please. Battery dying every night.
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
wake controls active? (dt2w, s2w etc.)
[Nexus 5 Q&A, Help & Troubleshooting] EugeneFromRussia:
No. (I know about them). I don't understand why phone can't sleep.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Some sort of sensor is active.
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
Ambient display or other....
[Nexus 5 Q&A, Help & Troubleshooting] Wh1t3Rose:
Actually yes. That wakelock is ambient display. Try turning that feature off over night. If the wakelock still doesn't go away then turn off adaptive brightness as well.
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
Here I am again.

My situation was here: http://xdaforums.com/showpost.php?p=59302234&postcount=2154

I still have not solved; I have here the screen that are better understood.

is a problem that I have only a few app; "keep active" is "keep awake".

I'm going crazy.

Thanks xD

PS: I have no problems kernel wakelock
[Nexus 5 Q&A, Help & Troubleshooting] eddie_gordo:
Guys I've updated today to Android 5.1 and now the GSam is force closing everytime I try to open it... Is this happening to you also, or is it just me?

Thanks
[Nexus 5 Q&A, Help & Troubleshooting] aukhan:
Here are the SS as mentioned from post 4 please look into it and see what is wrong.

Device Note 4

Custom Rom

Custom kernel

Gaming Nil [MENTION=4036181]Darth[/MENTION]

Powered by ET !
[Nexus 5 Q&A, Help & Troubleshooting] MrObvious:
Most of your drain aukhan is due to Google Play Services. I would check to see if location is on and disable that.
[Nexus 5 Q&A, Help & Troubleshooting] :
The guys helping you in your thread are doing just fine. ;)

Turn off Google now as they said and location services completely off too for now.

If a clean pa flash and all this stuff off still leaves you with bad battery on WiFi only......its your router waking your phone constantly. Its a known issue. You may need to try another router perhaps. Ask others what they use as far as new ones you can still buy in stores.

I don't know, I use my internet provider router/modem.
[Nexus 5 Q&A, Help & Troubleshooting] :
Not normal. Try with Google now off. If its still bad, then turn off location services as well to test.

That's the first steps. :)
[Nexus 5 Q&A, Help & Troubleshooting] shohag2018:
Already off :(
[Nexus 5 Q&A, Help & Troubleshooting] :
OK guys....look at this I found.

Last night I enabled the new "OK google from any screen" option, in Google settings, OK Google hotword detection.

Then after only after I woke up (didn't charge...I charged before bed) look what I saw....held awake time on Google search, which I've never gotten before.

So a couple hours ago I turned from any screen option off.....no more held awake time on search.

So guys with Google search out of control.....that might be the issue.

Too bad too....I liked that new feature, but Google gone messed it up.....again.
[Nexus 5 Q&A, Help & Troubleshooting] :
See my post above this one. ;)
[Nexus 5 Q&A, Help & Troubleshooting] shohag2018:
was ur fon's screen off the entire time?
[Nexus 5 Q&A, Help & Troubleshooting] :
Mostly off. Some on. I don't know when the held awake time was....but I do know that turning off the option fixed it.

Should've known battery would suffer for that feature. ;)

Needs to be in low voltage core like moto x.
[Nexus 5 Q&A, Help & Troubleshooting] shohag2018:
I switched off ok google and greenified swiftkey last night..overnyt battery consumption was 2%
[Nexus 5 Q&A, Help & Troubleshooting] yak84:
It only keeps awake while screen is on, you can see partial wakelocks "Audioin" showing in regards to google search.

If you only enable OK google in launcher then the wakelock will be the total time you have spent in the launcher.

It doesn't hold a wakelock while screen is off.
[Nexus 5 Q&A, Help & Troubleshooting] :
Yes, it only wakes when screen is on....but my battery was dropping faster than normal by far when I used my phone....every sound it hears, its listening to....forcing extra work on the NON low voltage core....therefore burning battery like a campfire marshmallow. ?
[Nexus 5 Q&A, Help & Troubleshooting] misterjoele:
Rooted Nexus 5

I feel like my battery life gets better and better as I use it!
[Nexus 5 Q&A, Help & Troubleshooting] :
That's a good thing! ?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Only halfway through lol :angel:
[Nexus 5 Q&A, Help & Troubleshooting] rancur3p1c:
mmm bit of a fresh look there what you got
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Hybrid Blue by rush25
[Nexus 5 Q&A, Help & Troubleshooting] Samip430:
Is this normal? I feel like I've only had light use today but huge drain...

On ElementalX
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Change camera apps to a user apps instead of a system ones, reboot

Some people have issues with camera drain and some don't, no ones sure why.
[Nexus 5 Q&A, Help & Troubleshooting] Samip430:
what's the best way to do that? Titanium?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Yeah :)
[Nexus 5 Q&A, Help & Troubleshooting] Asmodic:
Using Google now command will always use some battery consumption. Best option is to use a hardware key to use google now, for example long pressing the home key activates google now for me.
[Nexus 5 Q&A, Help & Troubleshooting] aukhan:
[MENTION=863481]MrObvious[/MENTION] I've disabled most of the service as mentioned in the 2nd Post today.
[Nexus 5 Q&A, Help & Troubleshooting] eddie_gordo:
Just to update you guys that after reinstalling the app it is fine now. Thought I'd share in case someone gets the same issue.
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
Recently having a battery life issue and I think it's related to the latest Google Play. The Systemupdateservices wakelock runs on all the time even when the phone is sleeping (or attempting to). I have tried to use autorun to disable particular services and will see what happens.

The Google Play package in question is the latest euroskank lollipop (05/03/15 - dd/mm/yy)

Anyone have similar issues?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
I covered completely disabling SystemUpdateService in post #3.
[Nexus 5 Q&A, Help & Troubleshooting] airbeeting:
One cuestion. Nexus 4 + cm12 20150311. My phone doesn't go to deep sleep during charge. Is this normal?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Post the recommended screenshots.
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
Is there an easy way to put those commands in? not working for me in terminal despite trying to su.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
What do you mean easy to way put them in?

With adb on a computer, copy+paste those lines.

With Terminal app on the actual device, use "su pm disable" instead of "adb shell su -c pm disable" for those lines.
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
The terminal app just replies disable: not found after typing:

su pm disable com.google.android.gms/.update.SystemUpdateService

this and with adb shell at the front.

I suck at this.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Try typing su, then hit enter, then pm disable com.google.android.gms/.update.SystemUpdateService
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
Awesome! Worked. Also just volumed up and W to make things that little bit quicker. Fingers crossed it fixes the update issue.

Do these settings revert after reboot?
[Nexus 5 Q&A, Help & Troubleshooting] aukhan:
[MENTION=5666997]Elluel[/MENTION]

Am I suppose Disable these ?

adb shell su -c pm disable com.google.android.gms/.update.SystemUpdateService

adb shell su -c pm disable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver

adb shell su -c pm disable com.google.android.gms/.update.SystemUpdateService$Receiver

adb shell su -c pm disable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver

adb shell su -c pm disable com.google.android.gsf/.update.SystemUpdateActivity

adb shell su -c pm disable com.google.android.gsf/.update.SystemUpdatePanoActivity

adb shell su -c pm disable com.google.android.gsf/.update.SystemUpdateService

adb shell su -c pm disable com.google.android.gsf/.update.SystemUpdateService$Receiver

adb shell su -c pm disable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver

(you can also just "su pm disable" via a Terminal app)
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
If you want to disable OTA services and it's possible wakelocks, sure.

---------- Post added at 11:51 ---------- Previous post was at 11:49 ----------

Make sure you do it for all the services/receivers or it could cause more issues than solve.

It should not revert unless something else is reenabling them.

pm means package manager, disable means disable.
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
I did it to all the ones listed in #3 so I assume it'll be ok. I also have used Disable service on some of the items in the OP. Will see how that goes.

According to BBS - SystemUpdateService is at 10mins atm.

PowerManagerService.Wakelocks are 27mins plus @ 87%.
[Nexus 5 Q&A, Help & Troubleshooting] aukhan:
@Elluel are these related to Play store or Play services?? or these are specific to only Nexus device ?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Not sure why it would be related to the Play Store.
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
Well, after a reboot it's the locks are back.
[Nexus 5 Q&A, Help & Troubleshooting] A1ps:
Hi guys, right, enough us enough and I need your help please.

My battery life is ridiculous. From the second I disconnect my phone from the charger, within 1 hour I am losing around 2-3% battery and that's with absolutely no use of the phone!

I'm using a rooted N5 with stock ROM. I'm not a gamer and not majorly into social media apps.

I have installed SmoothSync for cloud calendar and contacts. But these I have set to sync every 12 hours. My mail is set to fetch every hour.

Location reporting is On. Location history is Off.

Any help is greatly welcome.

Here are my screen shots as suggested in OP.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Nothing is wrong.

= 33.3–50 hours, isn't the worst considering your usage and location usage.

You have them installed. That is enough to cause a couple wakelocks here and there.

Location will always cause more power consumption.

---------- Post added at 22:13 ---------- Previous post was at 22:09 ----------

That isn't normal, as the services are completely disabled. Maybe Autorun or whatever you're also using is interfering.
[Nexus 5 Q&A, Help & Troubleshooting] A1ps:
Hi thanks for your help.

The screen shots I've attached are from non normal use as I'm home today. But when I go to work the phone is used very little - about 15 minutes max surfing a couple of WhatsApp messages. Within 12 hours I'm down to around 20-25% battery.

Would it be a better idea to post pics from a normal days use? Or would that not matter?
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Do you have poor signal at work?

Otherwise, your device is performing pretty normal for how you've set it up, not much you can do unless you change your setup (location, social apps).
[Nexus 5 Q&A, Help & Troubleshooting] hachoo:
I've uninstalled Autorun and then re-entered the commands. Works fine now. The PowerServicesManage.Display still is somewhat high, but otherwise it's pretty good.

No more SystemUpdateServices though!

Cheers
[Nexus 5 Q&A, Help & Troubleshooting] aukhan:
I would recommended you to greenify apps which are not being used by you.

I would recommend you to amplify a certain services.

use Tasker or macrodroid to automate things

Powered by ET !
[Nexus 5 Q&A, Help & Troubleshooting] patmann03:
So I'm having the wakelock issue with with the Update Service that others have been saying.

I ran the commands from the front page (all of them) to disable the service. I rebooted for good measure and I'm still at 100% awake.

I have version 7.x.x of the google play services which from what I've read is the culprit.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
The version of Play Services shouldn't matter. Maybe you have something else interfering with receivers like Autorun manager or something. Have you made sure it's actually SystemUpdateService?
[Nexus 5 Q&A, Help & Troubleshooting] airbeeting:
---------- Post added at 11:45 PM ---------- Previous post was at 11:41 PM ----------

Other snapshoot
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
I believe "pm8921" is the charging driver in the Qualcomm SoC in your device (Nexus 4). "eoc" means "end of charge". Starts around ~90% while charging, to slow down the charging rate (trickle charge) to avoid physically damaging the battery. It is normal, and would hardly have any effect (other than it's intended purpose) since it's being charged anyways.
[Nexus 5 Q&A, Help & Troubleshooting] aukhan:
[MENTION=5666997]Elluel[/MENTION] can I just copy and paste all at once will they run or should i copy every single line from Post 2 disabling services.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
It's post 3.

And you have to enter them one by one.
[Nexus 5 Q&A, Help & Troubleshooting] larryNice:
Just flashed Rastapop's 5.1 rom and trying to find a permissions manager app in order to disable play services' "wake lock".

I'm using AppOps to disable "keep awake" from play services, but it doesn't have a permissions manager. XPrivacy doesn't work yet since Xposed for 5.1 is not out yet...

Does anyone have a solution for this? thanks
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
It requires framework/system stuff (or Xposed) to be able to deny wakelock requests.
[Nexus 5 Q&A, Help & Troubleshooting] larryNice:
oh ok. So just gotta wait for Xposed to be updated then. Thanks
[Nexus 5 Q&A, Help & Troubleshooting] airbeeting:
I understand that this is the cause to my nexus 4 dont go to deep sleep during charge. Is this it?
[Nexus 5 Q&A, Help & Troubleshooting] fabi_92:
a question: what about *alarms* wakelock?

I have a problem with him.

Keep awake on whatsapp, pushbullet, greenify. strange.
[Nexus 5 Q&A, Help & Troubleshooting] dcxgod:
I want to make sure that I post useful screenshots so I was hoping you guys can help answer some quick questions before I do so:

I have my battery charged every so often while I'm in the office. Will it be more helpful to post screens when I have a long period of no plugged-in time?

How long of a period should I wait having just flashed (fastboot) new bootloader, radio and kernel, before posting? (I read that it takes time for it to settle)

I've noticed significantly decreased battery life since I've updated to 5.1, despite it only being a few days...but I want to be methodical about the way I report to ensure the best possible use cases are provided.
[Nexus 5 Q&A, Help & Troubleshooting] patmann03:
See attached images.

Yes, it's the system update service. I found that if I use disable service and toggle it the service, then it allows it to deep sleep and stops waking the phone. If I do not do this, then the phone is 100% awake (even after running the ADB commands from post 3).
[Nexus 5 Q&A, Help & Troubleshooting] amir7777:
Edit: nvm sorry for posting, it's a stock graph bug
[Nexus 5 Q&A, Help & Troubleshooting] patmann03:
Looks like a new Google Services has been released and it fixes the wakelock for those that are having it. I have not confirmed this yet.

http://www.apkmirror.com/apk/google...ices-7-0-96-1785884-438-android-apk-download/
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
If you read my post again, nothing is wrong.

If it happens on every single app, its a weird ROM thing.

1. Yes, you'll want to not plug it in for a while since the real battery issue is wakelocks, there is no such thing as magical drain.

2. No such thing as "letting things settle". Complete placebo, software cannot change itself for no reason unless it was specifically made to do so (in the case of Android, it was not). Absolutely no difference between day 1 or day 4728839393. Also see my previous point.

3. Android versions rarely affect battery life, the same goes for custom ROMs. If they do, then it's very, VERY little, unless it's a major programming derp that hangs your CPU majorly (like Paranoid Android's tinted bars were doing for a while in KitKat). Again, see my first point.
[Nexus 5 Q&A, Help & Troubleshooting] airbeeting:
EveryThing goes in the same way ...
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
Google Play Services versions will not magically fix issues, as syncs wakelocks are not a bug. New versions can only really introduce more issues with more sync services.

The SystemUpdateService wakelock is not Google's fault—it is our own for using non-stock/not being able to take the OTA.

If disabling the services/receivers does not work, you have an application (that manages receivers) unintentionally re-enabling them (uninstall whatever app you're using)—if a service/receiver is disabled by the package manager, it CANNOT be used unless explicitly re-enabled again (either via a receiver-management app or adb/terminal/su, NOT by the app in question).
[Nexus 5 Q&A, Help & Troubleshooting] marclooman9:
Help

My battery gets discharged and charge itself again. Also drains within 10 minutes from 100% to 80%, and then returns to normal :confused: (this has been going on for several months):rolleyes:
[Nexus 5 Q&A, Help & Troubleshooting] :
At 80 percent, after the drain, post recommended screen shots from post 4. ?
[Nexus 5 Q&A, Help & Troubleshooting] voodoofox:
Hi all

I have some weird wakelock on 5.1 that I have never seen before.

Also I did search for it on Google and on XDA with no luck.

It's NextAlarmTracker

Does anyone knows what it is?

thanks
[Nexus 5 Q&A, Help & Troubleshooting] Dr Doom:
Hi guys very basic question I'm afraid but I see that you need GSAM root companion to post some of the required screengrabs - does your phone have to be rooted to install this? I get an error message when I try to use it saying it's not installed in the correct location etc. From a previous reply I was under the impression that your phone didn't have to be rooted. Thanks
[Nexus 5 Q&A, Help & Troubleshooting] AA1973:
Yes, phone needs to be rooted. GSAM Root Companion, taken from the PlayStore Description
[Nexus 5 Q&A, Help & Troubleshooting] marclooman9:
Here are the screenshots, 100% to 90% drains realy fast.
[Nexus 5 Q&A, Help & Troubleshooting] :
Well, nothing there looks out of place. You can try going to about 10 percent left and do screen shots again.

Or, what's changed? Rom? Just updated phone? It may need to settle to report stats more accurately.

You could also try running the phone til it shuts down itself. Then charge it fully... While still off. After its fully charged, unplug and turn it on. That can sometimes help with its reporting of battery levels.
[Nexus 5 Q&A, Help & Troubleshooting] GigaGotsiridze:
[IMG="calendar storage"]https://dl.pushbulletusercontent.com/7Dg66qPHj9IEFJNgDploZgeKSKKYZEtm/Screenshot_2015-03-15-22-27-02.png[/IMG]

Drained 40% overnight. Started several days ago, no idea what triggered it. Can anyone help?
[Nexus 5 Q&A, Help & Troubleshooting] Roberto_W:
Help!

Hope someone can spot the problem with my battery life.. Running 5.1 with gps disabled.. Battery life is shocking.. Have to carry a powerbrick around with me