yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] PsychDrummer:
It is a bit slow for maps, which is why I do switch to high accuracy when using it. The only annoying thing about it is that google now doesn't show a weather card which I use often. It would be useful if we can just set a location manually for it to check that way it won't need location services to show the weather. I guess I can just use a different app for weather and do that. Just a little bothersome.
[Nexus 5 General] muyoso:
I get a weather card. I don't think it changes to the current city you are in if you travel a lot, but I always have gotten the weather card for my home city.
[Nexus 5 General] aeoveu:
I thought long and hard on whether to change location settings to Device Only. Thing is - sometimes, I use the camera and would like the phone to geo-tag it. And sometimes, maps (I don't use GPS much, and since we have concrete buildings here, you can't get a GPS signal inside someone's home or a building) - thus, wifi.

I'm certain I could eke out a bit more with location disabled - but then, the few things that I actually rely on will be off. I also use Foursquare as well.

I just wished the phone would stop pinging for location when we tell it to stop pinging for location. It's just another disobedient child that needs to be spanked!

It would even be better if Android could alert us saying "XYZ application is requesting to access your location. Grant or Deny?". I swear, that would make everybody's life easier!
[Nexus 5 General] tylerdurden83:
Putting the phone in device only mode effectively prevents some wakelocks, in exchange of keeping the gps chip powered on, which is hardly beneficial in terms of battery life.

You guys are far too obsessed with wakelocks imo
[Nexus 5 General] muyoso:
You'd be amazed at how little battery power GPS consumes on our phone. I've gone for an hour and a half long bike ride using GPS tracking in the my tracks app and lost only 4% battery life. Like half of that is just normal drain. I was amazed. Used to be where GPS slaughtered battery life.
[Nexus 5 General] Moscow Desire:
Hey folks,

Just a reminder, profanity is against XDA rules.

Even attempting to bypass the profanity filter is "intent".

Cheers

MD
[Nexus 5 General] georgios73:
Turning off Google now stopped all my wakelocks

Sent from my Nexus 5
[Nexus 5 General] zxyz:
Well, it was relatively fixed up until recently for me, now it rapes my battery. So by the power of deduction.... Shame you have none.

Sent from my Nexus 5
[Nexus 5 General] PsychDrummer:
Actually all wakelocks in regard to location are prevented by using device only. Whenever I need maps I actually toggle high accuracy. Device only doesn't use GPS randomly, only when you're using an app that requires it. That's why it's much better on battery because it's not constantly using location, only when you need it, unlike battery saving mode.
[Nexus 5 General] LiquidSolstice:
I had a friend switch over to a Nexus 5 a few days ago and his battery was just getting destroyed. He uses both Google Now and Google Glass, but it worked fine on his Moto X and his Xperia Z1 (both updated to the latest of everything).

I don't use Google Now but I decided to turn it on today to see what was what, and my battery was just annihilated. I lost 10% in 7 minutes and none of my 1 amp chargers were able to keep the phone going, so I had to switch to a 2 amp charger to get some juice going.

Sure enough, Wakelock Detector tells me that it's the fault of Google Play Services/Google Search, and both include NlpWakeLock. This is just insane. I can live without Google Now and it doesn't bother me, but for him, he pretty much requires the use of Google Now otherwise Glass doesn't do anything.

I hope Google figures out what the heck is going on here.
[Nexus 5 General] LiquidSolstice:
That is absolutely wonderful for you. I do not care what you believe. This is happening to a stock unrooted Nexus 5 on the latest update with all the latest apps after a full factory reset with no apps outside of the ones that come with the phone. Ceasing to use Google Now stops the issue, meaning that it's a Google Now/Play Services issue that needs to be fixed by Google.

It is absolutely Google issue, proven by what Wakelock Detector tells us on rooted phones and what the standard battery stats tell us on unrooted phones. The drain is real and it does happen, and it's incredibly bad. My friend is considering selling his Nexus 5 over this and going back to a Moto X instead. On my phone with the stock ROM, rooted and with the base Google Apps package and nothing else, after two hours of Google Now turned on, Wakelock Detector shows that Google Play Services woke my device over 7,000 times, and almost all of them are from nlpwakelock. I've done my research on this issue and I don't need your anecdotal evidence telling me otherwise.

As I said before, if you don't have this issue, this thread isn't for you and nothing you have been posting here has been helpful in any way. If you've got solutions or ideas, post them, otherwise let it go.
[Nexus 5 General] aeoveu:
[MENTION=788951]LiquidSolstice[/MENTION] is my new favorite hero!

Also, to support his findings further, I actually turned off Google Now. NLP-related wakelocks were brought down from ~1 hour a day (over a 15 or 16 hour runtime of the phone) to...7 or 8 minutes (this is Google Now and Play Services).

If I were to look at the total drain, it's gone down from ~1h30m or so to around 25 min (these are rough estimates, since I'm not going to pull up a calculator and start calculating wakelocks... and since I had music playing for ~1 hour, I tried subtracting that from the equation).

