yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Inane_Asylum:
The battery graph is quite different from KK (it seemed to show the used and projected battery life in one graph) and I couldn't figure out how to narrow it down to the "actual used" time window for a screenshot. All I know is I flashed it and finished setting it up at about 11pm when it was at about 85% battery, went to sleep at around midnight without plugging it in, and woke up at 7:40am with it at about 82%. All this with location on at full.

I know that battery life is something Google was focusing on with L, and seeing as a good chunk of drain in KK (and before) are these wakelocks, it would make sense that they tweaked something with them. Until root gets straightened out and we can analyze partial wakelocks, it will be impossible to tell.

At some point, I'll probably flash back and get some screenies for you.
[Nexus 5 General] ram130:
Thank you man. I'm more excited for this release now. The long wait continues.
[Nexus 5 General] PsychDrummer:
I tested it for a little and google play services was still showing a good amount awake. However, I'll test it today. Also, were you at home the entire time? I've noticed the npllocation seems to behave differently when I'm at home. Once I leave the house though is when they start waking up the device constantly.
[Nexus 5 General] Inane_Asylum:
Good point, I was at home, though that doesn't seem to matter for me with KK. Without using the tasker workaround or turning location off altogether, I'd get considerable battery drain through the night if I didn't plug in.

I admit it's probably foolish to make sweeping assumptions because of one night of testing, but it really surprised me how little it affected the battery. I was originally worried about not being able to use the tasker workaround with L, but if this wasn't a fluke, I don't feel like I'll need it at all.
[Nexus 5 General] PsychDrummer:
Well regardless, I will try it out today and report back. On the L thread a lot of people have been complaining about battery drain. There's a bug that doesn't let you use battery saving so its either device only or high accuracy. The drain might be from that....or simply because they incorrectly flashed. My overnight drain on device only was 1%. However, given that I have barely anything installed on the phone at this point I could have gotten the same on 4.4.4.

Oh and the 1% drain was from 100-99. I don't know why but 100-99 always seems to go down much slower than any other % change.
[Nexus 5 General] Inane_Asylum:
It was a rather wonky flash. Took it a few tries to actually work even when following flash directions exactly. For a dev preview build, it is really nice. I'm really anxious for Google to finish polishing it and the custom ROMs start flooding in.
[Nexus 5 General] ram130:
From my testing. It acts up when you start moving...have the phone in your pocket..etc,..leave the device stationary or at home and it calms down right away.
[Nexus 5 General] zibiksior:
Yes I've noticed that too. When I'm at home and the phone is connected to the WiFi wake lock time is much much lower.
[Nexus 5 General] demoncamber:
Anyone notice any better results with the new google now update today?
[Nexus 5 General] abuttino:
Yup. [MENTION=2404483]ram130[/MENTION] said it's definitely better on CPU cycles or something like that; in the moto x forum.

Sent from my Moto X
[Nexus 5 General] zibiksior:
Hmm I didn't notice the update but there was also Google Play Services update to v5.x and I checked out that there is a little bit less wakelocks. Phone was awaken for 22 minutes by google play services through the whole day. Before there was almost 1h of awake time. I've just installed google now update maybe it will improve something too.
[Nexus 5 General] ram130:
Yep. I can confirmed an improvement. I'm not sure which exactly but both updates had an effect. This is from today.

And that is a marked improvement as play services is usually over an hour by now. You can also see it in the graph as the amount of wake times showing in the bar is also a lot less.

Compared to:

- Ram
[Nexus 5 General] demoncamber:
@ ram130 Dude, what app is this screen from?! I need this!
[Nexus 5 General] zibiksior:
It's this one: https://play.google.com/store/apps/details?id=nextapp.systempanel.r1
[Nexus 5 General] daniu:
Hi,

just wanted to say that for me it was necessary to also block the wakelock: "SystemUpdateService" in addition to all the others.

Alltogether I got:

NetworkLocationLocator
NlpCollectorWakeLock
Checkin Service
NlpWakeLock
EntriesRefresh_wakelock
SystemUpdateService

now.

That seems to help for the last 1,5 hours. In case it won't stay like that I'll post once more.

regards

