[Q] nlpwakelock "Use wireless networks" - Galaxy S III Q&A, Help & Troubleshooting

Hi,
Whenever the "Use wireless networks" setting is on under "Location services", I get constant "nlpwakelocks" and battery drain.
However, I see that this was supposidely fixed by Google: http://www.androidpolice.com/2013/05/29/download-latest-google-play-store-4-1-10/ (my version is 4.3.11).
Does anyone else have this issue? I've only started looking into wakelocks and have had the phone 5 months and have never had better battery than with this option turned off. Yes the simple answer is "turn it off", but I find I can get location locks quicker with it on, and also my phone can locate me when indoors.
I use Google+ location services so I can locate trusted friends (and they can locate me), and previously Google Latitude, but surely they shouldn't be constantly requesting my location and Android should prevent this in someway?
Cheers.

I too suffered this issue (several times on different roms). Nlpwakelocks appeared in an insanely high abundance (several thousand wakelocks in a single day).
My first fix consisted of uninstalling all updates of google play, google services framework and google play services, clearing caches and deleting the data of the before mentioned in Appmanager, then do a reboot and re-install the updates again. Magically, the number of wakelocks dropped to a quite acceptable level. It still was the major cause of wakelocks, but it didn't drain the battery nearly as much as before. Since then, I had the "Use wireless networks" setting enabled without heavy battery drain. I could happily live with this result.
However, since I updated to 4.3 (CM 10.2), there's no longer a button to uninstall updates of those services in AppManager. Luckily though, clearing caches and data then reboot seems to suffice now.
The only caveeat seems to be google maps. Since the update, you need to be logged in to your google account to see your favorite places in google maps. Unfortunately, maps then begins to poll your location every few minutes, thus raising nlpwakelocks to an alarming level again.
Since I've not found a workaround for this yet, I always logout of google maps after use and login again when needed. Not very comfortable, but this way I'm still able to use Google Now while experiencing an acceptable battery life.
Hope this helps!

Here's the fix, if you're rooted: http://forum.xda-developers.com/xposed/modules/mod-nlpunbounce-reduce-nlp-wakelocks-t2853874

Related

Using CM7-based ROM? Disable Google Location Services

This has been driving me nuts for weeks, so I figured I'd share the info.
Recent releases of Google Maps has been causing intermittent problems for lots of people recently, and seems to especially affect users of CyanogenMod 7. What I kept wondering was why several instances of Google Maps would show up in Advanced Task Manager. But what really confused me, was why my battery stats showed Google Maps drawing almost as much battery usage as my WiFi, which is basically on all day.
It's not exact, but with nothing else going on, WiFi seems to drain about 2% per hour. So basically Google Maps was doubling my non-screen related battery drain for no reason. The part that made this hard to track down is that it went away after a reboot, and only seemed to start lagging after the phone had been on for a few hours during the day, where it would start lagging like it was continuously starting and stopping a CPU-hungry process in the background.
Based on an offhand comment someone said in the GSB thread, I went into Menu -> Settings -> Location & security, and unchecked 'Use wireless networks'. I saw that the Google Maps battery drain was still going, so I rebooted. I mean... it's CM7, so you can put a satellite toggle in the notification area if you need location data. No need to keep it on all the time, right?
So far this reboot has been up for 40-hours, and I'm at 83% after being unplugged for 7 hours with mixed usage. Google Maps isn't even in my list of apps that have used battery power. I'm not going to declare this "problem solved!" but it might work out for you if you've been having similar problems.
I'm using gsb 3.6 and haven't had any of the problems with navigation that other people have had. I keep location turned off and set it like that whenever I install a new rom. You may be on to something.
Sent from my GSB v3.6 using XDA App
trifthen said:
Based on an offhand comment someone said in the GSB thread, I went into Menu -> Settings -> Location & security, and unchecked 'Use wireless networks'. I saw that the Google Maps battery drain was still going, so I rebooted. I mean... it's CM7, so you can put a satellite toggle in the notification area if you need location data. No need to keep it on all the time, right?
So far this reboot has been up for 40-hours, and I'm at 83% after being unplugged for 7 hours with mixed usage. Google Maps isn't even in my list of apps that have used battery power. I'm not going to declare this "problem solved!" but it might work out for you if you've been having similar problems.
Click to expand...
Click to collapse
I tried this a few days ago. I have seen an increase in battery performance. Thanks trifthen!
Thanks this helped a lot

