yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] PsychDrummer:
I have a question for everyone experiencing the wakelocks. How many of you own a pebble with glance installed on the phone or some other location watchface (maybe even a smartwatch with location in general). [MENTION=962867]El Daddy[/MENTION] made an interesting point in another thread that it might be a watchface keeping the phone awake so maybe if the OP can add a poll, or just comment what everyone has.

Edit: Also, I noticed in BBS I had two kinds of Nplcollectorwakelock and nplwakelock. One said google play services underneath while the other said google search. I think the google search ones are the wakelocks that are actually necessary while the play services ones are acting up. I think those are the ones that are affected by a specific app (could be watchface) but misinterpreted as play services.
[Nexus 5 General] pork salad:
After being immune to this for months I started getting it this week, lost 50% battery overnight. I've had all the location stuff switched off and everything greenified for months. Hope someone figures out a fix soon.
[Nexus 5 General] teiknarfy89:
This just started to happen and I don't know why good battery just went out the window.. Anyone know why? Stock 4.4.3 faux 18 greenify and gravity box.. This is annoyin.. Also I've been using Google now from the beginning and never had this issue this bad
[Nexus 5 General] Ok_Kaleidoscope5109:
I have locked down Google Play Services and those nlpcollectorwakelocks with Wakelock Terminator but I still got weather updates (without opening Google Now), and I see it in my notification bar. Weather widgets should be unaffected because they obtain location on their own.
[Nexus 5 General] Ch3micalGnetics:
Same for me but with Franco kernel... :( not cool at all... I Hope Google fix this soon

Enviado desde mi Nexus 5 mediante Tapatalk
[Nexus 5 General] Sc0rp10:
I have noticed that after upgrading to 4.4.3 under settings > accounts > your Google account there are a few new sync options. One of them is location reporting and history.

Does anyone know what this option does?
[Nexus 5 General] ollidiemaus:
So serious guys is there nothing we can do about it?

Gesendet von meinem Nexus 5 mit Tapatalk
[Nexus 5 General] tylerdurden83:
Those arent from 4.4.3, they are exposed by greenify donation package.
[Nexus 5 General] filster27:
Which specific ones did you filter on the wakelock module to stop the wakelocks?
[Nexus 5 General] the7thson:
Here is what I'm using right now, will report back if it works.
[Nexus 5 General] natezire71:
Same here. Except I'm not filering the "NetworkLocationLocator" or "CheckInServices". I'm filtering anything with "NLP"
[Nexus 5 General] MWilkenson:
Just want to join in on this conversation. I had the same issues and my wakelock was killing my battery. NLPCollector was the worst of the two. Did some tests today. I charged my phone to 100 and would play around with different settings until it hit 95 then would charge back up and change the settings around.

Here is what i got so far.

-Location is on Battery Savings

-Google Now: On

-Location: On

-Google Location Reporting: Reporting: Off and Location History: Off

-Google Settings>Android Device Manger>Locate Device: Off

At 66% Battery

ActivityManager-Launch is my highest wakelock at 5m 15s

NLPWAKELOCK is all the way down at 41s and NLPCOLLECTORWAKELOCK is at 7s both for google play services

Google Dialer and Ebay both have NLPWakelock but only at 1s

These settings have tamed the wakelocks for me and still get to experience Google Now to an extent. My biggest complaint is I feel like my phone is crippled and cant be used to its full strenght and capabilities without the battery just going to crap. Let me know what you think.
[Nexus 5 General] DoesntPostAThing:
I have location reporting and history on as well as high accuracy, and I can get 2.5 h of OST between 7:20 am and 11:20 pm. This is good enough for me as I did a lot of rebooting in between, along with graphic intense games. I assume without those I could hit 3h. That, and I doubt Faux kernel is the most optimized right now.

Sent from my Nexus 5
[Nexus 5 General] MWilkenson:
I appreciate you letting me know what your settings are. I might do a test with that tomorrow and see what I can get throughout the whole day. Hope others will chime in. I always enjoy knowing how people use their phone. I typically use it for hangouts,xda and general web searching and youtube videos. sometimes games but it depends on what i find on the play store to play.
[Nexus 5 General] DoesntPostAThing:
Another thing is that my school has horrible reception (all the classrooms have thick concrete walls, barely any signal passes through). What I used to do was turn off GPS, data, and sync on my Galaxy Nexus who's battery would barely make it through with 2.5h OST. With my Nexus 5 I thought I'd keep those things on, although it's mainly 1-2 bars of signal. If I turned them off it might be possible to reach 4 or 5 hours, but 3h is the most I used in a day anyways. I guess I'm not the best person to gauge battery use. For me, since the power is going to waste anyways, I might as well have it to something semi-useful such as report location/sync in my pocket.
[Nexus 5 General] natezire71:
What I do during classes is that I've set up Tasker to turn on Airplane mode and go into silent mode (along with a few other tweaks); shouldn't be using your phone in class anyways. :P This prevents the intense drain from low signal.
[Nexus 5 General] MWilkenson:
I think tasker could be real beneficial to me but I need to find time to learn to use it
[Nexus 5 General] DoesntPostAThing:
Before class I tap an NFC tag that does all those things for me, though I temporarily disabled them for now just to see the limits of my phone. I should be enabling them soon. With data off I dropped 1% every 2-3h. Location services on, although I'm not sure if that matters as there's nowhere to report to.
[Nexus 5 General] ratson:
guys SoT and such issues are not related to this topic. what we need to concentrate on is if the screen off idle state is consuming much battery because of the nlp wakelocks or not. best way to test is to have it off the charger overnight and see the percentage drain/hour when you wake it next. ideal drain/h is about 1% (can be even less) the usual problem with play services is that it can be as high as 3-5%.

best way to analyse wakelocks is to check cpu wakeups in wakelock detector
[Nexus 5 General] biggiestuff:
Well i think i figured out how to have google now on but not have all these nlp wakelocks that I've been getting like crazy.

Disable the option in google now to track how far it is from your home and work. I mean do you really need to know this every minute ever second? Just ask it when it's time for you to go. the nlp wakelocks for me dropped like a bomb. I guess it's better than not having google now on at all. I'm really only interested in sports and shipping updates and reminders for google now anyway.
[Nexus 5 General] the7thson:
Excellent find! Can everyone try this please and see if it makes a difference in the nlp wakelocks?
[Nexus 5 General] natezire71:
If you use that Xposed Module I posted, you'll still be able to use Google Now and location stuff perfectly.
[Nexus 5 General] biggiestuff:
Trying to give tips for those that don't want to modify their phone too far away from stock.
[Nexus 5 General] natezire71:
Gotcha--my bad then.
[Nexus 5 General] ratson:
for me turning location reporting off completely eliminates the issue, still I try to find a real solution...
[Nexus 5 General] the7thson:
Ok so I did the overnight test, here are my results:

ROM: Cataclysm Nov 26 stable

Kernel: Stock

Wifi: on all night

Signal strength: Poor. Avg around -100db

Wifi Always scanning: off

Play Store version: 4.4.22

Play services version: 4.0.34

Google Now: On

Bluetooth: Off

NFC: On

Location Settings (these are the key):

Location: On

Mode: Battery Saving

Google Location Reporting: Off

Location History: Off

Battery drain overnight: 0.7% per hour. About 6% total drain over 9 hours :) Notice that I started this at 99% battery instead of 100% because I think 100 to 99 takes forever to drop. It's almost like when your car's fuel gauge reads higher than Full. So I started at 99%.