P. s. I'm german: no matter how convenient it might seem - I would never turn on location. Google now is not installed and google search is disabled (not sure yet if I get problems without). Even without that google play services were eating my battery and finished it up even before lunch ...
[Nexus 5 General] Revok.:
I'm using i9505 with CyanogenMOD 11 and I also have this problem with Google Search. Seems like I fixed it by uninstalling Facebook app. From my understanding, Google Search wakelocks are not used by Google itself, but they are a base to another apps to get current location using battery saving.

EDIT: Nevermind, disabling location history fixed it.
[Nexus 5 General] Saenchai:
This is exactly whats also my experience. I only have the Nexus 5 some days but my Huawei P6 does exactly this. If i stay a weekend at home i reach battery life of up to 3 days, while in Wifi all the time time. But as soon as i leave my house or run around in the area the phone is getting a LOT more wakelocks, battery is draining by 4 times faster and the phone is getting hot.

Now sadly the NExus 5 after running very good the first days (first startup charge took me 2.5 days) is beginning to act up, with also this problem. Just it also does it when home...

Can be that when i touch it after 4 hours standyb the phone is very warm, battery drains like hell and of course Google Services, Google Play or Google + is the culprit.

I have 4.4.4 installed, stock Rom, not rooted. Very few apps installed, not a single game and dont really know whats going on anymore.

Im investigating this stuff also since years now, sadly i never saw this topic. It should be outside of Neus 5, because it affects all Devices with kitkat. I have 6 devices ready atm and every single one of it has this drain at times.

The reason why i also want to investigate is that this problem not occurs alwys. It can very well be that its going ok for a week, when at other times a google service is acting up many times a day. Even with same handling. So its not the google services itself that use a lot of energy by itself, there has to be something happen that causes it sometimes to drain battery and other times not.

I already did so many tests, i cannot find a realy trigger to the problem. It can happen always.

Ill post a log soon, maybe someone can see something...
[Nexus 5 General] BTT8:
What would be the premier app for xposed to block these wakelocks?
[Nexus 5 General] abuttino:
Got a quick question for everyone..

Which wakelock is responsible for geofencing? I noticed that I blocked all the NLP wake locks and geofencing doesn't really work as it should any longer
[Nexus 5 General] PsychDrummer:
It's because when it knows you're at home, it doesn't see a point in constantly looking for your location.
[Nexus 5 General] akarol:
Why won't it do that at work as well?
[Nexus 5 General] PsychDrummer:
I'm not sure. I can't remember if it drained at work for me. I've been keeping my phone on device only for the past month or so. It's easier for me to just toggle high accuracy when I need it.
[Nexus 5 General] rjoliveira:
New to Xposed? Important Question!

OK, so I'm suddenly seeing a few Google services consuming a bit more battery than I'm accustomed to and comfortable with. I'm running the latest Paranoid Android ROM and thought I could address this through the App Privacy section (e.g. turning off Keep Awake) for the offending apps/services. Problem is that the services in question aren't listed and are seemingly inaccessible through the App Privacy control. That lead me to a Google Search (ironic, right?) and some information here at XDA on using the Xposed Framework with Wakelock Terminator (Play Store). Before I go ahead and install Xposed and really mess up my Nexus 5 I thought I'd ask if there are any issues using it with my current PA ROM. Any information will be greatly appreciated. Thanks, Rob.
[Nexus 5 General] E--Man:
Hi,

Has anyone succeeded in creating a Tasker profile with 4.4.2 that disables/enables location services automatically without having any confirmation dialogue to click on and without having to install xposed?

Please advise, thanks.
[Nexus 5 General] zibiksior:
Nope there is no way. Or maybe there is compile you own ROM without location confirmation dialog ;) there was some talk about that in slimkat thread but devs didn't wanted to disable that because of something. I don't remember because of what exactly but I assume its possible.
[Nexus 5 General] E--Man:
Unbelievable, all I want is to disable location services when the screen is off without having to install xposed.
[Nexus 5 General] demoncamber:
It's possible, with tasker and secure settings. But you'll still get the agreement dialog when it re-enables.

Sent from my LG-D801
[Nexus 5 General] E--Man:
Thanks, but this is what I'm getting to avoid everytime I turn on my phone...
[Nexus 5 General] tonyp:
I don't think it's possible, the complete codeset is in the closed source Google Play Services, and it's enforcing the confirmation dialogue. Nothing really you could do in the ROM code. Unless you emulate something like the DPAD, see below (but it wouldn't be 100% reliable).

