GPS keeps turning on when screen turns on on device only - Nexus 5 Q&A, Help & Troubleshooting

Hey everyone, my play services updated last night to 6.5.87. I keep my location on "device only" to tame the wakelocks and since the update my GPS icon turns on every time I unlock my screen. When I go to location it says that play services was using "high battery" location. This is really annoying as "device only" location was awesome for me. It would get rid of the npl location wakelocks and GPS worked great when I needed it without having to switch to "high accuracy". I'm running stock 5.0, unrooted. Has anyone encountered the same issue? Or can anyone that's running the same play services check if it occurs to you too? Thanks.

Are you using smart lock with location setup? If so that's why. Did the exact same thing to me when testing it. Even worse it never worked when in doors because the GPS couldn't ever see me.

frigidazzi said:
Are you using smart lock with location setup? If so that's why. Did the exact same thing to me when testing it. Even worse it never worked when in doors because the GPS couldn't ever see me.
Click to expand...
Click to collapse
Nope. I only have my moto 360 setup as a trusted device/smart lock. Trusted places is set as "none" That's why I'm so confused why it started happening.

I am getting this too. Haven't narrowed it down yet. Might be one of my greenified apps.

Jnewell05 said:
I am getting this too. Haven't narrowed it down yet. Might be one of my greenified apps.
Click to expand...
Click to collapse
The thing is, if you look at location services, it tells you that google play services is the one that's requesting the GPS location.

Related

Google Now and GPS

Good evening everyone.
This is a question that the 4 billion pages on google cant seem to find....
with google now, should I keep my standalone GPS, VZW location services and google location services?
I want to know because right now I have all 3 on, and my battery is suffering from it.
and this maybe a little off topic, but along the same lines;
I have a smart action "turn wifi off at school" and "turn wifi on at home" and it uses locations to determine where im at, what GPS service needs to be enabled for that to work properly, cause again I have all 3 services selected, and I wanna disable as many as i can to save power.
Anyone?
harecurtis said:
Good evening everyone.
This is a question that the 4 billion pages on google cant seem to find....
with google now, should I keep my standalone GPS, VZW location services and google location services?
I want to know because right now I have all 3 on, and my battery is suffering from it.
and this maybe a little off topic, but along the same lines;
I have a smart action "turn wifi off at school" and "turn wifi on at home" and it uses locations to determine where im at, what GPS service needs to be enabled for that to work properly, cause again I have all 3 services selected, and I wanna disable as many as i can to save power.
Click to expand...
Click to collapse
If you only enable "Use wireless networks" and disable the other 2 you should be fine
Sent from my SGH-T889 using xda premium
harecurtis said:
Good evening everyone.
with google now, should I keep my standalone GPS, VZW location services and google location services?
I want to know because right now I have all 3 on, and my battery is suffering from it.
.
Click to expand...
Click to collapse
I leave Google and GPS on. I turn Verizon off.
I have no battery issues.
Are you sure it's the location services causing issues?
Check your battery stats and see.
Screen
Phone Idle
...
..
For me, no location or GPS even rate.

Battery problem fixed in one click!