Google Play services usage is running wild

Yesterday morning I noticed that I was getting CONSTANT network usage (even though I was doing nothing with the phone) so I turned on My Data Manager application to track what was doing this. So from about 8am until about midnight Google Play Services racked up about 300MB of data usage until I finally turned off 4g. This activity was constant throughout the whole day and was just killing my battery.
This morning I reboot the phone and Google Play Services is now again up to 13MB of data usage within the last hour. I have never seen this activity before and it is again sucking the life out of my battery. It would really be good to know what is going on that would use 313MB of data (and still going) and I still cannot track what it is doing. I have not signed up for any new Google services. I can even close down the Google Play application and the network usage just continues on.
Anyone else notice this type of extreme usage from Google Play Services?
exmeaguy said:
Yesterday morning I noticed that I was getting CONSTANT network usage (even though I was doing nothing with the phone) so I turned on My Data Manager application to track what was doing this. So from about 8am until about midnight Google Play Services racked up about 300MB of data usage until I finally turned off 4g. This activity was constant throughout the whole day and was just killing my battery.
This morning I reboot the phone and Google Play Services is now again up to 13MB of data usage within the last hour. I have never seen this activity before and it is again sucking the life out of my battery. It would really be good to know what is going on that would use 313MB of data (and still going) and I still cannot track what it is doing. I have not signed up for any new Google services. I can even close down the Google Play application and the network usage just continues on.
Anyone else notice this type of extreme usage from Google Play Services?
Click to expand...
Click to collapse
No, but have you tried clearing the data from within the application manager under phone settings?
I cleared the data like you said and the network activity stopped. I rebooted the phone and the network activity started up again. Again, I cleared the data and it stopped.
exmeaguy said:
I cleared the data like you said and the network activity stopped. I rebooted the phone and the network activity started up again. Again, I cleared the data and it stopped.
Click to expand...
Click to collapse
Download Wakelock detector https://play.google.com/store/apps/...EsImNvbS51enVtYXBwcy53YWtlbG9ja2RldGVjdG9yIl0 from the play store and open it once to get the app running. What it does it is tracks all the application/services that prevent your phone from remaining in deep sleep. Although you already know it's the google play services that hogging up your data, you don't know if it's another app that's triggering google play services to run and that's what the Wakelock detector app can provide you with.
The app doesn't track anything when the phone is plugged up and charging, so make sure you have a good charge on your phone, you're unplugged and turn off the screen for an hour or two so that the Wakelock detector app can gather some data.
For those of you who are experiencing your google services draining your battery with all location tracking features turned off on your device, there is a play store update date called 4.1.10 that will replace 4.1.6 that has location bug battery draining issue. In my particular case it is the nlp wakelock service that is constantly running, which falls within the google services.
The download can be obtained from Android Police website http://www.androidpolice.com/2013/05/29/download-latest-google-play-store-4-1-10/. You can simply install this apk file through the normal installation process of install apps.

Google Services

