Nlpwakelock causing device to stay awake - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

Google services is to battery consumer because it keeps phone awake. Something to do with location services causing it based on screenshot below. I'm latest nightly CM and seems to be the only one affected by this issue since nobody else complained about it
Sent from my SGH-I337 using Tapatalk 4 Beta

Same crap here as well. As u can see I'm on a totally different device. There was another thread on it with no solution I think.
---Sent from a viperx-ed OneX

Turn network location off. You really don't need it on all the time. That's the only way I know of getting rid of that wake lock.

I just realized. Location reporting turned itself back on, on maps app
I turned it back off. Will see if that helps.
When it was off I'd probably get 1min of that wakelock for the entire day.
---Sent from a viperx-ed OneX

mibtnt said:
I just realized. Location reporting turned itself back on, on maps app
I turned it back off. Will see if that helps.
When it was off I'd probably get 1min of that wakelock for the entire day.
---Sent from a viperx-ed OneX
Click to expand...
Click to collapse
If its of from boot, I don't get any.

jd1639 said:
Turn network location off. You really don't need it on all the time. That's the only way I know of getting rid of that wake lock.
Click to expand...
Click to collapse
x-actly.
NLP stands for Network Location Provider I would guess as it appeared to me first when Google Location Services asked me to switch on the WLAN location detection for "more accurate results".
Might be helpful if in some building where you don't get GPS locked but isn't really needed that much otherwise.

i have location access OFF and have HUGE DRAIN on Nlpwakelock

I had a similar problem on my Nexus4 - after I turned location services on and off again, the NlpWakelock would keep my phone awake and not go to deep sleep.
However, I found a fix for this issue. The culprit service is called GoogleLocationManagerService, and the solution is to disable this service only (I have no idea what other complications may arise from this, but at least my phone now goes to deep sleep). This service can be disabled with ROM Toolbox or a similar app.
In ROM Toolbox you go to App Manager, find Google Play Services and select Advanced Freeze. Now find the service (has a red border) called GoogleLocationManagerService and disable it. Now I can switch on and off location and still go to deep sleep, and location IS working.

ameinild said:
I had a similar problem on my Nexus4 - after I turned location services on and off again, the NlpWakelock would keep my phone awake and not go to deep sleep.
However, I found a fix for this issue. The culprit service is called GoogleLocationManagerService, and the solution is to disable this service only (I have no idea what other complications may arise from this, but at least my phone now goes to deep sleep). This service can be disabled with ROM Toolbox or a similar app.
In ROM Toolbox you go to App Manager, find Google Play Services and select Advanced Freeze. Now find the service (has a red border) called GoogleLocationManagerService and disable it. Now I can switch on and off location and still go to deep sleep, and location IS working.
Click to expand...
Click to collapse
i've been searching for a solution for ages and even followed the advice of another thread to disable location finding on both maps and google now and for some reason the nlpwakelock is still showing up. i'm going to try your fix but i was wondering if you've encountered any issues ever since disable googlelocationmanagerservice?

I often noticed nlpwakelock being the main culprit for Google Services battery usage. I even saw that it kept my phone awake for hours some days...
I tested some fixes and found that disabling the "use wireless networks" in the location services settings completely removed that wakelock.
Personally, I'd rather have that feature than save the little battery it uses. Despite keeping my phone awake for 1-2 hours on most days, as reported by GSAM Battery Monitor and Wakelock Detector, it uses a pretty small amount of battery:
Typically my phone's battery monitor will report about 20-30% of the battery used by Google Services. GSAM Battery Monitor seems to break that down into two parts: about 10% Google Services and 15% kernel, on average. However, these numbers are deceiving. That 10% that Google Services is only 10% of "App Usage" as reported by GSAM. Furthermore, App Usage is often only about 50% of my battery usage.
If my battery is at 50%, that means Apps only usage 50% * 50% = 25% of my 100% battery. Then, Google Services only used 10% of that 25%...so 2.5% of my overall battery capacity. I found this quite surprising considering the report that the wakelock keeps my phone awake for 1-2 hours...
So while Google Services is often shown as my #1 or #2 battery user in the App Sucker page, at 10-15% usually, that's only like 2-5% of the total 100% battery capacity each day. If I'm really going to be pushing my battery limits I might disable it to save some juice, but generally I find it's not worth disabling the feature to save such a small portion of my battery.