Just for anyone else suffering a horrific battery issue....
I would take a few photos a day. My battery would die in a few hours, with the culprit being "Google Play Services", which when drilled down showed the camera as the high battery user.
Furthermore, I was getting poor GSM data rates, with the phone seemingly unable to find the nearest transmitter (it would jump to full bars for a few seconds, then lock on to a 1 bar cell and constantly change between H and 3G). While all this was happening, the Nexus 5 got hot.
Now do this:
Settings>Location>Mode>Device Only
Make sure it's in "Device Only" mode. Logic says that this is the wrong setting, but now I can go a couple of days no problem, I lose 3% overnight, the camera uses next to no juice and "Google Play Services" doesn't even make it onto the list. :laugh:
If you're in an area with good signal I would say you have an issue with the data/gsm module and your solution is not proper. Try launching maps - it will suggest enabling mobile/wifi location for better location service.
Mine is set to high accuracy and my battery life is pretty good.
Verify if you're having this issue on multiple locations or only on certain places?
Sent from my Nexus 5 using Tapatalk
Pottsy said:
Just for anyone else suffering a horrific battery issue....
I would take a few photos a day. My battery would die in a few hours, with the culprit being "Google Play Services", which when drilled down showed the camera as the high battery user.
Furthermore, I was getting poor GSM data rates, with the phone seemingly unable to find the nearest transmitter (it would jump to full bars for a few seconds, then lock on to a 1 bar cell and constantly change between H and 3G). While all this was happening, the Nexus 5 got hot.
Now do this:
Settings>Location>Mode>Device Only
Make sure it's in "Device Only" mode. Logic says that this is the wrong setting, but now I can go a couple of days no problem, I lose 3% overnight, the camera uses next to no juice and "Google Play Services" doesn't even make it onto the list. :laugh:
Click to expand...
Click to collapse
Yes, logic says it is the wrong setting because it is. "Device Only" will only use GPS. "Low Accuracy" will only use googles location approximation via cell towers and wifi signals. "High Accuracy" will use both.
Once you set it to "Device Only" you robbed your phone from being able to track your location (for instance for google now). So naturally you don't have that much battery drain any more when taking pictures. I'm 100% sure that you are tagging your photos with your geo location, so every time you take a picture, the google play service determins your position.
To clarify: GPS isn't on all the time and is only activated when an app requests the phones position. The google location stuff is on all the time and will be active even when the phone is idling.
Dlog said:
Yes, logic says it is the wrong setting because it is.
Click to expand...
Click to collapse
I appreciate that.
I have tried with the correct settings, and it seems to leave "Google Play Services" using between 30% and 60% of my battery. Things get really bad when I am in a weak GSM signal location - with the phone getting really quite hot. Chrome triggers this, but then just having the phone awake seems to get it going.
Watching Google Maps in a position where I get no GPS signal (so monitoring the position calculated from the GSM network) I can see my location jumping from mast to mast every 10 seconds or so.
I realise that turning it off is "wrong", but it is not as wrong as my battery dying at 4pm, and until it is fixed it will have to remain off. Google Now is useless since I am not in the US, and Geo Location on the camera is switched off.
I 2nd that pottsy i disabled my yesterday and got my 1st good day with battery
Sent from my Nexus 5 using Tapatalk
Pottsy said:
I appreciate that.
I have tried with the correct settings, and it seems to leave "Google Play Services" using between 30% and 60% of my battery. Things get really bad when I am in a weak GSM signal location - with the phone getting really quite hot. Chrome triggers this, but then just having the phone awake seems to get it going.
Watching Google Maps in a position where I get no GPS signal (so monitoring the position calculated from the GSM network) I can see my location jumping from mast to mast every 10 seconds or so.
I realise that turning it off is "wrong", but it is not as wrong as my battery dying at 4pm, and until it is fixed it will have to remain off. Google Now is useless since I am not in the US, and Geo Location on the camera is switched off.
Click to expand...
Click to collapse
Not saying that you're giving a bad tip. It's just not the fix for all battery problems with the n5, but only for the specific case that an app is "location hungry".
Now I did this yesterday and it has worked for Google Services but now I am checking my battery stats and "Google Search" is next most draining app behind the Screen... Why would google search be using that kind of battery?? I am not searching anything lol
Dlog said:
Not saying that you're giving a bad tip. It's just not the fix for all battery problems with the n5, but only for the specific case that an app is "location hungry".
Click to expand...
Click to collapse
He says it fixes the problem everyone is having with Google Play Services draining ~50% of their battery. It's a documented problem that isn't just all over the forums and G+, but Android Police even put out a story about it. Maybe the title to the thread is misleading, but the OP's initial post clearly states his problem and the solution he found for his problem.
jm6001 said:
Now I did this yesterday and it has worked for Google Services but now I am checking my battery stats and "Google Search" is next most draining app behind the Screen... Why would google search be using that kind of battery?? I am not searching anything lol
Click to expand...
Click to collapse
Google search is the launcher app used for the stock rom on the nexus 5. Maybe you are using your home button a bit too often?
Paddington said:
He says it fixes the problem everyone is having with Google Play Services draining ~50% of their battery. It's a documented problem that isn't just all over the forums and G+, but Android Police even put out a story about it. Maybe the title to the thread is misleading, but the OP's initial post clearly states his problem and the solution he found for his problem.
Click to expand...
Click to collapse
What others are saying, though, is that this fix only fixes the symptom...not the actual issue. If you get battery drain because of location services, turn off location services in the apps that are draining it heavily.
Example: He takes pictures during the day and notices battery drain. Disable Geo-Tagging on pictures, and see what effect it has. If you turn the location services to "Device Only" you're going to have issues actually making use of location services (think Maps, Navigation, Google Now, Facebook, etc...that use location). Anytime you use these services it'll have to activate the GPS module to get a location...which can take 10-20 seconds, if you have clear access to the sky. For reference: the GPS module uses a lot more battery than the triangulation done by the cell towers...so actively using any app that uses location services will actually use more battery.
The other thing to try and disabling background processes. Close applications you're not using, and in the developer menu limit how many applications can be running in the background at a time. It could be that your sync services or other applications are constantly checking for location. Many of those applications will refuse to use the hardware GPS and instead rely on the triangulation services, which is why you might be seeing this battery longevity increase.
Synopsis: Setting it to Device-Only is a bad idea; instead, try to find the root of the problem.
I have found the problem.
It's not the apps making the calls, it's the location service itself. And I will specifically disagree on one point: using GPS only uses a lot less battery than cell location via a broken OS.
Sent from my Nexus 5 using Tapatalk
Another solution ...
Pottsy said:
I appreciate that.
I have tried with the correct settings, and it seems to leave "Google Play Services" using between 30% and 60% of my battery. Things get really bad when I am in a weak GSM signal location - with the phone getting really quite hot. Chrome triggers this, but then just having the phone awake seems to get it going.
Watching Google Maps in a position where I get no GPS signal (so monitoring the position calculated from the GSM network) I can see my location jumping from mast to mast every 10 seconds or so.
I realise that turning it off is "wrong", but it is not as wrong as my battery dying at 4pm, and until it is fixed it will have to remain off. Google Now is useless since I am not in the US, and Geo Location on the camera is switched off.
Click to expand...
Click to collapse
I think there's a better solution ... Go to settings>apps, and for every app that uses Google Play Services (google search, google now, maps, etc), clear the their data. Google Play Services went from 2nd biggest hog (after the display) to way down on the list. Maybe there's only one app that needs to have its data cleared to fix it, dunno I just cleared them all.

