Using CM7-based ROM? Disable Google Location Services - Droid Eris General

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

Related

GPS on only for certain apps?

is there a way to have the gps turned off, but for certain apps, it will turn on automatically? im on litening rom 1.5 but havent found a way to figure this out ..
That could be done by an app like Tasker. You would have to buy it though.
Edit: Just checked.Tasker can't do it. It gives some note stating on stock gingerbread the GPS can't be changed without user intervention.
ha. that sucks balls. but thanks anyways, now i can stop searching for it..
I have GPS turned on all the time, with no noticable loss in battery life. The battery is only depleted when an application uses the GPS (such as google maps or Navigation) It may occasionaly be used to get a fix for weather updates but that will only be for a few seconds every few hours.

[Q] Huge battery drain after using any navigation app

Greetings Fellow XDA fans
So I have a very annoying problem
I have noticed that my device has been getting large amounts of battery drain in the last few months after using any sort of navigation app on it..
Software that has been tested is:
Google maps, Sygic, Route 66, Drive and Walk.
I have installed "bad ass battery monitor" which seems to show that even when the navigation is closed the orientation sensor seems to still be active.
I have since wiped the device and re-installed checkrom but have had no improvement in the issue.
I have attempted changing kernels and modems as well.
I am currently in Neak 1.4.2 and Checkrom v6
It seems that the only way to stop the drain after running a navigation app is to restart the device.
To be clear... I can simply open navigation for a second and then close it and this huge drain will begin to occure untill a device reboot, Even though I have turned off GPS in the phone settings.
Freezing the app is not a solution ether
Any Solutions would be most welcome??
Regards James
You got Latitude app switched by any chance as that is a known battery drainer .
jje
Nope.. Made sure I didn't go near latitude because i heard it eats the battery big time.

Sudden Battery Drainage

I understand all these battery drain issues that the prime has been having but haven't actually had them, until now. I used to lose about 2-3% overnight but suddenly I am losing around 15% because it won't sleep. I go into the battery setting and it shows it been awake the whole time. Now I am sure if I looked around I may find a fix but it just seems a bit odd that it has just suddenly occurred. And its not a wifi drainage issue as I usually put it to sleep at power saving mode and wifi off. Just asking why?
Thanks,
I think it could be the Asus weather widget which I had set at 1 hour refresh rate.
if this just recently occured out the blue, likely a rougue app or something you recently installed. an app running in background or sync is likely the culprit.
Just put Skype on it but that's not signed in most of the time
every android tablet and phone i have does this occasionally, and those occasions are when i either play video or music. some of these media players employ a wakelock that will not disable after you put your device to sleep. sometimes a reboot will work, sometimes not. most of the times the reboot keeps it from draining. even force quitting all my media apps wouldn't work.
so basically i reboot every time i use any type media player so i don't get the drain - netflix doesn't require it, dice and just about every music player does. i'm not sure it this may be your problem, but it may be a possible solution.
I find that making sure to check the last two settings under Asus Customized Settings helps this. I was waking up in the morning to find my dock dead everyday before I checked those two settings. The only down side is when I turn the screen on and wake it up, it takes about 5-10 seconds to connect to the wifi. No biggie.
Use better battery stats and see what is causing it. I have read that skype does drain battery pretty bad. And even if you're not connected it still runs in the background at start up. Another app I would recommend is Autostarts. It allows you to disable apps at start up. I know system tuner is free and has the same functionality but I find Autostarts better. With ST, you just disable the app at start up, with Autostarts you can disable it at start up, shutdown(which some apps fire when the tab is being shut down and other system events), also other events. Like some apps fire up when you get a text, or when your connection changes etc.. I just think Autostarts has more options.
Also dev Entropy has a thread in the GS2 forums about know battery drainers. Some of it applies specifically to the GS2 but there are a bunch of general battery killers listed
http://forum.xda-developers.com/showthread.php?t=1308030
If you go to setting and battery it should show you which is using the most battery. The first one on top. If its android system, you can click on it and it will show you a list of whats been using your battery which may point you to the culprit. In my case, media was the only thing in the list. And I know if an SDcard is inside my dock it will drain battery. So after removing it the drainage went away. Havent had the drain issue since. Again yours might be different so check the battery usage.
Thanks for the feedback guys, the first thing i am gonna do is charge it up after it fell flat right up to 100% then try some suggestions. I am thinking a reboot could help it.