So - yes - turning off Location Reporting partially fixes the problem. Turning off Google Now fixes it fairly well (so well I'm actually baffled!) and there are very, very little wakelocks from location (it's not zero - but more like around 5 or 8 minutes TOTAL vs. 55 minutes).

I hope I made some sense there on the usage. If that's not evidence enough, I don't know what is. I will miss Now's ability to pulll info from different areas onto one screen (weather, distance, locations, updates etc. etc. etc.) but you can do that manually (by using other apps, which aren't as convenient) and save on a TON of battery. Sigh.

So - Moto X doesn't suffer from this problem? Or did I mis-read it?

Edit: I still have scanning always on via wifi enabled (from within the wifi settings). So yes - you need to do two things to get rid of the biggest chunk of the drain, and make sure that you don't have an app installed that conflicts with the phone (like in my case, the updated Play Store - which still hasn't rolled out to my device despite being several days old!).
[Nexus 5 General] Moscow Desire:
Ok, here's a News Flash....

If you do not like the discussion, then by all means go to another thread somewhere.

There is no need for sarcastic remarks. It's simple. Move along.

There are folks here, who wish to knock about ideas, who probably know more about the system. And there are those, who probably want to whine and complain, and probably don't know diddly.

XDA is a place for learning folks. Rather than throw some sarcastic remarks at the folks who do know, maybe some should read and learn.

And please don't fall back on the old "freedom of speech" thingy. Not here. We have rules.

If you want to learn, then participate in a constructive manner.

MD
[Nexus 5 General] LiquidSolstice:
Well, he hasn't used his Moto X in a week or so, but he did use his Z1 and that seemed to be working. Then again, the Z1 has a 3000+ mAH battery whereas we have a 23000 mAH battery, so it's possible he just doesn't notice because of that.

I have never been a big user of Google Now and I usually don't touch it at all. That's why it was surprising to me that this is happening, and after seeing how well it knows my friend, I want to give it a chance to be useful to me (since right now it doesn't know much about me so I don't use it--vicious circle, right?)

Both turning off or downgrading Location Services as well as turning off Google Now have a profound effect on my battery. I've also found several threads on the official Google Group for Android where people are trying to figure it out (and a lot of them aren't even rooted).

I'm not sure what else to add; I suppose it's comforting that 4.4.3 is on the horizon, and perhaps with it we'll get Play Services/GNow updates as well.
[Nexus 5 General] zibiksior:
My girlfiend has a rooted Xperia Z1 with android 4.4.2 and this drain also occurs... I checked with BBS. Maybe it's related with kit Kat only? Actually I don't have any new ideas in this topic... I was reading your posts guys through the past few days hoping that someone figure this out but no one does... Like you said I think we have to wait for 4.4.3 update.
[Nexus 5 General] dmeerpa:
I have a Xperia ZL, and uses GoogleNow à lot, even the GoogleNow Launcher. When I was using Android 4.3 I could life with the battery performance. After 8,5h (working day) i used around 55% of my battery. But in the car I recharge it for about 45min. Good for 15-20% battery gain.

Since I upgraded to 4.4.2, I may be happy if I have 25-30% after 8,5h (working day). And I even do not gain 8% battery when charging it i the car for 45min. When looking at my battery stats Google Play Services is responsible for 86% of batterie consumption

So yes I think it's related to Android 4.4.2.