[Q] Wifi & network location unavailable after switching location off & on again

[Q] Wifi & network location unavailable after switching location off & on again
Hi there,
I found this strange but reproduceable bug on my N5's location services and was wondering if it's the same for you.
Turn off location via settings or quick settings
Turn it back on
You'll be asked to accept Google location terms
Switch to battery saving mode (only wifi & network, no GPS)
After these steps, my N5 cannot find it's location via Wifi & mobile network anymore. In Maps it might still show the blue dot but moving around it won't update. When using any other app which will try to get a fresh location it's a no go. Like Google+, try and make a post with location, no joy.
I have to reboot to get it working again.
Did you agree to those Google terms? If not that's the reason...
cawith said:
Did you agree to those Google terms? If not that's the reason...
Click to expand...
Click to collapse
I agreed to those of course. If you cancel that it will turn back to device (GPS) only
Sander M said:
I agreed to those of course. If you cancel that it will turn back to device (GPS) only
Click to expand...
Click to collapse
Strange. Are you running stock ROM? I had no problem doing the thing you described.
cawith said:
Strange. Are you running stock ROM? I had no problem doing the thing you described.
Click to expand...
Click to collapse
Just got it 2 weeks ago, all is stock, locked and original.
Did you try any other app besides Maps? That sometimes uses last known location and shows blue icon.
Sander M said:
Just got it 2 weeks ago, all is stock, locked and original.
Did you try any other app besides Maps? That sometimes uses last known location and shows blue icon.
Click to expand...
Click to collapse
You're right, mine also won't find my position without GPS. However a reboot fixes it for me.
Somewhat glad to see others having this bug too. Indeed a reboot fixes it right up so it's not a huge deal.
Under normal circumstances I would't change this setting ever, but when I just got my N5 I wanted to test the GPS only feature. After turning it back to Battery saver I noticed and started investigating what caused it.
Thanks for testing mate!
Sander M said:
Somewhat glad to see others having this bug too. Indeed a reboot fixes it right up so it's not a huge deal.
Under normal circumstances I would't change this setting ever, but when I just got my N5 I wanted to test the GPS only feature. After turning it back to Battery saver I noticed and started investigating what caused it.
Thanks for testing mate!
Click to expand...
Click to collapse
No problem. I'm glad also to be aware of it now, so that I can avoid standing somewhere I need and it won't find it
Anyone else willing to try this? The N5 from a friend of mine did not show this behavior. And another did. Weird bug.
Verstuurd vanaf mijn Nexus 5 met Tapatalk
I have the problem on my 16 GB black nexus 5 with stock Rom and no root. I tested with dalvik and art but the problem exist. I have found 3 solutions:
1- reboot phone (temporary solution)
2- stop Google Play Services (temporary solution)
3- uninstall updates of Google Play Services use with stock/no update (permanent solution)
one more thing; when I can't get a location fix with network/wireless GPS mode on Google Maps or any other application, I can see a circle on " Yandex Navigation" that shows my location.
but more interesting thing is I can see a circle that shows my location on Yandex Navigation when my GPS is completely off.
I think this problem is about Google Play Services or Google Location Services. I hope someone find a solution.
ymeksur said:
I have the problem on my 16 GB black nexus 5 with stock Rom and no root. I tested with dalvik and art but the problem exist. I have found 3 solutions:
1- reboot phone (temporary solution)
2- stop Google Play Services (temporary solution)
3- uninstall updates of Google Play Services use with stock/no update (permanent solution)
one more thing; when I can't get a location fix with network/wireless GPS mode on Google Maps or any other application, I can see a circle on " Yandex Navigation" that shows my location.
but more interesting thing is I can see a circle that shows my location on Yandex Navigation when my GPS is completely off.
I think this problem is about Google Play Services or Google Location Services. I hope someone find a solution.
Click to expand...
Click to collapse
Thanks for your (rigorous :good tests.
Reboot was the one I used to fix it, didn't know about the others you found.
In a strange way glad to see it's a software bug, which means it's fixable. I guess the friend I mentioned has not updated the Play services ever, that would explain why he is not affected.
happens to me as well on a Nexus 7 (2013). I've found that battery drains faster even when in deep sleep
Me and my colleague also have this issue...
Completely wiped and factory reset to stock, same prob.
Reboot solves it until you turn location services off and on again, or go from "device only" mode to "battery saving".
A quicker way then reboot (reboot actually does the same as this step) is go to settings, apps, running, Google Services (you might have 2), there STOP the GoogleLocationService (it will stop and reload the service)
Location should work again in battery saving mode...
Thanks for that one Foggy79!
Reboot or restarting the google play services takes much longer (especially when you have to disable ADM first) then your trick of only stopping the only location service.
Verstuurd vanaf mijn Nexus 5 met Tapatalk
Sander M said:
Thanks for that one Foggy79!
Reboot or restarting the google play services takes much longer (especially when you have to disable ADM first) then your trick of only stopping the only location service.
Verstuurd vanaf mijn Nexus 5 met Tapatalk
Click to expand...
Click to collapse
No problem.
I just reproduced the issue on an other colleague's N5, that makes 3 ppl here in the office, can't be coincidence.
If the GoogleLocationService could restart automatically when you turn on "Location" and agree the terms, that would be great...
Foggy79 said:
No problem.
I just reproduced the issue on an other colleague's N5, that makes 3 ppl here in the office, can't be coincidence.
If the GoogleLocationService could restart automatically when you turn on "Location" and agree the terms, that would be great...
Click to expand...
Click to collapse
It appears the issue is fixed for me.
I have Google Play services 4.3.24 so it might be fixed behind our backs.
Now when you turn the location off and on again, the GoogleLocationService is automaticly restarted also
Fixed for me as well with the new Google Play Services!
The new version now indeed restarts the LocationService again.
I'm glad Google also reads XDA (j/k)
Now if they can get GoogleLocationsManager and NlpLocationsReciever to stop running when Locations Services are turned off completely, that'd be great.
Sent from my Nexus 5 using Tapatalk

[Q] GPS Issues

From out of the box I've been having GPS issues. It won't get a lock when I use navigation. I've tried different places, different apps (waze and google maps) and different times (different days). If I restart the phone, it'll get a lock after about 10 seconds.
What would cause the GPS to not work unless the phone is restarted?
I contacted OnePlus and they all but told me to go screw myself. They suggested that I should walk around to get a GPS lock and if it persists that I should reset my phone. I reset my phone but all that did was waste two hours of my life re-installing apps and settings.
Any ideas? Anyone else with this issue? The phone is perfect besides this =(
Can't say I'm sure, as I haven't had any issues, except if I caused them. You let google apps have location access in the settings? Are you wake blocking any google location services?
+1 to what roxxorz said. If OP applied the workaround to Google Play Services and denied access to location it can cause a problem.
Also in addition to that make sure your location is set to "High Accuracy" as well as enabling WiFi.
Do note that when your phone is on High Accuracy it is draining the most battery.
I also have the same problem when I m on stock XNPH25R. Have to reboot in order to get a lock from the GPS.
http://forum.xda-developers.com/showpost.php?p=54334569&postcount=1
But after I switch to nightlies, no such GPS issue, works like a charm.
I am actually on stock 30O cm11s and I have a GPS lock in two out three seconds. Try to download GPS status app from Google play
Inviato dal mio A0001 utilizzando Tapatalk
Sorry I'm a complete noob when it comes to the advance stuff. I know nightlies are cyanogenmods quick version changes that may sometimes have small bugs, but never tried updating phone with nightlies. I've always just done the standard OTA updates on my previous phones.
GPS is always on high accurac. Surprisingly today, GPS was working like a charm. I haven't done anything that should affect this positive change.
What is wake locking?
ValmonUni said:
Sorry I'm a complete noob when it comes to the advance stuff. I know nightlies are cyanogenmods quick version changes that may sometimes have small bugs, but never tried updating phone with nightlies. I've always just done the standard OTA updates on my previous phones.
GPS is always on high accurac. Surprisingly today, GPS was working like a charm. I haven't done anything that should affect this positive change.
What is wake locking?
Click to expand...
Click to collapse
It could be just a thing. Sometimes I'll have apps [maps] that'll lock up, like if they tried to connect and I stopped it / turned off data. At that point killing / force closing the app works.
Normally I'd say if you don't know, don't worry about it, but wake lock is where an app / process keeps the phone awake and keeps the phone from sleeping properly, which leads to more battery drain. Google play services is notorious for waking the device for nonsense, so more advanced users block it. If you have no issues, I'd recommend leaving it alone.
Same problem here
ValmonUni said:
From out of the box I've been having GPS issues. It won't get a lock when I use navigation. I've tried different places, different apps (waze and google maps) and different times (different days). If I restart the phone, it'll get a lock after about 10 seconds.
Click to expand...
Click to collapse
I'm seeing the same thing. GPS was working fine for a week or so, but when I went to use Waze this morning it wouldn't get a lock. GPSTools showed satellites, but wouldn't lock either. Reboot fixed it. A few hours later, same problem. Reboot once again fixed it. This is all stock.
I don't have anything to suggest, but wanted to add to the evidence that there is a problem.
I did install a couple of apps from the app store between the last time I saw the GPS work normally and this morning, so I'll try uninstalling them to see if that helps. I killed them from the task manager, but that didn't help.
walendo said:
I'm seeing the same thing. GPS was working fine for a week or so, but when I went to use Waze this morning it wouldn't get a lock. GPSTools showed satellites, but wouldn't lock either. Reboot fixed it. A few hours later, same problem. Reboot once again fixed it. This is all stock.
I don't have anything to suggest, but wanted to add to the evidence that there is a problem.
I did install a couple of apps from the app store between the last time I saw the GPS work normally and this morning, so I'll try uninstalling them to see if that helps. I killed them from the task manager, but that didn't help.
Click to expand...
Click to collapse
Sorry to hear you're having trouble too, but glad I'm not going nuts. You're only the second person I've read that has the same issue I have. OnePlus support was of no help nor did they admit that the issue was real. I hope they'll figure this one out, cause I can't.
Please vote on this issue in CM's bugtracker: https://jira.cyanogenmod.org/browse/BACON-115
Hints
Here's some new data. As I mentioned, my GPS was working fine up until a few days ago. In those few days, I installed 2 apps: "UP", by Jawbone, and "MyFitnessPal". Both of them use the GPS for some sort of logging.
Anyway, this morning I installed "AppOps" from the App Store. It's the one by Sylvain Galand, and the package is fr.slvn.appops. It doesn't need root, apparently. I used that to disable location access from both UP and MyFitnessPal. Since then, my GPS has been working fine again.
I think there's something broken under the LocationManager implementation in this version of Cyanogen. Seems like some apps are able to break it somehow. The other thread about this subject points fingers at Dragon Dictate, too. Whatever it is, apps shouldn't be able to wedge a system service like this.
walendo said:
Here's some new data. As I mentioned, my GPS was working fine up until a few days ago. In those few days, I installed 2 apps: "UP", by Jawbone, and "MyFitnessPal". Both of them use the GPS for some sort of logging.
Anyway, this morning I installed "AppOps" from the App Store. It's the one by Sylvain Galand, and the package is fr.slvn.appops. It doesn't need root, apparently. I used that to disable location access from both UP and MyFitnessPal. Since then, my GPS has been working fine again.
I think there's something broken under the LocationManager implementation in this version of Cyanogen. Seems like some apps are able to break it somehow. The other thread about this subject points fingers at Dragon Dictate, too. Whatever it is, apps shouldn't be able to wedge a system service like this.
Click to expand...
Click to collapse
I honestly hope that they at the very least acknowledge that this issue exists. GPS Navigation is a primary use for mobile. I haven't installed anything that would break location. All I Have is Waze and Google.

Location services defaulting to my house unless I toggle location services on and off

Hello All,
On both my wife's and my Tmobile S7s running 6.01 on the November security patch, the location services are terrible. The phone keeps thinking I am at my house when I am 20 miles away at work. My wife has the same problem. If I toggle location services off then on, it instantly updates to the correct location. Eventually if defaults back to my house. This wouldn't be such a huge deal if I didn't have a SmartThings home automation system. SmartThings keeps unlocking my front door, turning on lights, and putting the heat back on because according to the phone I am at my house and the automation kicks in. Here is what I have done to try to fix the location issue:
- Location on with method = GPS, Wi-Fi, and mobile networks.
- Improved accuracy on with Wi-Fi scanning and Bluetooth Scanning enabled.
- Under Optimize Battery usage, I have unoptimized Location Services (meaning it should always be running).
Does anyone else have this problem with their S7s? If it were jsut mine, I would chalk it up to a faulty device, but it is happening to my wifes as well. Any other tricks to make this stop happening?
It's just you.
Sent from my SM-G930F using Tapatalk
takerhbk said:
It's just you.
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
Well thanks for being super helpful. But its not just me, it is also my wife's S7 so maybe other people are experiencing the same issue and have work around. But I appreciate you adding so much value to the thread.
shaxs said:
Well thanks for being super helpful. But its not just me, it is also my wife's S7 so maybe other people are experiencing the same issue and have work around. But I appreciate you adding so much value to the thread.
Click to expand...
Click to collapse
Is itonly your home automation app maybe and other apps like maps show location correctly?
Sent from my SM-G930F using Tapatalk
takerhbk said:
Is itonly your home automation app maybe and other apps like maps show location correctly?
Sent from my SM-G930F using Tapatalk
Click to expand...
Click to collapse
If you open up Google Maps, it shows us at our house on the map. If we cycle the location toggle on the quick link bar while on the map, it then updates to where we actually are. The home automation application is just effected by the location services being inaccurate.
shaxs said:
If you open up Google Maps, it shows us at our house on the map. If we cycle the location toggle on the quick link bar while on the map, it then updates to where we actually are. The home automation application is just effected by the location services being inaccurate.
Click to expand...
Click to collapse
Do you have developer settings enabled? If yes, check that mock location setting is disabled.
Sent from my SM-G930F using Tapatalk
You are not alone. I have a same problem as well. Mock location is disabled and thus also happens right after factory reset as well. I'm starting to think this may be a hardware issue.

Categories

Resources