[Q] Location services on or off?

What's the difference between having location services on or off? I know this might be a dumb question, but the little compass icon seems to always be in the notification bar on my DNA. I can't remember if it was always like that or if it only started after downloading Tasker last week. I tried uninstalling Tasker, but it's still there all the time. I know I can turn it off in settings, but should I? Do I need Verizon, Standalone, and Google location services?
Also- lately Maps has been showing up at the top of the list for battery usage. Every day it shows like 60-70% usage with the next closest in the teens. I haven't used maps a lot, and it hasn't really seemed to affect battery life, but I'm wondering if this is related to location services. Has anyone else seen this? Thanks!
For me personally, when I left Verizon Location Services on my battery drained extremely fast and the little location services icon showed that it was active (three lines coming off the right side). When I turned Verizon services off and disabled location updating in Maps my battery increased enormously and the icon no longer showed activity constantly.
I now leave only Google location services on and manually turn on GPS when I need it. No issues since.
Sent from my HTC6435LVW
Thrillhouse847 said:
For me personally, when I left Verizon Location Services on my battery drained extremely fast and the little location services icon showed that it was active (three lines coming off the right side). When I turned Verizon services off and disabled location updating in Maps my battery increased enormously and the icon no longer showed activity constantly.
I now leave only Google location services on and manually turn on GPS when I need it. No issues since.
Sent from my HTC6435LVW
Click to expand...
Click to collapse
My battery actually hasn't been draining all that fast, it just seems to show that "maps" uses 60-70% of the battery even in a day where I don't open the application once. I leave gps on but as others have mentioned the phone only uses it when it needs to (evidenced by the satellite icon in the notification bar). I have had gps on since I got the phone but in the first few weeks maps showed as using more like 5-10% of the battery. Can anyone explain what I lose by turning off each of Verizon, Google and Standalone location services?
Standalone is for actual GPS navigation I believe. Where as Google location service is used for getting location for weather and whatnot. I leave Google on all the time and only use standalone for navigation. But I may be completely wrong lol
Sent from my HTC6435LVW using Tapatalk 2
DbZ Gokuu said:
Standalone is for actual GPS navigation I believe. Where as Google location service is used for getting location for weather and whatnot. I leave Google on all the time and only use standalone for navigation. But I may be completely wrong lol
Sent from my HTC6435LVW using Tapatalk 2
Click to expand...
Click to collapse
Nope, you're correct.
I had issues with the weather widget showing incorrect location if Verizon Services is enabled. I only use Google services and enable stand alone for navigation use.
qwertpiratej said:
My battery actually hasn't been draining all that fast, it just seems to show that "maps" uses 60-70% of the battery even in a day where I don't open the application once. I leave gps on but as others have mentioned the phone only uses it when it needs to (evidenced by the satellite icon in the notification bar). I have had gps on since I got the phone but in the first few weeks maps showed as using more like 5-10% of the battery. Can anyone explain what I lose by turning off each of Verizon, Google and Standalone location services?
Click to expand...
Click to collapse
I figured it out... leaving NFC enabled all the time for some reason shows up as Maps usage in battery life. I turned NFC off, and the next day Maps was back down to around 5%.
qwertpiratej said:
I figured it out... leaving NFC enabled all the time for some reason shows up as Maps usage in battery life. I turned NFC off, and the next day Maps was back down to around 5%.
Click to expand...
Click to collapse
qwertpiratej said:
My battery actually hasn't been draining all that fast, it just seems to show that "maps" uses 60-70% of the battery even in a day where I don't open the application once. I leave gps on but as others have mentioned the phone only uses it when it needs to (evidenced by the satellite icon in the notification bar). I have had gps on since I got the phone but in the first few weeks maps showed as using more like 5-10% of the battery. Can anyone explain what I lose by turning off each of Verizon, Google and Standalone location services?
Click to expand...
Click to collapse
I do not use NFC at all, It has been disabled since day 1. I have noticed my MAPS taking up 40-50% of the battery and I never use it. The only thing I enable is googles location services. and when I do use maps, I turn GPS on manually and then off when finished.
My FIX:
When I opened up MAPS, I went into settings > location settings and set location reporting to do not update your location.
This knocked MAPS off my battery usage list

[Q] nlpwakelock "Use wireless networks"

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

Categories

Resources