ender127 said:
i've been searching for a solution for ages and even followed the advice of another thread to disable location finding on both maps and google now and for some reason the nlpwakelock is still showing up. i'm going to try your fix but i was wondering if you've encountered any issues ever since disable googlelocationmanagerservice?
Click to expand...
Click to collapse
Hi. No, I've not had any issues,*but unfortunately the fix doesn't always work - but if the wakelock still persists, shutting down the service or location service again removes the wakelock, but it takes the manuel action of re-disabling the service again. Still better than having a wakelock though..

Related

Network location major battery drain

After a couple days of normal use I started getting frustrated that my battery wasn't lasting very long and that Android System was consistently the top entry on the battery use screen. Time for some investigation.
I got adb working and logcat revealed that my phone was doing a lot of network location fixes. One would trigger every couple minutes even when the phone was sleeping.
I turned off network location and the results are stunning. With two hours off the charger so far this morning, my battery still says 100%. Cell standby and Phone idle are now my top battery use entries, with Android System a distant third.
The problem, of course, is that I like using network location. On demand GPS fixes are slow and do not work in many of the places I want to use location. I want to figure out if the G2's Android build is just doing location fixes too often of if the problem is really my poor signal problems in most of the places I go. I wonder if my phone is constantly jumping towers, triggering location fixes.
This is where you all can help:
Are you experiencing high battery drain with network location on?
Is Android System at the top of your battery use list?
If you know how to use adb logcat, are you seeing a lot of network location fixes?
My next step is to try logcat with my G1 running CM 6.0.0 and see if it also does frequent location fixes.
TLDR: Turning off network location dramatically increased my battery life. Trying to figure out if the problem is caused by software or by my low cell signal.
I had this exact same issue on the G1. I heard once that it was related to the GPS running frequently even when the phone was idle. Just disable the network location option and you'll continue to be good to go.
Is it definitely not a 3rd party app doing this?
I leave network locations on and my battery lasts.
How funny you bring this up as I jsut did this this morning. However a little differently.
Ive been noticing huge drains. Well, I have the Battery Watcher widget, and have seen the Android System was taking up like 45% of the drainage with things like
VPN Services (huh???)
Google Backup Transport
Setup (again, huh???)
Network Location
Android System
Settings Storrage
HTC Checkin Services
Account and Sync Settings
All I turned off was Background data, and for the last 2hrs, my battery has been @ 100%, and Im running both Tweet Deck and Trillian with 3 - 5 accounts on each
Jorsher said:
Is it definitely not a 3rd party app doing this?
I leave network locations on and my battery lasts.
Click to expand...
Click to collapse
I don't think it's a third party app because I turned everything off on the few apps I have that use location. I will definitely do some more testing by uninstalling apps this evening to see if anything changes. There is one app I can think of that could be doing this, but it was never a problem on my G1 (or maybe I just expected bad battery life on my G1).
Edit: Wow. At 3 hours and 10 minutes off charger now and still 100% battery. I hope I can find a third party source for this problem so I can use network location and get great battery life.
swags said:
I don't think it's a third party app because I turned everything off on the few apps I have that use location. I will definitely do some more testing by uninstalling apps this evening to see if anything changes. There is one app I can think of that could be doing this, but it was never a problem on my G1 (or maybe I just expected bad battery life on my G1).
Edit: Wow. At 3 hours and 10 minutes off charger now and still 100% battery. I hope I can find a third party source for this problem so I can use network location and get great battery life.
Click to expand...
Click to collapse
Yeah... I'm not using any location-using apps except what was preinstalled, with the exception of SpeedTest. Battery works just fine and I only see GPS if I'm actually using the app. I could do some logging later I suppose to see if it's being used more than I think, but the battery life definitely isn't suffering.
swags said:
After a couple days of normal use I started getting frustrated that my battery wasn't lasting very long and that Android System was consistently the top entry on the battery use screen. Time for some investigation.
I got adb working and logcat revealed that my phone was doing a lot of network location fixes. One would trigger every couple minutes even when the phone was sleeping.
I turned off network location and the results are stunning. With two hours off the charger so far this morning, my battery still says 100%. Cell standby and Phone idle are now my top battery use entries, with Android System a distant third.
The problem, of course, is that I like using network location. On demand GPS fixes are slow and do not work in many of the places I want to use location. I want to figure out if the G2's Android build is just doing location fixes too often of if the problem is really my poor signal problems in most of the places I go. I wonder if my phone is constantly jumping towers, triggering location fixes.
This is where you all can help:
Are you experiencing high battery drain with network location on?
Is Android System at the top of your battery use list?
If you know how to use adb logcat, are you seeing a lot of network location fixes?
My next step is to try logcat with my G1 running CM 6.0.0 and see if it also does frequent location fixes.
TLDR: Turning off network location dramatically increased my battery life. Trying to figure out if the problem is caused by software or by my low cell signal.
Click to expand...
Click to collapse
It's generally well known/accepted that turning off location services will show drastic battery improvements.
arich said:
It's generally well known/accepted that turning off location services will show drastic battery improvements.
Click to expand...
Click to collapse
I think there is a fair amount of debate on just how much network location does impact battery. Maybe it's just a matter of what sort of battery life people expect. I'm trying to figure out if there is any way to reduce the battery drain from network location, particularly by reducing the frequency of location fixes while the phone is asleep.
It looks like network location is very different on my G2 compared to my G1 with CM 6.0.0. While the G2 appears to check the network location every minute, the G1 only seems to do it on demand. On demand makes a lot more sense. Does Google really need to collect where I am every minute of the day?
Does anyone know if leaving gps on will render the same (or better) results, while facilitating it's functions on demand rather than random sampling via network location?
I read somewhere that leaving gps on, doesn't necessarily drain the battrery unless actively being used.
When I leave GPS location on with the phone sleeping I do not see any location activity in logcat. I think GPS location is purely on demand.
After playing around a bit yesterday, I don't think any apps that I installed are causing the constant network location fixes. That's not to say that one of bundles apps isn't misbehaving, of course. What I have noticed is that while the phone seems to do a location fix every minute normally, additional locations requests will occur when apps are actively seeking the location. It looks like all these requests may not actually be location fixes, but instead simply getting the location already stored in the system. Nonetheless, this is causing CPU activity and draining the battery.
I'm not sure where to go next with this, but am open to any suggestions.
Having this issue as well... android system is in the highest partial wake and when I turn off location services via network, it does it less. So does anyone know why location needs to keep going on and on?
BriEE said:
Having this issue as well... android system is in the highest partial wake and when I turn off location services via network, it does it less. So does anyone know why location needs to keep going on and on?
Click to expand...
Click to collapse
When you enable Use Wireless Networks under Location, it prompts you that it will collect background data for Google. That's why it's a battery drain
Curious for anyone on the Sense ROMs - is there a way to get the weather widget to work without enabling Wireless Network Location? I have GPS enabled, and Fancy Widget worked fine with just that, but Sense won't update location w/o Wireless Networks enabled it seems.
FYI, this problem went away for me completely after I did a factory reset a few weeks back. The constant network location activity in the logs went away, and I've been able to leave network location on full time since then with no significant battery drain. The one thing that I may have done differently was that I never ran many of the bundled apps that use location after the reset.
How can I check in logs for which network activity runs?
Use aLogcat from the market or, if you are familiar with adb, use adb logcat from your computer.
swags said:
Use aLogcat from the market or, if you are familiar with adb, use adb logcat from your computer.
Click to expand...
Click to collapse
I have both options since I have quick system info and adb installed on my PC as well.
but what exactly am I looking for?
I don't recall what the exact entries are, but if you're having the network location problem that I was it is hard to miss. There were log entries that clearly indicated checking the location every minute, even while the phone was in sleep. It's probably easiest to check with logcat because you can let the phone sleep and monitor the log without all of the activity that occurs only when it is awake.