A also noticed that my phone was kept awake 100% of the time. I installed AwakeLock Terminator, it seems that it helps with the issue.
[Nexus 5 General] darksora145:
Yeah I have this issue as well with google play services. It wakes up thousands of times in a few hours not even a whole day. I had unplugged my phone and went to work at 8:30 and checked with wakelock detector at 12pm and I was baffled how long it stayed each time it woke my phone and how many times it checked my location in a short amount of time. I'm saw about 7k wake ups. That alone is unbelievable.
[Nexus 5 General] Ok_Kaleidoscope5109:
But isn't the root cause Google Now? It's pretty clear that Google Now is the one requesting all the location updates (and it makes sense). It needs to report traffic and time to destination as well as weather and those depend on your location. If you don't use those features, then maybe it's good to turn those off?

The bigger issue is what does "Location Reporting" actually do? If you turn it off, it's not like Google Now doesn't know where you are. When you open up Google Now, it still shows you the weather for your current location. If you turn off Location Reporting and you open up Maps, it still knows where you are.

Is my understanding correct that Location Reporting is more of Background Location Reporting meaning that Google apps in the background can gather your location data and constantly ping it and send it off to Google?
[Nexus 5 General] sherdog16:
That's my guess too. Google wants to know where you are at what times so they can make money off of the data. If you aren't reporting your location all the free stuff they give you (like location services and the like) is just that, free. I think this update was their answer to everyone turning off location reporting. Just one man's opinion though...
[Nexus 5 General] Ok_Kaleidoscope5109:
I think it's just very unclear. They should make it very clear that this is for background reporting only. I think a lot of users are mis-interpreting this and thinking that turning it off means Google apps can never get your location. It seems like they still can when the app is in the foreground.

But what update are you talking about?

Below is my understanding of the whole issue:

Location Reporting: Gathers your location in the background. You need this if you want Google+ to share your location w/ your friends constantly. You need this if you want Google Now to give you weather updates, traffic updates, etc. This is a background location reporting.

Location History: This is where Google can store your location history. It seems this might not be as big of a deal in terms of battery drain because if you're already reporting location to the servers, then this option only adds in the permission for Google to save that location in a log file. Shouldn't really hit your battery.

Google+: For some reason this sucker wakelocks like mad to begin with. With location sharing off, it still does it. This may be how the sync feature works in general.

Location Mode (High Accuracy): Uses GPS and Wifi/cell tower triangulation. With this on, Location Reporting can constantly ping your location in the background.

Location Mode (Device Only): Only GPS is used for location reporting. Therefore background location updates will fail because Google Now will not trigger GPS launch. It is interesting though that in testing on my Nexus 10 in High Accuracy mode though, that GPS does get activated for a solid 5-8 minutes a day despite the fact that I leave my device on my bed. I'm curious as to which app launches the GPS.

Location Mode (Battery Saving): While this feature does not turn on the GPS, I'd argue that it's not really battery saving. GPS shouldn't be triggered in the background anyway, and rarely does launch unless of course you're on Maps 24/7 or constantly on Yelp, etc. If you're just popping open those apps for a few minutes a day, you shouldn't have to worry. GPS is switched off the minute you exit those apps. If anything, you'll probably spend longer waiting for an accurate location lock and then realizing you need to switch GPS on for good accuracy and end up wasting more battery life trying to get location lock than if you just had high accuracy on.
[Nexus 5 General] sherdog16:
I want to share this for anyone who cares. I've done a few things which have given me Google Now back (I love having the suggested web articles to read which is why I even care in the first place) and I don't seem to get drain from it. Keep in mind this probably nukes search location abilities but not anything else that uses location. And it may still work, I however don't use Now for weather and daily commutes so they aren't a factor for me. Feedback welcomed as those might still work as well...