This is definite progress, I really think we need get more folks involved in doing this test for confirmation.

OP: can't thank you enough for getting this started!

EDIT: all of my syncs were on: 3 Gmail accounts, Exchange Email, weather, some widgets, google voice etc.

Screenshots of drain, wakelocks and deep sleep:
[Nexus 5 General] tylerdurden83:
You know that turning off google location reporting actually prevents your device to be geolocalized by google apps and services like maps or whatever else, right? Basically you have location on for third party apps that dont use google's, and that is it. Almost as if it was off tbh
[Nexus 5 General] the7thson:
Hmm I understand what you're saying but that doesn't appear to be the case.

Google Maps, Google Now, Google's News and Weather widget can all access my location. This works both on wifi as well as cellular network.
[Nexus 5 General] Sc0rp10:
So if i uncheck the location option then what will be the impact on apps?
[Nexus 5 General] Rufufu:
I gave up fighting with thoses wakelocks. I couldn't manage to find a solution without compromising functionality of some apps I use.

So I end up activating location history, location reporting and wifi availability for location, high precision location mode, still have tons of wakelocks of course, but there is a reason for these now. The impact on battery life is not very important, but that is my opinion.

I will turn off all these things when search app will be eventually updated fixing the issue with wakelocks.
[Nexus 5 General] fxdil:
Like the description says, Location Reporting is for Google Now and Maps. What it does is it gives you information based on your location, as for Google Now cards.

