Hi everyone,
I have Nexus 6 with stock Android 7.0, rooted. Right now I have a huge problem with NlpCollectorWakeLock , that can last up to 10h every day and drains my battery. How can I disabled that wakelock, since Xposed is not yet available?
Isn't this usually from having wifi scanning on? Or having location set to also use cell towers. I would turn both of those off.
How do you disabled wifi scanning in Android 7.0? I don't see that option. My location is currently set to High Accuracy and I have location history disabled. If I change location to GPS only that basically means that I will not have location info while indoors, which is not acceptable trade-off for me.
EnricoAdams said:
How do you disabled wifi scanning in Android 7.0? I don't see that option. My location is currently set to High Accuracy and I have location history disabled. If I change location to GPS only that basically means that I will not have location info while indoors, which is not acceptable trade-off for me.
Click to expand...
Click to collapse
Settings-> location-> 3 dot menu in the upper right corner-> scanning-> make sure both options are off.
Have you tried battery saving location mode? It uses just cell towers instead of cell towers and GPS. I get very little battery drain with location services set to battery saving.
If you get no GPS signal indoors, then your phone will stay awake fighting to get a GPS signal. I wouldn't recommend high accuracy or device only location modes unless absolutely necessary (navigating with maps, etc).
Related
Not really a phone issue, I know that it's with either my router or my modem (not sure how it works exactly). When I disable my GPS and put my phone on Airplane Mode (but leave Wifi on) and go into Maps, my location is incorrect. It is showing me at my old house (a few hundred miles away from where I live now). How do I go about telling whatever tracks where my router is, that it's not there anymore?
You said you turned the gps off? You have to have gps ON..lol. It is probably showing you the last location it was turned off. So turn the gps on and make sure it is receiving a signal from the birds(satellites). You cannot get a gps signal with gps off and it will not show a correct location. Wifi is for downloading the maps to show where your gps location is.
canada2005 said:
You said you turned the gps off? You have to have gps ON..lol. It is probably showing you the last location it was turned off. So turn the gps on and make sure it is receiving a signal from the birds(satellites). You cannot get a gps signal with gps off and it will not show a correct location. Wifi is for downloading the maps to show where your gps location is.
Click to expand...
Click to collapse
Wifi is also for location. Hence, Wifi Location. Go away until you understand the actual question.
Its not an accurate location tool, GPS is accurate the other is not.
If I turn GPS off I am usually in the middle of a field quite a way from my house, it uses the network, not WiFi (IIRC)
vixsandlee said:
Its not an accurate location tool, GPS is accurate the other is not.
If I turn GPS off I am usually in the middle of a field quite a way from my house, it uses the network, not WiFi (IIRC)
Click to expand...
Click to collapse
Obviously no one knows what I'm talking about, so nevermind.
Hello everyone.
I just wanted to get your attention on a major Android OS (Kitkat) bug in the interaction between Wifi -> Advanced -> Wifi Always Scan and the Location Service. Clearly the bug doesn't happen every time, but sometimes it does, and obviously I'm talking about stock rom / kernel / no root / locked bootloader.
Althought I can't prove it, this might also be the cause of the current GPS / Navigation issues, currently being reported here.
What makes me link this to that issue? Because when Wifi Always Scan bugs out, it prevents my phone to acquire a location even from the 3g network.
That would explain why in that thread many people report that they could navigate with Device Only, which doesn't use 3g or wifi for location, but they had major issues with High Accuracy, which uses all three sources.
Please take a minute to star the issue so that Google will hopefully fix it faster.
https://code.google.com/p/android/issues/detail?id=64597
Thank you,
TD
Just turn it off, all it does is waste battery anyway
Sent from my Nexus 5 using Tapatalk
Ben36 said:
Just turn it off, all it does is waste battery anyway
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thanks for your useful contribution.
It doesn't waste battery, it saves it. It enables to use the wifi location using a lower power state of the wifi chip compared to actually turned on wifi (which is also more accurate by miles than 3g location, works indoors in clubs where there is no 3g or gps signal, and not as battery expensive as gps location).
Also, people use that option for many things, I for one use it in MANY Tasker tasks flawlessly, whether the alternative (wifi periodic toggle and polling) would rape my battery.
Wifi automatically Turned off. Built in feature?
I kept my wifi on, and the had not used it basically just left the device in the room and had run off.
When I retured, the wifi was on in the power control widget but the wifi signal indicator icon in the notifications bar was absent.
is this normal/intended?
My wifi / internet connection is weak but continuous and my device is about ten to twelve feet away from the modem / router.
Can anybody help?
Although I have not a Nexus 5, my problem seems to be the same. I'll tell you if perhaps serve as any indication.
In my HTC EVO 3D, I've been running since the summer with CM10.2 (Android v4.3.1) with location mode set to "Network & WiFi" and "WiFi Always Scan ON". During this time the location was very accurate, location history left a fairly detailed trace. In Google Maps, was located immediately, as in Google+. If activated the GPS, even better. Summarizing, 0 issues with the location.
On January 1, I decided to upgrade to CM11 (Android v4.4.2), I set my location mode to "Battery Saving" & "Wifi Scan Always ON". During the first 10 days everything was perfect, the location history trail was so detailed as CM10.2 and battery consumption a little better. Google Maps and Google+ also positioned themselves almost immediately. Suddenly, on January 11 the location seems to stop of using WiFi networks and began guided only by the Network Cells (being rather more vague). Also when for some reason failed to position (being out of range of Network Cell), the phone started to not enter Deep Sleep Mode and the battery started to discharge at high speed. Google Maps, Google+, 1Weather ... were unable to obtain the current location or showed the last known location of hours before. Rebooting the phone sometimes temporarily solved the problem, but sometimes not.
I tried to change the placement options; abroad, with "high accuracy" mode, the location worked well, but indoors the GPS was not able to find satellites (logical) and still the same problems. I enabled and I disabled the location, nothing. Factory reset, no change.
To rule out a hardware failure, I returned CM10.2. Everything about the location worked smoothly... Return to CM11, again the same problems.
In short, my impression is that this is a software bug, as in versions prior to v4.4 Android location "Network & WiFi" + "Scan Always ON WiFi" works correctly. Moreover, not only occurs in the Nexus 5.
I have marked with a star your ticket.
I'll keept testing.
I get this problem when I use tether with WiFi always scan enabled.
When I disabled tethering, I have to manually enable WiFi to fix the location reporting issue.
With WiFi scanning not enabled, I do not get this problem
Sent from my Nexus 5 using XDA Premium 4 mobile app
I think I have similar problem and I really hope smbody can help me.
On my stock nexus 5(4.4.2) wifi location don't work in google maps and ingress, when I turn it on instead of gps location.
But in other apps wifi location works( yandex.maps, 4square)
Only reboot helps
Hello again.
I just updated Google Maps to version 7.6.0 and Google Play Services to version 4.2.39 and all the problems I had with the location are gone, everything is okay again, as it did in CM10.2. So it looks like it is confirmed that it was a software bug.
Sorry, I know this post is quite stale, but I came across it doing a search about this very same problem I've seen on my LG G4 (stock). I have a Tasker task that uses WiFi near state and I use the "Allow Wifi scanning..." option in my Advanced WiFi settings. Whenever I would use WiFi tethering and then later turn it off, I noticed my Tasker task would not detect the WiFi networks it was supposed to. If I turn the "Allow scanning" option of and back on, or just turn on WiFi altogether, it starts working again.
So, after more than a year and a half, and on a newer version of Android and it still doesn't work right. Who knows; maybe it's a Tasker problem.
-SR-
Anyone could pls explain how localization now works on 4.4.2?
In 4.3 I could have localization thru 3g on and gps off, then I'd turn gos on with a switch when using maps on nav app, and ogff again when finished.
Now all I have is a switch that enables/disables localization and an option with 3 way of working: 1. gps + 3g + wifi, 2. Gps + wifi or 3. gps only.
I am lost... If I choose option 1 than is my gps always on sucking battery? If I choose 2 how can I easily enable gps when in nav app? And if I choose 3 how can I still have google localize me thru wifi when localization is off?
This is so stupid, they should have kept 3g and gps localization separate...
Hi! Please see this how to for guidance with GPS settings in android 4.4.
https://support.google.com/nexus/answer/3467281?hl=en
Apparently the options are practically the same as in 4.3 and just a little bit changed on 4.4.
High accuracy = Should enable both AGPS & onboard GPS Sensor to fetch your location.
Battery saving = Should only use AGPS.
Device only = Should only use the onboard GPS Sensor.
where
AGPS = uses an internet connection(3g and/or WiFi) to get your location.
GPS = uses the built in GPS chip inside your device and connects to GPS satellites to fetch your location.
So in your question.
High accuracy mode in android 4.3 is just like checking both "GPS Satellites" & "Google's Location Service" option at the same time.
Battery saving mode in android 4.3 is just like checking only "Google's Location Service" option.
Device only mode in android 4.3 is just like checking only "GPS Satellites" option.
You could just switch to high accuracy mode when you want to use maps with GPS on and switch back to battery saving mode when you're done using it.
Riyal said:
Hi! Please see this how to for guidance with GPS settings in android 4.4.
https://support.google.com/nexus/answer/3467281?hl=en
Apparently the options are practically the same as in 4.3 and just a little bit changed on 4.4.
High accuracy = Should enable both AGPS & onboard GPS Sensor to fetch your location.
Battery saving = Should only use AGPS.
Device only = Should only use the onboard GPS Sensor.
where
AGPS = uses an internet connection(3g and/or WiFi) to get your location.
GPS = uses the built in GPS chip inside your device and connects to GPS satellites to fetch your location.
So in your question.
High accuracy mode in android 4.3 is just like checking both "GPS Satellites" & "Google's Location Service" option at the same time.
Battery saving mode in android 4.3 is just like checking only "Google's Location Service" option.
Device only mode in android 4.3 is just like checking only "GPS Satellites" option.
You could just switch to high accuracy mode when you want to use maps with GPS on and switch back to battery saving mode when you're done using it.
Click to expand...
Click to collapse
Thanks
Riyal said:
Hi! Please see this how to for guidance with GPS settings in android 4.4.
https://support.google.com/nexus/answer/3467281?hl=en
Apparently the options are practically the same as in 4.3 and just a little bit changed on 4.4.
High accuracy = Should enable both AGPS & onboard GPS Sensor to fetch your location.
Battery saving = Should only use AGPS.
Device only = Should only use the onboard GPS Sensor.
where
AGPS = uses an internet connection(3g and/or WiFi) to get your location.
GPS = uses the built in GPS chip inside your device and connects to GPS satellites to fetch your location.
So in your question.
High accuracy mode in android 4.3 is just like checking both "GPS Satellites" & "Google's Location Service" option at the same time.
Battery saving mode in android 4.3 is just like checking only "Google's Location Service" option.
Device only mode in android 4.3 is just like checking only "GPS Satellites" option.
You could just switch to high accuracy mode when you want to use maps with GPS on and switch back to battery saving mode when you're done using it.
Click to expand...
Click to collapse
Anyhow, before I could leave 3g localization on all the time and enable/disable gps with a switch, now I have to go into the option to do this
thegios said:
Anyone could pls explain how localization now works on 4.4.2?
In 4.3 I could have localization thru 3g on and gps off, then I'd turn gos on with a switch when using maps on nav app, and ogff again when finished.
Now all I have is a switch that enables/disables localization and an option with 3 way of working: 1. gps + 3g + wifi, 2. Gps + wifi or 3. gps only.
I am lost... If I choose option 1 than is my gps always on sucking battery? If I choose 2 how can I easily enable gps when in nav app? And if I choose 3 how can I still have google localize me thru wifi when localization is off?
This is so stupid, they should have kept 3g and gps localization separate...
Click to expand...
Click to collapse
There really isn't a need to keep GPS off while not using a location app. Your phone will only turn on the GPS receiver when an app asks for your location. It doesn't just constantly stay connected to satellites while the phone is in your pocket. I always have GPS enabled and there is no effect on battery life.
Sent from my Xperia Z1 using Tapatalk
---------- Post added at 06:09 AM ---------- Previous post was at 06:03 AM ----------
Riyal said:
Hi! Please see this how to for guidance with GPS settings in android 4.4.
https://support.google.com/nexus/answer/3467281?hl=en
High accuracy = Should enable both AGPS & onboard GPS Sensor to fetch your location.
Battery saving = Should only use AGPS.
Device only = Should only use the onboard GPS Sensor.
where
AGPS = uses an internet connection(3g and/or WiFi) to get your location.
GPS = uses the built in GPS chip inside your device and connects to GPS satellites to fetch your location.
Click to expand...
Click to collapse
Actually aGPS still uses satellites. It just uses your data connection to do one or both of the following:
1. Download satellite reference data to know the position of satellites more quickly for a faster fix
2. Uploads your GPS signals your phone gets from the satellites to an external server which can calculate your location more accurately using things like atmospheric conditions and weather
aGPS is why a phone can get a GPS fix in seconds while a dedicated GPS device might take much longer bc it has to download the reference data from the satellites itself.
What you are referring to is a network estimated location, which isn't the same as aGPS. In fact your phone will always have aGPS enabled if you have GPS enabled.
Sent from my Xperia Z1 using Tapatalk
@301stSpartan
Well if that's the case with AGPS care to explain how Nokia Maps were able to pinpoint my location years ago when I am using my good old n80? It has assisted GPS but no onboard GPS and as far as I can tell nokia map works on that phone.
@thegios
Not sure if there's any widgets for the new GPS settings of google. TBH though for every upgrade of android eversince jellybean I'm starting to get turned off from android. They're like taking out the features of android 1 by 1.
301stSpartan said:
There really isn't a need to keep GPS off while not using a location app. Your phone will only turn on the GPS receiver when an app asks for your location. It doesn't just constantly stay connected to satellites while the phone is in your pocket. I always have GPS enabled and there is no effect on battery life.
Sent from my Xperia Z1 using Tapatalk
---------- Post added at 06:09 AM ---------- Previous post was at 06:03 AM ----------
Actually aGPS still uses satellites. It just uses your data connection to do one or both of the following:
1. Download satellite reference data to know the position of satellites more quickly for a faster fix
2. Uploads your GPS signals your phone gets from the satellites to an external server which can calculate your location more accurately using things like atmospheric conditions and weather
aGPS is why a phone can get a GPS fix in seconds while a dedicated GPS device might take much longer bc it has to download the reference data from the satellites itself.
What you are referring to is a network estimated location, which isn't the same as aGPS. In fact your phone will always have aGPS enabled if you have GPS enabled.
Sent from my Xperia Z1 using Tapatalk
Click to expand...
Click to collapse
Riyal said:
Not sure if there's any widgets for the new GPS settings of google. TBH though for every upgrade of android eversince jellybean I'm starting to get turned off from android. They're like taking out the features of android 1 by 1.
Click to expand...
Click to collapse
Got to say i hate the new GPS switch layout, was wondering what the hell they'd done when i first saw it.
Someone will create a switch for it somewhere along the lines, in the mean time just leave it on battery saver mode and switch to high accuracy when you need to drive or something similar which requires full use of GPS.
If the community (us and everyone else) makes enough noise about it they may bring it back.
dladz said:
Got to say i hate the new GPS switch layout, was wondering what the hell they'd done when i first saw it.
Someone will create a switch for it somewhere along the lines, in the mean time just leave it on battery saver mode and switch to high accuracy when you need to drive or something similar which requires full use of GPS.
If the community (us and everyone else) makes enough noise about it they may bring it back.
Click to expand...
Click to collapse
well as @301stSpartan says, even if in high battery mode, it seems the gps is fired only if an app is requesting, so at this point i wouldn't mind and leave it always in high mode
thegios said:
well as @301stSpartan says, even if in high battery mode, it seems the gps is fired only if an app is requesting, so at this point i wouldn't mind and leave it always in high mode
Click to expand...
Click to collapse
Yea you could but the amount of apps that fire up the GPS is quite a lot, and if youre inside then it's going to try to communicate with satellites and it won't be able to, it'll hit battery, i've no doubt about that.
Hi guys,
Just a quick question.
Under Location, I notice that there are three options for Location Mode:
- Device Only
- Battery Saving Mode: which uses Wi-Fi.
- High Accuracy Mode: which uses Wi-Fi and GPS.
Excluding High Accuracy mode, which mode uses more battery: Device Only or Battery Saving mode?
Thanks,
device only = gps only. so that would use more than wifi. honestly i would just keep it high accuracy, but turn on/off location when you're not using it.
I havet just GPS on always and thats no need to turn location on off . As long you dont use any app that demand location the GPS is off and doesnt use any battery.
Skickat från min LG-V500 via Tapatalk
Use device only. Here's why :
Google Services such as Gmail, Now, Maps, and Google+ constantly polls your location using your wifi (if you're connected) or your cell network. And every time Google Services poll your location, your battery gets affected. So what's the solution to that?
Solution
Further research by Galaxo60 proved that going to Settings - Location Settings (or Location on android 4.4), and unticking WiFi & mobile network location (or setting the Mode to Device Only) prevents Google Services from polling your location, thus preventing the battery drain
So disable the WiFi & mobile network location option, and actually tick and turn on GPS satellites. (It's just like setting the Mode to Device only on KitKat)
But why do that? Why should by I turn on GPS?
Explanation
Google Services don't use your GPS to poll your location, so your GPS actually stays offline most of the time; and the reason you should enable GPS is to "Let apps that have asked your permission use your location information".
Info taken from here http://forum.xda-developers.com/showthread.php?t=2601318
I mainly work at home, so pretty much on wifi all of the day except for the odd hour or so to do school runs. I noticed that with WIFI on, i'm getting terrible battery life - less than 24hrs. This is with most things disabled (location history, google now, etc) but wifi and mobile data on all the time and GPS enabled. Of course mobile data doesn't kick in until i leave my wifi zone. Unfortunately even with location services off, Samsung doesn't have a option to disable the always scanning totally. This means ONLY when you are out of wifi connectivity will the always scanning option turn off (assuming you have the "allow always scanning" in the wifi settings turned off). Lo and behold with this setting (always allow scanning - when wifi on only) and spending more time on mobile data i notice my battery life is infinitely better. I went from the usual 30° battery drain slope to a flat line barely draining battery. So with no other change in apps/settings/etc, and just turning my wifi off, so LTE kicked in and phone in same location in the house i practically doubled battery life.
So then i started looking and reading. Finally it is clear it is my router/wifi draining the bloody battery so i started delving deeper. Now i have an asus ac68u with stock firmware. I changed the DTIM as follows under Wireless->Professional tab - (i can't post links or images so use the below in your browser)
193.104.35.163/asus.png
Now i'm back to a flat line drain on wifi.
May work for others.
(sigh)...my router doesn't let me configure those settings (ea9200). Still getting the drain
There could be multiple reasons for battery drain so this is not the holy grail for battery drain issues.
However the router issues is easy to identify. If you're getting battery drain for no reason at home/work where you are on wifi coverage, just switch wifi off and go onto your mobile plan (assuming you have reasonable 3g/4g/lte service) and look at your battery graph before and after. If you go from a ski slope to a flat line, then you have wireless problems. Otherwise look elsewhere. Remember your 'always allow scanning' setting should be set for 'wifi only' for this test.
This fix worked wonders for me. I immediately noticed 10x better battery life on par with having wifi disabled.
iforgotmyusername said:
193.104.35.163/asus.png
Now i'm back to a flat line drain on wifi.
May work for others.
Click to expand...
Click to collapse
hi..could you perhaps upload the pic to dropbox and share the link here? you could use a url shortener as well
qpalcb said:
hi..could you perhaps upload the pic to dropbox and share the link here? you could use a url shortener as well
Click to expand...
Click to collapse
I don't have a dropbox account, and i can' t post links yet so neither of that would work. Just put h t t p in front of that and it will work fine (and it's not a click bait, popup adverts, etc)
iforgotmyusername said:
I mainly work at home, so pretty much on wifi all of the day except for the odd hour or so to do school runs. I noticed that with WIFI on, i'm getting terrible battery life - less than 24hrs. This is with most things disabled (location history, google now, etc) but wifi and mobile data on all the time and GPS enabled. Of course mobile data doesn't kick in until i leave my wifi zone. Unfortunately even with location services off, Samsung doesn't have a option to disable the always scanning totally. This means ONLY when you are out of wifi connectivity will the always scanning option turn off (assuming you have the "allow always scanning" in the wifi settings turned off). Lo and behold with this setting (always allow scanning - when wifi on only) and spending more time on mobile data i notice my battery life is infinitely better. I went from the usual 30° battery drain slope to a flat line barely draining battery. So with no other change in apps/settings/etc, and just turning my wifi off, so LTE kicked in and phone in same location in the house i practically doubled battery life.
So then i started looking and reading. Finally it is clear it is my router/wifi draining the bloody battery so i started delving deeper. Now i have an asus ac68u with stock firmware. I changed the DTIM as follows under Wireless->Professional tab - (i can't post links or images so use the below in your browser)
193.104.35.163/asus.png
Now i'm back to a flat line drain on wifi.
May work for others.
Click to expand...
Click to collapse
I have the same router as you and I went to the professional tab. Then what do I do with the IP you posteD? I think this solution is the right one guys but I haven't figured it out yet
edit: Did not work
mrlooolz said:
I have the same router as you and I went to the professional tab. Then what do I do with the IP you posteD? I think this solution is the right one guys but I haven't figured it out yet
edit: Did not work
Click to expand...
Click to collapse
Paste the IP in your browser to show the screenshot he took with the settings he changed. Basically you need to set the DTIM Interval to 3 and the Beacon Interval to 300 for both the 2.4 GHz and 5 GHz bands.