Google Services/Google Play Service/Google Framework Services draining battery

Bear with me. If you are an expert on android maybe you can help me out here. First off, I have researched the crap out of this problem and still been unable to fix it, so YES, I did search before making this thread.
I am on a stock, rooted Verizon Galaxy S4. I have been watching my battery consumption carefully via the integrated battery settings menu, battery stats plus and wakelock detector apps. Mainly, there is a program or set of programs that typically is called "Google Services" that according to the integrated battery menu is consuming anywhere between 20-45% of my battery, sometimes more than the screen on time! My battery life is around 48hrs with 10hrs screen time but that is on the massive zerolemon 7500mah battery which I just bought, so I am not sure if that is above, below or just average (i.e. I have no real standard by which to judge).
Like I said I have read probably every thread about this problem with remedies such as; disable location, turn off google now, turn off google maps reporting, uninstall updates for google play/google play services/google framework settings, turn off google sync etc. I have tried them ALL, none seem to work. I have a feeling the issue is perhaps more in depth and above my head.
It gets more complicated. Although the stock android integrated battery menu reports it as using a massive amount of battery, the other two apps I mentioned above do not even report it, or at least not under a name that I regonize (perhaps that categorize it under a different process?). Under them screen time is by far the highest consumer.
So what to make of this? Is it a false report that the stock integrated android battery menu is reporting, and thus something to disregard? I doubt that because there are many other threads out there of people with the same problem and questions I have. But It's also not like my battery drains within hours. For instance, today I have been off the charge for 12.5hrs, with 3hrs and 40min of screen time and have 63% remaining on the 7500mah zerolemon extended battery.
If you can help, please do. If this is indeed a major drain I would really like to fix it.
Gulanowski said:
Bear with me. If you are an expert on android maybe you can help me out here. First off, I have researched the crap out of this problem and still been unable to fix it, so YES, I did search before making this thread.
I am on a stock, rooted Verizon Galaxy S4. I have been watching my battery consumption carefully via the integrated battery settings menu, battery stats plus and wakelock detector apps. Mainly, there is a program or set of programs that typically is called "Google Services" that according to the integrated battery menu is consuming anywhere between 20-45% of my battery, sometimes more than the screen on time! My battery life is around 48hrs with 10hrs screen time but that is on the massive zerolemon 7500mah battery which I just bought, so I am not sure if that is above, below or just average (i.e. I have no real standard by which to judge).
Like I said I have read probably every thread about this problem with remedies such as; disable location, turn off google now, turn off google maps reporting, uninstall updates for google play/google play services/google framework settings, turn off google sync etc. I have tried them ALL, none seem to work. I have a feeling the issue is perhaps more in depth and above my head.
It gets more complicated. Although the stock android integrated battery menu reports it as using a massive amount of battery, the other two apps I mentioned above do not even report it, or at least not under a name that I regonize (perhaps that categorize it under a different process?). Under them screen time is by far the highest consumer.
So what to make of this? Is it a false report that the stock integrated android battery menu is reporting, and thus something to disregard? I doubt that because there are many other threads out there of people with the same problem and questions I have. But It's also not like my battery drains within hours. For instance, today I have been off the charge for 12.5hrs, with 3hrs and 40min of screen time and have 63% remaining on the 7500mah zerolemon extended battery.
If you can help, please do. If this is indeed a major drain I would really like to fix it.
Click to expand...
Click to collapse
Did you trie to disable the network location? It works for me.
Moz007 said:
Did you trie to disable the network location? It works for me.
Click to expand...
Click to collapse
Yes that seems to work, but it's not really a "fix" as now I cannot use the location feature of many of my apps. Basically traded one problem for another, albeit lesser one.
I'm still trying to figure it out as since last update (MEA firmware) , my phone is heating a lot.
I had this problem with data connection on, I had this problem in airplane mode, but not strangely with having connection to wifi.
I also observed that google services and android system is consuming most of the battery. earlier when I used to get 8-10% consumption in full use in an hour, now, 8-10 % is consumed within 30 mins.
No tweaks are working. Frozen a bunch of apps but the problem is still there.
Just now I've uninstalled fileexpert HD , as "greenify" told me that since last 20 minutes my phone is on, it has taken 250+ wake locks.
I'm charging my battery to full to check if that solves my problem.
will try to disable location services and report back on the results.
Bump
Have the exact same problem, before the latest firmware my phone had awesome battery life, and now the battery goes from 40% to zero in just a few hours without any app running when I'm sleeping... it's horrible. Same problem with my wife's S4 since the latest update... It absolutely sucks.

