[Q] Forcing GPS on/off for root user??? (normal on/off doesn't work) - Android Q&A, Help & Troubleshooting

Hi guys! This is my first post here. Also i'm not native english speaker
Ok, right now i own a Galaxy Player YP-G1, rooted it with SuperOneClick like a week ago looking for a way to make battery last for longer time. Actually i've got good results after installing SetCPU and doing some reseach about how to config it.
However i still have a problem related to the GPS radio. It keeps turning on even if i disable it in the status bar and in the device's configuration menu. I've realized this GPS thing drains battery toooooo much and haven't found a way to force it to stay off. Always turns on by itself whatever i do.
Tried to disable autorun on all apps that used GPS localization with Gemini App Manager, still turns on...
I'd like to know if there's a rooted way to keep tgis guy off. Yesterday it turned on in the morning and even having used the music player for less than an hour the battery died extremely fast! and another days that it has stayed off battery has lasted until late night. It has to the the GPS.
Please guys help me, i've had univ courses of java and matlab so i have some idea of what i do when programing, so if it's necesary to write some lines i think i could handle it, maybe. Even better, if there's an app out there that fixes me this issue it would be even better.
Thanks !!!!

Up?

As per my knowledge, battery doesnt drain if you turn on gps and leave it like that forever. Battery drains are observed only when any app like google maps or apps like facebook use gps to set location. It might be your misconception about battery drain while gps turned on.
I would like to give an advice to use pdroid for custom roms. Pdroid is an app that enables you to change permissions of installed app so that you can disable any app to access gps location. This saves hell of battery.
Sent from Hell!!

Well I found an app that so far has kept GPS off since i installed it: GPS Toggle Widget (root)
(can't post the link for being noob )
I'll be updating if it really works in a few days
BTW thanks .xxx. !!!

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] Saving Android Battery Life in FLIGHT MODE

hallo,
i installed different kinds of android (SD version) on my HTC HD2, lastly i decided to use the MccM HD V6 SD SENSE FROYO and im very happy with that.
but ive got a problem: when im using flight mode while sleeping (usually 6-8hours), the battery loses 40-45% charge.
here is the situation:
- when im turning the device off and on again before using flight mode (means boot to wm6.5 artemis and then launching android, activating sim card and then setting device to flight mode) it tages 3-5% of charge during the night.
- when i do NOT reset the device, just enter flight mode after using the phone the whole day (facebook, google maps, ...) then the battery loses 40-45% charge as said before.
so the problem might be an application, which - once it is startet - always tries to connect when im flight mode. i startet using zdbox with autokill on lock, later also autokill system programs - no sucess.
lately i tried batteriefu, but this only stopped my data traffic/connection right now.
i have no idea, what to do against that. a friend told me, its not necessary to use taskkillers at all in android - whats your opinion?
maybe the SD android is a problem? (when programs use the SD card during night, it drains the battery?)
thnx in advance
markus
ps: sorry newbie, first thread in this board - when im doing wrong, just tell me - it was not on purpose.
Battery drain
wHY NOT JUST SWITCH THE PHONE OFF AT NIGHT????. Am I missing something??
Good luck
- galarm? (alarm use)
- and it takes time to go to wm6.5 and then launch android?
John, your shift key is stuck..
I can't help you directly, but SpareParts has a log feature that will tell you which applications cause the device to not enter sleep mode correctly (wake-lock), using that you should be able to locate the program causing the issue.
ok, spareparts was one of the things i uninstalled
spareparts or spareparts+?
thnx!
Normal spareparts should be able to do it (at least the one that came with my CM7 does)
ok, installed it, checkt the logs, loading battery and testing this night
interesting, last 2 nights there was a batteryloss of only 3-4%.
no idea why...
I've heard of roms / kernels taking a couple days to settle before some of the kinks go away, so it might be something of that sort. Otherwise I would assume your phone should be saving power if it's not connecting to networks as frequently
VVarboss said:
I've heard of roms / kernels taking a couple days to settle before some of the kinks go away, so it might be something of that sort. Otherwise I would assume your phone should be saving power if it's not connecting to networks as frequently
Click to expand...
Click to collapse
Y'know, I thought it was just me thinking this but I have noticed better performance once RevolutionROM has been in for 2 days or so.
I know there is politics for posting on a old thread but I saw this thread on Google while trying to see if this happened to anyone else.
I would like to report that right before bed I had 22%. My Samsung Skyrocket will eat right through 22% overnight if the cell radio is on. So without rebooting I turned on airplane mode (so I would have an alarm in the morning.) I woke up and my battery was at 28% I couldn't believe it. I will try to re-create this again. This was from 2am to 7am. In my battery details graph it even shows a little "hill" noting the increase.
I did hit the Task Killer button from my ES Task Manager widget right before airplane mode to make sure Facebook and Email were closed.
Any Input?
Have you tried betterbatterystats? I had high drain with new rom and seems to have been Audiout_2 which was started by the keyboard click. It was on by default in the ROM. Its off now and all is OK. Seems once it starts it must be continuously polling.
Sent from my HD2 using the power of Jelly Bean

[Q] How much battery does idle gps drain?

stock rom
If i leave gps on.... and all the apps i have that may use gps (travel, voucher etc) do not run in the back ground,
except google maps.... will this really drain random battery throughout the day.
The reason I ask this is when using google maps...i see the gps symbol on the top of my phone, but once i back out of it...the symbol disappears, and when i go back into it to resume what i was doing the symbol turns back on and the gps has to find my location all over again.
Hence I come to the conclusion that the gps is not 'always on' when you don't need or (given you don't have any dodgy apps)
Then I could turn off googles location sharing thing, because if I am correct you need that on if you want to use location services without gps?
SGS2 uses sirfstar IV
http://www.sys-con.com/node/1822443
http://www.csr.com/products/25/sirfstariv-gsd4t
This is a modern GPS chip, it don't think it uses much battery. I've always GPS on and I've no battery issues. And I agree that it seems that the chip is set to some kind of standby when not in use so turning off the GPS in the settings (or notfication pull down) seems more like a privacy thing than power related.
Thanks for confirming. Will now try leaving gps on and location services off and see what happens. sometimes gps on its own takes a few extra seconds to locate you...might be annoying with certain apps
If you refuse location sharing you will not be able to use WIFI positioning service, but can still use cell tower positioning if your GPS is off. Personally I never use WPS since WIFI use a whole lot of power so I always keep it off. There are situations where it's useful (i.e. inside downtown can't get a GPS signal), so you can decide if you want it or not.
I usually keep my GPS off too, since when I open maps I just want to look at map, I don't need to know my exact location (and use the extra power).
My Galaxy S2 GPS sucks the battery life when I keep it on. My partner keeps his Galaxy S2 GPS on and the icon only comes on when something like Maps loads but immediatly goes away when you you exit Maps. Mine seems to stay on all the time and I can't see any obvious process running all of the time (except Maps). I monitor the battery usage with a tool and GPS is certainly running my battery down far quicker than if I turn it off.
Anyone else experiencing the same?
marklyn said:
My partner keeps his Galaxy S2 GPS on and the icon only comes on when something like Maps loads but immediatly goes away when you you exit Maps. Mine seems to stay on all the time and I can't see any obvious process running all of the time
Click to expand...
Click to collapse
I have the GPS setting turned on all the time, but my GPS only really turns on when I open an app that uses GPS, like Maps or Facebook. Just like your partner.
I actually want to keep it on all the time... like yours
Can you send me your /etc/gps.conf and /etc/sirfgps.conf ?
I'm not sure if that's what control this behaviour.
Noed said:
I have the GPS setting turned on all the time, but my GPS only really turns on when I open an app that uses GPS, like Maps or Facebook. Just like your partner.
I actually want to keep it on all the time... like yours
Can you send me your /etc/gps.conf and /etc/sirfgps.conf ?
I'm not sure if that's what control this behaviour.
Click to expand...
Click to collapse
I only had the gps.conf, not the sirfgps.conf file. Attached here.
I have to turn on GPS only when I need it for something and turn it off, otherwise it clearly drains my battery, in pretty quick fashion.
I had to rename it gps.txt to upload it.
Keeping GPS on is not draining your battery, because its realy turning on, only on application requests. Battery drain may come from some buggy app, which not close it GPS connection. You can easily see this by your GPS indicator. No indicator - no app using GPS atm - no battery drain, flashing indicator - GPS trying to lock ur position, indicator on - GPS is used and got lock on sattelites.
incident404 said:
its realy turning on, only on application requests
Click to expand...
Click to collapse
Is there a way to keep GPS always on, independent of an application request?
I want to control it on/off manually
I leave GPS on all the time. Only works when apps request / need it. No battery life issues for me.
Sent from my GT-I9100

GPS constantly working

Hello all!
Since yesterday, when I updated the firmware of my phone, the GPS icon has been shown constantly in the notification bar. It did not use to happen before. I am afraid it might be draining more battery than needed but I don't want to turn off GPS completely as I wanted it to be "ready to use" whenever I need to use, for example, Google Maps.
Is there something I can do? How can I control which app's might be using GPS connection in every moment?
Thank you!
+1
Every once in a while I see the GPS icon light up for a couple of seconds without apparent reason. I have no auto geo locating widget or so running, which might be an obvious guess.
Edit: just noticed I had weather information enabled on the lock screen so that may be the cause.

Battery Drain Solution!

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

Categories

Resources