After digging through the internetz, I finally found how to stop Google Services from draining battery. It's not a ROM issue. It's a Google 4.2.2 issue.
Location Services> uncheck Wi-FI & mobile network location.
I had amazing battery improvement all day yesterday with Wi-Fi netwok location unchecked. Even more evidence, my battery would drain 12-14% overnight with the Google Services issue. After having it unchecked last night, it only drained 2% overnight.
To confirm, I booted up this morning with it uncheck, Google services was way on the bottom of the list. I checked Wi-Fi network location a few hours ago, Google Services is now second on the battery stats list.
No idea what's causing the issue, but unchecking Wi-Fi network location seems to cure the symptom.
h_10 said:
After digging through the internetz, I finally found how to stop Google Services from draining battery. It's not a ROM issue. It's a Google 4.2.2 issue.
Location Services> uncheck Wi-FI & mobile network location.
I had amazing battery improvement all day yesterday with Wi-Fi netwok location unchecked. Even more evidence, my battery would drain 12-14% overnight with the Google Services issue. After having it unchecked last night, it only drained 2% overnight.
To confirm, I booted up this morning with it uncheck, Google services was way on the bottom of the list. I checked Wi-Fi network location a few hours ago, Google Services is now second on the battery stats list.
No idea what's causing the issue, but unchecking Wi-Fi network location seems to cure the symptom.
Click to expand...
Click to collapse
Err...No offense, but you didn't find a "secret" that people didn't know about. Location services constantly uses wifi and mobile signals to pinpoint your location. It's a ground-based GPS-type system, and it drains battery.
I mean it's good that you fixed the issue on your phone, but doing a bit of research would have uncovered this a long time ago (way before 4.2.2)
wifi & mobile network location has never caused this significant of a battery drain before on any device or any previous android release. i switch between the s4 and a galaxy nexus running 4.1.2. google services isn't even a blip on battery usage page on my gnex. i've been using android since jan 2009 with the OG droid and this is the first time that i've ever had to uncheck that box because of significant adverse impacts to battery. google services has never been a battery hog until just very recently.
i didn't claim that i discovered it. i admitted that i found this solution on the web.
i posted this because i've read complaints about google services battery drain on a few different rom threads in the development section where people are incorrectly blaming the rom releases for the google services issue.
cool that it wasn't news to you, but it may be news to others.
h_10 said:
After digging through the internetz, I finally found how to stop Google Services from draining battery. It's not a ROM issue. It's a Google 4.2.2 issue.
Location Services> uncheck Wi-FI & mobile network location.
I had amazing battery improvement all day yesterday with Wi-Fi netwok location unchecked. Even more evidence, my battery would drain 12-14% overnight with the Google Services issue. After having it unchecked last night, it only drained 2% overnight.
To confirm, I booted up this morning with it uncheck, Google services was way on the bottom of the list. I checked Wi-Fi network location a few hours ago, Google Services is now second on the battery stats list.
No idea what's causing the issue, but unchecking Wi-Fi network location seems to cure the symptom.
Click to expand...
Click to collapse
Isn't this the option that allows Google Now to calculate distance and time for cards that appear?
jvcjbl said:
Isn't this the option that allows Google Now to calculate distance and time for cards that appear?
Click to expand...
Click to collapse
I'm not sure. I disabled Google Now a week ago trying to resolve the Google Services battery drain issue.
jvcjbl said:
Isn't this the option that allows Google Now to calculate distance and time for cards that appear?
Click to expand...
Click to collapse
It is. Disabling this will disable google now as well. I have this battery drain issue since my S3 from June last year. I need to disable wifi location to save battery life when I am on 4.0.4, 4.1, 4.1.2 and 4.2.2. It is always like that for me.

Does google search prevent deep sleep/toggles wakelock?