Stopping services from Task Manager helps battery

Recently been getting battery drain while on Idle. This drain I tend to notice at night. My phone can idle duriing the day but does not drain battery.
I recently disabled Android system IQ agent .. and it seems to have helped at night after rebooting and stopping that service.
I also noticed when you go to task manager and go to settings there is an option to stop services. I checked Facebook (51 services wth). Google Play Books , Magazines, and Movies\TV. I also checked Google play services (65 services).
Believe it or not my phone seems to be running fine and my battery life is a lot better.
Now I set my brightness at 47% (not auto), Google Now is enabled with Wifi and mobile location. Google backup is enabled (most are unchecked including app data) Email is manual sync.
Just thought I"d pass this along. YMMV.
Thanks for your tips. I noticed random battery drain these few days, no idea what it is, high battery drain when idle, and it happens randomly. Will try and report back. Thanks
smallgreenbear said:
Thanks for your tips. I noticed random battery drain these few days, no idea what it is, high battery drain when idle, and it happens randomly. Will try and report back. Thanks
Click to expand...
Click to collapse
What's the exact name of the apk / the service? Afaik I do not have any matching process so far...

[Q] Screen destroying battery

So I just figure I'll ask about this, but I have a feeling people will suggest I wipe and I just don't have time to do that anytime soon... But it appears that my screen is absolutely destroying my battery life. I keep the screen off whenever I'm not using the phone, but just now in 6hours on battery i'm down to 69% and 57% of it is all screen. The next biggest is 11% on Android OS. Just doesn't seem normal right? Any ideas?
Screen wil always be at the top of the battery list in Settings, if it is not there is something seriously wrong.
One thing you need to understand; the percentage listed there is not the actual percentage of drain. It's how much of the actual percentage is caused by those apps/systems/hardware.
So 57% screen means that of the total drain, 57% is caused by the screen. The total drain is not 57%.
Try using BetterBatteryStats and Wakelock Detector to find out what is really draining your battery. You can find them here on XDA, and on Google Play.
Do you have autosync on? What wallpaper? Location services?
Send From My Samsung Galaxy Note 3 N9005 Using Tapatalk
All my syncing is on yea, just a plain wallpaper, not a live one, and I have Access to my location and use Wireless Networks checked in location services. GPS is off whenever I'm not using navigation. I'll check out those apps. someone else suggested batterydoctor so I'm playing with that one right now, not that it's really telling me anything except to kill apps, which I know is against the general consensus on these boards (killing apps manually)... And of course it says to turn my brightness down or to auto, which I don't even like the phone when it's not on full brightness so that's a no go.

Google Play Services Keep awake

Hi
I don't know since when, my phone battery starts to drain so quickly. Initially I though is the apps that I installed causing this, but looking into the battery statistics, it is actually google play services, it keeps awake for so long!!
I then did a search on google and found out that it is not a recent problem, and possibly the best (or true) solution is to disable keep awake. Hence I went to "Privacy Guard", found out google play services, and turn off "Keep awake". However it doesn't help!!!
I also installed WakeLock Detector to see which app is waking up the device, and what it is reporting is different to the battery statistic, it reports a communication app that I use, "WeChat", it keeps wake up my phone, but since it is a chatting up, I don't want to disable its function.
Other solution I found is to disable google location history, which I have also done it. I have also installed Amplify from Xposed to try to extend my battery life. GPS is completely turned off.
BUT, all these steps didn't help and the battery statistics still reporting that google play services use a lot of battery and most of the time it keeps awake.
Can someone help me please?
Many thanks!
I am using Carbon ROM with Hell's core kernel, stock settings.

Categories

Resources