Location History is just a history of where you have been. For example if you use the same routes going to and from work, it will notify you of weather or traffic updates between your work and home.

If you don't require or use Google products that often, you may choose to disable both of them. You can always manually choose device accuracy if you need to use Maps.
[Nexus 5 General] adl:
Suffering from this as well, all of a sudden i´d say, 10% during night in airplane mode, usually it´s about 2%

BBS shows NlpCollectorWakeLock and "AudioIn" (googlequicksearchbox) as main battery suckers. :(
[Nexus 5 General] anshmiester78900:
This wake lock is really killing my battery.
[Nexus 5 General] toprunner2786:
Same issue here. I was hoping for a solution with 4.4.3.

Has anyone had any luck freezing apps with Tibackup?

Just not sure where I can start.
[Nexus 5 General] adl:
I found a workaround in a german forum, which requires root:

Download the app showing in the screenshot open it and untick the services from the second screenshot in Google play service. Google now, maps etc are all working, but my wakelocks are gone.

Let me know if that worked for you guys.
[Nexus 5 General] sherdog16:
Audioin is the OK Google hot word detection and not an actual wake-up. It'll increase even with the screen on so I wouldn't worry about that one
[Nexus 5 General] hurray:
Thanks for the hint. I will try it.

I have another workaround which runs fine at my S3:

- first you must install Xposed

- then install "Wakelock Terminator" from the playstore and activate the module in Xposed

- reboot the phone

- open Wakelock terminator, search "Google Play-Services" (in German: Google Play-Dienste) and enter the following filter settings:
[Nexus 5 General] BTT8:
Edit : see post below
[Nexus 5 General] BTT8:
So I found a way to decrease the nlp wakelocks by denying access via privacy guard. My question is would it be safe to deny it under Google service frameworks? Seen attached.

I already denied it under Google Play services.
[Nexus 5 General] msgfromside3:
Just be careful blocking them from either appops or other xpose framework. For me, entries refresh wakelock kicked in instead and it was worse than having these two wakelocks. I am not sure if this is still the case.
[Nexus 5 General] fone_fanatic:
I got rid if these wake locks by using a taker profile that disables location services 2 minutes after turning the screen off and enabling them 10 seconds after the screen is turned on.

More info can be found on Reddit here: http://www.reddit.com/r/TaskerFiles...ble_location_services_when_display_off_using/
[Nexus 5 General] Aadilnz:
I tried this and although my wake locks were gone, my battery still drained like they were still present.

This is with location on battery saving and location reporting on (to test if the fix worked).

I'll let it run again tomorrow, and post screenshots if it still occurs
[Nexus 5 General] demoncamber:
awesome suggestion!! I'm a bug tasker fan!! I just made a gps auto on/off profile the other day for when gmaps is opened. if only I was smart enough to have looked a little further in secure settings at the time LOL

Sent from my LG-D801
[Nexus 5 General] fone_fanatic:
To be honest, tasker is way above my head. Every time I've tried to learn how to use it, I give up in frustration. Thankfully the person that shared that profile also gave detailed instructions of how to use it. I bought Tasker over maybe a year ago, but just started using it when I found that about a month ago!

After using that profile, my nlpwakelocks drop down drastically and I still have location history on. It's dropped by battery drain down to 1-2%/hr with WiFi off.
[Nexus 5 General] Inane_Asylum:
This is working beautifully for me. This alone is worth the $3 for tasker.
[Nexus 5 General] demoncamber:
join the tasker google group, there's so many walkthroughs and you can request a profile if you have an idea of what you want but not how to execute.

Sent from my LG-D801
[Nexus 5 General] tylerdurden83:
Careful with that, there is this bug: https://code.google.com/p/android/issues/detail?id=64597

that as a google employee said:

so it will crap out on you if you switch it on and off often.
[Nexus 5 General] Inane_Asylum:
Thanks for the heads-up. It shouldn't be a huge issue as location services isn't critical for me, I just like the location-based cards and such and I hate sacrificing core features for acceptable battery life. That's good to know, though.
[Nexus 5 General] kilometers4:
4.4.4 is out, so hopefully it'll fix this issue :)
[Nexus 5 General] demoncamber:
Would be nice if the tmo g2 even saw 4.3 already! Hope they skip straight to 4.4.4

Sent from my LG-D801
[Nexus 5 General] Version_3:
People are getting sick of this, I'm sure, but so am I. Decreasing 4%/hr while idle overnight with strong signal but also on Wifi is bad, when in the past I've been able to get 0.7% draw per hour.

There are ways people are "fixing" this, or covering it up, but those didn't work for me, and I use Google Now. I disabled the wakelock using Wakelock terminator, and it was still there. I readjusted location settings, as well as turning it off, but the wakelock timer kept increasing. I've also turned off Google Location Reporting entirely.

So an app was recommended, called Disable Service https://play.google.com/store/apps/details?id=cn.wq.disableservice. Last night, I toggled every location related service under the Google Play Services app, and I found the absolute service causing this wakelock on my device: Google Location Service.

The things affected by this service being disabled are Google Now related only, such as being traffic reporting, commute reports to your saved locations, as well as notifications on when to leave for appointments.

Overnight, I used only 0.5% battery an hour!

However, disabling that, I think, is unacceptable because I do use those a lot as my daily commute is 45min 1 way. I'll likely be turning it back on, but, I'll also look at trying to tweak what is reported to see if the wakelocks are reduced.

I've had this problem on Stock, stock/rooted with exposed, and now on PA latest RC2. I don't think a fix will come in 4.4.4, but from an update to Play Services. I also use Nova launcher, but haven't seen if the wakelock is as much of an issue if I was using the google launcher.
[Nexus 5 General] demoncamber:
We need to all report this straight to google on a constant basis

Do it straight through google now's help and feedback. I just sent the link to this thread in the report.

Everyone should do the same

Sent from my LG-D801
[Nexus 5 General] PsychDrummer:
What I do is keep my location on device only. Npl doesn't even show up in BBS when I do. But when I need location I toggle it. I think this might work better for you since you do like to use location on your commute. There's also an xposed module that disables the agreement you have to click yes to every time you switch location from device only so it makes it easier.
[Nexus 5 General] sherdog16:
Doing this kills Wi-Fi location abilities for all apps. Apps like red box and Walgreens and such that use Wi-Fi location won't be able to locate you without GPS on.
[Nexus 5 General] Version_3:
Yes, you're absolutely right. It behaves the same as if you're setting the location to Device only.

I think a short term solution might be to have Tasker manage the location settings based on usage. It's yet another workaround, but at least it's something that will limit the collector wakelocks.
[Nexus 5 General] demoncamber:
this. I've been experimenting and even setting tasker to disable location entirely on screen off does wonders.

Sent from my LG-D801
[Nexus 5 General] Inane_Asylum:
Well, I tested it and it did indeed cripple location. I changed "location off" to "device only" in the screen off task, though, and it seems to be working fine now without the non-stop wakelocks.
[Nexus 5 General] bblzd:
Google WiFi locations is known to cause wakes and large drains, so much for being "battery saver mode". Device Only is more efficient but you need WiFi locations to use most of the GNow location cards.
[Nexus 5 General] laxor:
Since this issue appeared out of nowhere for me too, I tried wakelock terminator like suggested. It seems to be better now, but I randomly get a "Unfortunately, Google Play Services Has Stopped". Do the others who use that method get that too?
[Nexus 5 General] tylerdurden83:
I hate google for not fixing this critical bug in over 7 months....
[Nexus 5 General] abuttino:
7 ****ing months!? Holy crap. Something tells me this can't be fixed without losing money with advertisers

Sent from my Moto X
[Nexus 5 General] nldxda:
I got rid of these two wakelocks by reflashing my ROM and then reinstalling my apps using "app backup & restore" app.. Then I installed app data from TB..

Well these two wakelocks are gone now, but others remain.. Also, push notifications are still broken..... But these two wakelocks are gone!

Notice in TB how gcm push notifications get broken upon either app or app data restore??

Maybe doing TB restores causes these wakelocks?
[Nexus 5 General] abuttino:
No.. I had them on stock unrooted moto x

Sent from my Moto X
[Nexus 5 General] nldxda:
I see..

Matter of fact, I just looked and they've returned after at least 24 hours of them gone!.. So must be some app or something causing this
[Nexus 5 General] sherdog16:
What Google should do is give us more control over how often search checks for location. Give us the control we crave as android users. I'm looking for another search apk to replace Now
[Nexus 5 General] ram130:
I'm annoyed at Google not taking stuff serious.
[Nexus 5 General] Ok_Kaleidoscope5109:
Does anyone know the actual effect (besides battery savings) of terminating the nlpcollectorwakelock and nlpwakelock from Google Play Services? I'm looking at my location history on Google and it looks about the same with and without the wakelock terminated.

Google Now seems to give me weather and traffic.
[Nexus 5 General] BTT8:
Same here...
[Nexus 5 General] Ok_Kaleidoscope5109:
Yeah, I'd like to know what nlpcollectorwakelock does. Is the information just going into a black hole? Or its extra info Google's collecting? I just want to make sure I understand what specifically I'm affecting by using a heavy handed approach of terminating the wakelock.
[Nexus 5 General] abuttino:
Really? Who cares? The fact you aren't providing the information collected on these isn't affecting you.. On the other hand, it kills your battery and stalks you..

I heard someone say they weren't doing their socialist duty by NOT letting Google collect information about them.

Honestly, if Google can't figure out better ways to stalk their users that doesn't involve killing a battery, they can go pound salt.

Sent from my Moto X
[Nexus 5 General] bblzd:
It collects your nlp wake locks, of course! Just kidding I have no idea.
[Nexus 5 General] Ok_Kaleidoscope5109:
Jeez, whats with kids these days? Zero curiosity for how things work? Just because you can't tell what's being done with the data or how it affects how your phone performs doesn't mean it doesn't do anything. If anything we're just not looking out for what nlpcollectorwakelock does. While I understand Google is collecting data, it isnt JUST collecting data to do nothing with it. Maybe this affects the whole parking location reminder? And I've been noticing I don't get reminded of when to leave for flights and stuff.

So maybe there IS some effect, but its hard to gauge because very few people on this thread actually care about what this wakelock does besides drain battery. I see many people here are just screaming BATTERY BATTERY BATTERY, and will do anything to save battery. The analogy I like using is that we're shutting off the water main to stop a faucet leak. Sure, it's good we stopped the leak. But now you can't take a crap without stinking up the house. nor can you shower, wash dishes, etc. It's good to understand side effects. This is a developer forum after all.
[Nexus 5 General] zibiksior:
Google play services v5.0 was introduced yesterday on google I/O maybe with this update there will be our fix? Any one here tried the L developer preview? From what I know in this image there is already new version of google play services but for public use it will be released in few weeks. Maybe at weekend if I will have some time I will try this preview but maybe someone here will do this earlier.
[Nexus 5 General] PsychDrummer:
I tried it this morning for a little bit. Battery saving seems to be glitched so I had high accuracy on. I don't have root so I don't have much information. It did seem like the device was being kept awake. It was off the charger for a little under an hour and the device was kept awake for 8 min or so.
[Nexus 5 General] zibiksior:
Yeah right without root we can't check anything so far... But we can at least check if Google play services shows up in stock android battery stats. When the the drain happens google play services is there on the list. Thanks for the try;)
[Nexus 5 General] PsychDrummer:
No problem. It did actually show up.
[Nexus 5 General] Inane_Asylum:
The battery life I experienced running Android L was absolutely phenomenal with high accuracy/location reporting/location history on. The drain was nowhere near what it is running 4.4.4 without workarounds. I did flash back to 4.4.4 because I missed the custom ROM options, but from what I could tell, L is going to be pretty solid. I'm excited to see what the community does with it.
[Nexus 5 General] ram130:
No screenshots? With Google now on? I'm wondering how much better. :/