Hi,
I've been having problems with deep sleep with wifi on at night, draining 100%->60% overnight.
I've been troubleshooting, and found out it's WLAN_RX_WAKE wakelock being toggled thousands of time overnight, so I set out to find the culprit.
With Shark for root, I noticed that there were 1-2 IP's that were mostly sending packets to my phone and googled them and it turns out the IP's belong to "GOOGLE".
In BBS, i noticed in data usage, that google search and google were the two apps using up data overnight (when I didn't touch my phone.)
So is it safe to say that google search is the cause of the sleep-deprivation my phone is getting? And did anyone else have similar problems? I don't necessarily want to freeze google search because I use it often enough for voice commands, but I guess I might have to if it's the culprit. Otherwise I'm at a loss. Any ideas?
More info: Location is off, no sync going on, no e-mail sync either, etc.

Battery Drain Solution!

For those that have had issues with battery drain like I did, I may have finally found the solution.
After much research and reading many threads I found that the culprit was google play services. Specifically it was Google (I believe on Now) always trying to figure out location.
It always does a quick wifi check to try and figure out what's what. However due to a bug that has been in the coding since launch of KitKat (hurry up and fix it google) it fails and will just continue to try and try and try.
Solutions I found were to turn off location access on phone or edit Google Play Services Permission, specifically disable stay awake permission.
Turning off location, google now access to location, or both resulted in temporary fixes and I believe google still tried to figure it's location via wifi despite being told not to.
Long story short...if having just wifi location doesn't work.. and having location off doesn't work...
Then why not switch mode to high accuracy in which GPS is left on!
Google uses GPS for location, it works in one try, everyone is happy!
Long story short, if you have KitKat and are experiencing high battery drain with you phone constantly awake when off.
Switch your location settings to High Accuracy. Phone is smart enough to not use GPS when not needed.
It worked for me and it might work for you too!:good:
(Hopefully this fixes it for good)
Kolma said:
For those that have had issues with battery drain like I did, I may have finally found the solution.
After much research and reading many threads I found that the culprit was google play services. Specifically it was Google (I believe on Now) always trying to figure out location.
It always does a quick wifi check to try and figure out what's what. However due to a bug that has been in the coding since launch of KitKat (hurry up and fix it google) it fails and will just continue to try and try and try.
Solutions I found were to turn off location access on phone or edit Google Play Services Permission, specifically disable stay awake permission.
Turning off location, google now access to location, or both resulted in temporary fixes and I believe google still tried to figure it's location via wifi despite being told not to.
Long story short...if having just wifi location doesn't work.. and having location off doesn't work...
Then why not switch mode to high accuracy in which GPS is left on!
Google uses GPS for location, it works in one try, everyone is happy!
Long story short, if you have KitKat and are experiencing high battery drain with you phone constantly awake when off.
Switch your location settings to High Accuracy. Phone is smart enough to not use GPS when not needed.
It worked for me and it might work for you too!:good:
(Hopefully this fixes it for good)
Click to expand...
Click to collapse
its working bro......cheers......:good: great ........
So usually I just keep GPS off to save battery. What your saying is to keep GPS on with high accuracy may actually improve battery life over keeping GPS off altogether?
Sent from my Virgin Mobile CDMA HTC Desire 601 zara_cl
what about device sensor's setting?
hi all
is there anyone here already try AppOpsXposed? http://forum.xda-developers.com/xposed/modules/xposed-appopsxposed-appops-4-3-t2564865
it's work at My desire 601 kitkat 4.4.2 without root
this apps can disable hidden system location and other thing but not sure work or not but so far my battery getting better now...
I have the same problem but the solution doesn't work.
I think you fixed the problem by charged the phone and not with switch gps (see your graph).
My solution now is only reboot.
hansvongrobel said:
I have the same problem but the solution doesn't work.
I think you fixed the problem by charged the phone and not with switch gps (see your graph).
My solution now is only reboot.
Click to expand...
Click to collapse
I have GPS switched on. it just doesn't keep it running google play services will turn it on as needed instead of trying to get location from wifi and locking up even when told not to.
Different people have had luck with different solutions and this was mine.
Here are my results from today, the first small block of awake is from me Listening to music for about an hour on 4G.
Not sure what the second block is, might have been apps that updated or the bug returning for a couple minutes. (battery was at 45% at time of pic)
Thanks for this! I'm going to have my wife give it a try!

Categories

Resources