I went full retard on Search/Now by taking these steps (i have no idea what helped and what isn't needed so debug if you want, or just do everything)

Made Search a system App

Disabling 3 (Google Play Services) services in system tuner (ReportingAndroidService, LocationReportingService, ReportingSyncService)

https://dl.dropboxusercontent.com/u/38436349/2014-05-30 13.53.41.png

Setting the alarm multiplier x100 for search in the xposed module "per app hacking"

https://dl.dropboxusercontent.com/u/38436349/2014-05-30 13.57.07.png

I revoked wakelock permissions in App ops x

https://dl.dropboxusercontent.com/u/38436349/2014-05-31 14.01.05.png

And I also cut the wakeup path velvet.location.LocationReceiver via greenify but then un-greenified search. Don't know if this has any effect but it's something I did.

Final thoughts:

Overnight I had around 1% battery drain per hour with Gmail syncing every 2 hours so it's what I would expect

I had a lot of the NlpCollectorWakeLocks but no associated drain from them. There was something like 7 minutes worth and if they were true wakelocks, along with the other ones listed (some tasker, some gmail, some wifi), there would've been more than 1% per hour drain. I think they are just done when the phone is awake from something else (ie: a gmail sync) and recorded by BBS as wakes but they actually aren't waking the phone. Maybe an app issue with BBS.
[Nexus 5 General] zibiksior:
Hi, images are not working could you update please?
[Nexus 5 General] sherdog16:
Done
[Nexus 5 General] Mindspin_311:
Ok, all these latest updates at killing my battery

Sent from my Nexus 5
[Nexus 5 General] akash3656:
Hi, the fix for me was to keep Google search at version 3.3 and not to ever update it again until I'm forced to. (4.5/5.0?)

The latest update sucks battery and hides itself as "Google Play Services". Even after disabling the parking feature, it's still a hog.
[Nexus 5 General] sherdog16:
Mind sharing the APK for those interested?
[Nexus 5 General] Mindspin_311:
Yes, Google Play services is running wild on my phone.
[Nexus 5 General] Trumps:
My battery is getting murdered as well.
[Nexus 5 General] dmeerpa:
I discovered something.

I reinstalled my Phone again with Android 4.4.2. I installed all my apps. Using the Google Now Launcher.

Batterie consumptions seems normal. I see wake locks but acceptable.

But when driving to home from work I used Avertinoo (A radar notifying application that uses GPS). At home I closed the application. But suddenly I saw that the phone stays awake all the time. And Google Service is responsible for 86% of battery consumption.

Only solution, restart of the phone.

I did several test with this application. A short usage of the application does not seem to trigger the problem.

I did a test with Navigon (Navigation software) and I got the same problem.

So I think any application using the GPS for to long, will cause a problem with the Google service (endless loop due to time out ?).

Ok I agree I do not have a Nexus 5, so I could be I got another problem as well.
[Nexus 5 General] Ok_Kaleidoscope5109:
I wish there were stats about which apps are invoking these wakelocks. Like is it Google Now? Maps? Google Offers? Google+?
[Nexus 5 General] zibiksior:
I've tried solution which [MENTION=4486292]sherdog16[/MENTION] gave us and I figured out that just denying wake up and keep awake in App Ops for Google Play Services(not Google now) helps with wakelocks!

Here is how it looks like:

I'm using Mahdi ROM which has App Ops build in to the ROM. This method doesn't affect acquiring location by any other app. Google Now shows weather for my location etc.

Here is also screenshot how it looks like in BBS:

Hope it will help!

BTW. Any one tried 4.4.3 update? Is the issue also there?
[Nexus 5 General] maidenboston:
i do the same too. sometimes i deny only one of the wakeup just to see...

either way..location is fine, the wakelock decreased by alot.

but, sometimes i get a google play cannot locate something dialog...i just OK and go along my way...

(was mentioned awhile back in this thread...)
[Nexus 5 General] Nexces:
I don't have Nexus 5 but Xperia Z, however i was affected by Nlp battery drain and my phone was barely being able to make it through the day.

I tried many different solutions and finally i've settled on setting Location mode to Device only.

And this is how it looks right now:
[Nexus 5 General] demoncamber:
Dude!!! Seriously thank you!!! You just solved my remaining wakelocks!!!!! I only had a keep awake option in app ops though, nothing for wake up. Question: do you have Google now installed and do you use it?

Sent from my LG-D801
[Nexus 5 General] Mindspin_311:
Can you link the specific App Ops app that you are running? Is it in the play store or found here on XDA somewhere?
[Nexus 5 General] demoncamber:
App ops starter on play store

Sent from my LG-D801
[Nexus 5 General] akash3656:
You could have gotten it from a quick google search, but anyway here you go:

http://www.androidpolice.com/2014/0...ord-detection-settings-and-more-apk-download/

Also stock 4.4.3 comes with this version of Google Search IIRC.
[Nexus 5 General] tylerdurden83:
What functionalities do you lose by denying those? Cheers!
[Nexus 5 General] Mindspin_311:
Thanks! I installed an Xposed module, but it didnt show both options that you disabled.

---------- Post added at 12:27 PM ---------- Previous post was at 12:25 PM ----------

Weird, I can see the "Keep awake" option, but the "Wake up" option.

Im stock, rooted.
[Nexus 5 General] zibiksior:
Like I wrote I didn't noticed lost of any functionalities. Any app can acquire location. Google now is updating weather for my current location etc. Someone wrote that he is experiencing rare google services fc's and unfortunately I have to confirm that. I had 2 maybe 3 fc's of google play services within 3 days. But I think its not a problem and could happen because we do some stuff that shouldn't be made. :P

Also was written in my post I'm using built in to the Mahdi custom ROM App Ops, which can be different than xposed module or any other app.
[Nexus 5 General] fabolousrmx:
Hey all, I'm running Stock rooted on the S5 and I can't get App Opps Starter to run. Keeps FC'ing upon opening. Any tips on how to apply sherdog16's soultion?

Thanks
[Nexus 5 General] Ok_Kaleidoscope5109:
Crazy how it was only denied 4000 times but allowed 17k times.
[Nexus 5 General] jphilippon:
What location mode do you use? And is reporting and history on?

sent from my Nexus 5
[Nexus 5 General] nrd\:
All, I have come across this post from the reddit because of the npl.alarm.wakelock I am having too and I hopeI have finally solved mine (well only tested for 2 mins but hear me out)

Using Better Battery Stats I noticed under Alarm's the nlp.alarm was very high, 100+.

I googled around and came across posts referencing too Android Device Manager. I opened the app to see if it is working (locating the device). To my surprise it wasn't locating my nexus 4, the status under the phone was finding till it times out/unavailable after 30 seconds or so.

I tested with different Location settings (battery / device) and still failed. I checked the necessary for android device manager (made sure it was admin in security, enabled in google settings) that had no affect.

I then cleared the data cache / data for ADM, logged back in and voila its located the phone within seconds.

Checked the stats in better battery stats and the npl.wakelock dropped in half, low 30's and is now second on the drop down list.

To all those who are having issues check all apps that are querying location, all very well disabling wake locks / changing locations settings in settings but makes sure the the settings in the apps are set to what you need.

Hope this helps.
[Nexus 5 General] demoncamber:
Does anyone know the actual normal times that these wake locks should be operating at, so we know when they're operating correctly

Sent from my LG-D801
[Nexus 5 General] zibiksior:
I know this statistics are weird but the wakelock is not showing any more in BBS and battery life is better so that must mean something.

I'm using Battery saving mode and reporting/history off. But I think you can turn reporting/history on and it won't be a problem and everything should work. Any app should be able to use that functionality besides Google play services because it's reporting in background and it had to wake you phone what is blocked of course. ;)
[Nexus 5 General] leafs44:
I find it ridiculous I have to turn off features to get rid of this (app ops didn't work for me). Before the latest Google search update, this wakelock never happened with battery saving and location history/reporting off. Now, I get this wakelock all the time... I'm honestly just waiting for a fix from Google, and if they never do fix it I guess I'll have to keep looking for better "solutions" in this thread ;P
[Nexus 5 General] Sc0rp10:
Has anyone tried this solution?

http://xdaforums.com/showthread.php?p=53233734

I am currently testing it and my wakelocks have come down from thousands to hundreds. Deep sleep is way better and google now is still working.
[Nexus 5 General] demoncamber:
Testing it right now thanks.

Sent from my LG-D801
[Nexus 5 General] zibiksior:
Someone already posted it and this solution affects acquiring location for other apps. For example weather widgets can refresh location where you are right now. It helps but its not for everyone. Google now also stops working in some cases because in big part its also based on location.
[Nexus 5 General] Sc0rp10:
After spending the whole day on this setting I didn't notice any apps having location problems including google now. My location wakelocks were reduced by a quarter but the wake time is still 45~ mins for nlp wakelocks.
[Nexus 5 General] leafs44:
In the disable service app, you can get rid of the wakelocks by going into Google play services, and unchecking "GoogleLocationService". This stops the wakelock for me, but I do lose some functionality in apps.