As it has been previously stated in this thread that there's probably only one other way instead of using Xposed, that would be to set up Tasker or a similar app to dismiss the dialogue for you by acting as a DPAD. It's not completely reliable, though. Apart from that complaining here won't help, it's a thing Google is forcing on you.

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 General] PsychDrummer:
If it's such a big problem for you, do you mind me asking why you don't want to just use xposed? Are you running ART?
[Nexus 5 General] senthilrameshjv:
I've tried every other solution that I can try of to solve this.. Only thing I am yet to try is having location in Device only. For everything else, I got the wakelocks waking my phone to the most.

My device is Nexus 4 and this is my setup.

1. I have location in High Accuracy

2. I have G now on. I rarely use it. Although I dont want to miss out some things that it gives me on just a swipe..

3. Running Velocity in ART . So no chance of Xposed.

4. Location history and location reporting off.

Is there anything else you guys suggest other than location in device only to stop this. I have heard it will affect g now.. (i am gonna try it anyways)
[Nexus 5 General] mwrobe1:
I'm a little perplexed re: some of the responses here. Are some people experiencing problems with location based functionality after they tried Xposed WakelockTerminator, and are just blocking NlpCollectorWakeLock and NlpWakeLock? Google Now, Maps, and Navigation are all performing as expected for me.

The only other battery related app I'm running is LeanDroid which will turn off Wifi/Mobile Data after a set period of time when the screen is off/lockscreen is unlocked and lets you set a time period to initiate a sync and temporarily turn them back on/off.
[Nexus 5 General] Highway 55:
^ This.

I have never seen any ill effect on location services after terminating NlpWakeLockCollector and NlpWakeLock. The latest Google Play Services supposedly has the wake lock issues fixed, so it might be pointless now anyway...
[Nexus 5 General] pulsar_swift:
Which version are you referring to ? I am on 5.0.89 and I still have considerable battery drain due to Google Play Services.

Is there someway to automate the below action. Clear the data and cache of googe play services every 1 hr automatically.
[Nexus 5 General] ram130:
Try clearing Google search data. Reboot. Toggle location on and off then select either battery saver or high. Setup Google now again. Report back on your next cycle.
[Nexus 5 General] paychex:
1. It's a dirty hack

2. Security implications

3. I have serious doubt that it will ever work on ART. xposed is the past
[Nexus 5 General] Highway 55:
5.0.89. I haven't actually tested it on a stock ROM. I had just read in a few articles that it was fixed. I am on a custom ROM that has the fix implemented in the source.
[Nexus 5 General] mwrobe1:
I have a stock 4.4.2 ROM on my GS3 with the same ver of GoogPlayServices. I'll give disabling Wakelock Terminator a try and see if the Nlp wakelocks again present considerable battery drain.

Right now...the only relevant and persistent wakelocks on my device occur for the audio/streaming apps I use...which is normal; as well as AudioIn for GoogleNow...which again is normal.
[Nexus 5 General] Ok_Kaleidoscope5109:
I've heard this phrase uttered since the beginning of the nlpwakelockcollector drain. It's meaningless now. Unless someone has done a thorough validation that says this version has solved it, please don't circulate something that's likely not true.
[Nexus 5 General] Highway 55:
First, I never stated that it was fixed as a fact. Second, there are two fixes that require either a custom ROM or installing xposed on a stock ROM. I chose the custom ROM route because I insist on using ART.

My point is that there are viable alternatives to waiting for Google to fix this issue. If you are that stubborn and insist on using a stock un-rooted ROM, than I guess you are SOL. It's not like this is the first stock ROM with wake locks and bugs, this type of stuff has been going on for years now. That is why I come here, to take control of my device and fix this type of thing for myself.
[Nexus 5 General] Ok_Kaleidoscope5109:
Ok, I spent a bit of time investigating today. I'm noticing a bug with Google Search and I'm wondering if its related to blocking these wakelocks.

Basically I reported the event at JIRA (https://jira.cyanogenmod.org/browse/BACON-800), but the gist of it is as follows:

OCCASIONALLY when I say "OK Google," with the screen off and phone plugged in, Google Search will activate

However immediately after activating and making the "ding" to prompt me to speak, the second "ding" (the same ding that you get when it fails to detect that you said anything) rings and it cuts me off. The two dings are one after the other.

I then see the Google Search app and it either prompts me to say "OK Google" or tap mic to begin search. Sometimes there's no text. Refer to screenshots below

I cannot re-initiate search saying "OK Google." I need to tap the mic physically (defeating the point of hands free).

After I tap the mic, I can say whatever I want to say and it will process my search. Future subsequent searches while the screen stays on will activate by "OK Google."

I'm running Wakelock Terminator and I'm blocking the 4 wakelocks as shown in the screenshot below:

NlpCollectorWakelock

NlpWakelock

CheckinService

NetworkLocationLocator

I was able to reproduce this a few times with Wakelock Terminator enabled, but it seemed to subside when I disabled it. This is just a preliminary test. I need more of you guys to confirm/test. Also try swiping google Search away each time you turn the screen off to initiate an "OK Google" activation.
[Nexus 5 General] arboeh:
I have solved the problem with using "Automagic" (Tasker). Works great. I can use my Nexus 5 more than 18 hours now (from less than 6 hours). :)

On "display on" (2 seconds pause) turn WIFI and network location on, on "display off" (2 minutes pause) turn WIFI and network location off.
[Nexus 5 General] frigidazzi:
Have they're been any way to lock these wake locks on lollipop? Searching the thread I didn't find anything remotely current.
[Nexus 5 General] msgfromside3:
Even better if you turn on GPS for a specific set of apps. I save more battery that way because GPS activity goes crazy when you turn it on. You will get longer lock time at first though.
[Nexus 5 General] jayyo:
Amplify

This is thread is a little old but: https://play.google.com/store/apps/details?id=com.ryansteckler.nlpunbounce
[Nexus 5 General] cawith:
Well that app is unfortunately not of any use on Lollipop...
[Nexus 5 General] munraf:
Looking for something to prevent this wakelock on lollipop as well.
[Nexus 5 General] frigidazzi:
I have killed most of the location wake locks in lollipop with disable system app disabling the following...
[Nexus 5 General] anshmiester78900:
Thanks mate
[Nexus 5 General] giorgis91:
What's the app??
[Nexus 5 General] Hakeem5:
I found it, that app above is called DISABLE SERVICE https://play.google.com/store/apps/details?id=cn.wq.disableservice
[Nexus 5 General] b00bs:
I personally suggest don't use this app for Google Play Service. It will wake your phone endlessly for what service that you have disabled. For my case is analytic, checkin, and system update service.

Instead just disable it autorun receiver using this app.

https://play.google.com/store/apps/details?id=com.autostarts.event

For more info:

http://xdaforums.com/google-nexus-5/general/how-to-disable-ota-lollipop-wakelock-t2952845
[Nexus 5 General] anshmiester78900:
Disable services
[Nexus 5 General] mattcoz:
What ill-effects come from this? Does it just disable anything location related?
[Nexus 5 General] frigidazzi:
I'm not sure of any negatives. My Google now still works fine..and everything else I use with location. Once in a while an app like walgreens for example complains that Google play services is unable yup determine location, but that is when launching the app. When I click search location it still shows up fine.
[Nexus 5 General] augoza:
I just installed Manage Android Autostart app 60 seconds ago. I went to disable those 3 specific recievers...I noticed there are already several things disabled by default. Is this normal or did the app do this on its own? Here is an example pic:

Google Services Framework is disabled, under During Startup section
[Nexus 5 General] mattcoz:
Tried it and my battery life is definitely a lot better and I haven't noticed any problems, thanks!
[Nexus 5 General] b00bs:
It's not the app. Even if you check with Disable Services, there's some services from Google Services Framework that already disabled by default. So this is normal.
[Nexus 5 General] robertusIT:
in Alarms i have into com.google.android.gms i have MCS_HEARTBEAT that stress my battery.

You know what is this and how can i fix it?

Thanks in advance
[Nexus 5 General] msgfromside3:
It depends. I haven't used this app personally, but with App Ops, for some that side effect happened, but for some, it didn't.

BTW, I gave a try of Manage Autostarts For Android, but unfortunately, it itself caused more partial wakelocks than without it, so at least for me it defeats the purpose of using the app. Sigh, I wish HTC has an easy/free way to set s-off and has made the system partition bigger. With my N5 and App Ops combo, I am able to disable all the offending permissions (mostly location). Strangely 5.0.1 on HTC One M8 didn't show as many location related wakelocks as N5, even with location history and report on.
[Nexus 5 General] b00bs:
Can you share more Information about your partial wake lock? Forgot to mention, my device is Nexus 5. And here is screen shoot after using Manage Autostart app. Only turn off system update and check in services for the sake of deep sleep.

https://www.dropbox.com/s/hjyl5197nbbpgmu/Screenshot_2014-12-30-03-50-55.png?dl=0

I always turn on Location reporting so I guess it's normal for my NLP wake lock.

When I was used Disable Service and turn off system updates, check in and analytic, their sync services will caused a loop and kill my deep sleep.
[Nexus 5 General] msgfromside3:
I uninstalled the app, but let me reinstall it and see if I can capture the screenshot as well as BBS log.

EDIT: Attached.

EDIT2: FYI, I usually get about 0.5-0.7% drain when the screen is off. I will create a screenshot later and attach it.
[Nexus 5 General] Ok_Kaleidoscope5109:
Is it me or is Google Fit acting up with 42 minutes of wakelock today. I work in a corporate office, so its not like I'm running 3 miles a day, but jeez... 42 minutes of wakelock?

It's all our favorite nlpcollectorwakelock too, and I'm only 8 hours into my day so far.
[Nexus 5 General] msgfromside3:
It has started acting up since the last update, which reminds me why I greenified it before it worked okay...
[Nexus 5 General] lirong:
Hi - I am suffering from the NLP wakelocks and read about trying Wakelock Terminator. I have xposed installed.

I was unable to fund Wakelock Terminator in Google Play and when I go to Xposed and search the Download section I dont see it there either. How do I find this?
[Nexus 5 General] demoncamber:
So what are the common wakelocks now with lollipop?
[Nexus 5 General] jianwen03:
Hi old thread.

Am on CM14.1.

Wifi & Bluetooth scanning: Off.

Google Location History: Off.

Google Location Sharing: Off.

Location mode: Battery saving.

Nlp wakelocks went from ±2 minutes to >10 second overnight. When location is disabled nlp wakelocks are almost nonexistent but weather widgets don't work.

Thanks for having this discussion thread.

Still a slight drain in battery though whereas a straight line is obtained when location is disabled overnight…
[Nexus 5 General] Ardysan:
Can I necropost on this one? ?

700 NlpWakeLock per hour on Mi9T EU stable ROM 10.3.12. DoesntPostAThing Anything changed in 2019 on how to fight this?
[Nexus 5 General] tylerdurden83:
If I turn that option off it cant locate me anymore. Are you currently staying at the last location that you were staying while that option was on?
[Nexus 5 General] the7thson:
Good point, I'm still at the same location, will check when I move tomorrow.
[Nexus 5 General] BlackS0ull:
Hello all,

Did anyone notice that now Foursquare APP is consuming a lot of battery due to NlpCollectorWakelock? I've monitored yesterday and since 4.4 KK I have this wakelock constantly ON even that I selected under \Settings\Location\Mode - Battery Saving. So I wonder if there is anyone else who is having this wakelock from Foursquare APP?

If I select from \Settings\Location OFF completely when I'm enter in Foursquare is not letting me to do any check-in due to this settings that is OFF. But before 4.4 I had this Locations stuff to OFF and I was able to check-in

thanks
[Nexus 5 General] ratson:
lets see if the new 4.4.1 update or the new radio cures this issue, feedback is welcome
[Nexus 5 General] picachux:
I was just having an issue where overnight I started losing 20%+ battery where before it was 4-5%. I removed My T-Mobile, Google Rewards and Foursquare as they were the apps updated during that time. Battery has gone back to normal for me. :highfive:
[Nexus 5 General] the7thson:
Follow-up: I did another test last night. All settings were the same except I turned Google Location Reporting and Location History to ON.

I still only lost 6% battery during 8 hours and 20 mins but did get about an extra 6-7 minutes combined awake time due to NlpWakelock and NlpCollectorWakeLock.

So my awake time was higher but overall battery drain didn't really change overnight. I'm sure the drain results would be drastically different if I was moving around but this was during sleep at night.

Tomorrow I'm going to try and repeat this test with WakeLockTerminator turned on and filtering all nlp wakelocks.
[Nexus 5 General] BlackS0ull:
So, this is what I was talkimg about that I have problems with foursquare and nlpwakecollector. Did anyone have this piece of crap ??

If I'm switching off location, I will not have sense weather also.

It's something related with foursquare but I don't know what.