Comm manager and GPS - Mogul, XV6800 ROM Development

Now that we have a rom available to enable the internal GPS (much thanks to DCD!) would it be possible to add a GPS enable/disable icon to the HTC Comm Manager?
Or is this even necessary?

from what ive heard... once you shut your phone to standby it closes the gps port. some people claim with no apps running such as google maps or live search that by going to ##debug#... it still shows their gps location. If i had a bet and we made a button that did that, all it would do is disable the LOCATION ON setting in your phone settings. Then when you want to turn it on.. you would turn that back to location on

i havent played with commmanagers much, but assuming we can point a button at a mortscript, theres already quite a few gps startup morts floating around. im sure we could modify the start script to be a toggle.. let me look around
edit: check out talynone's thread here and see if any of the launcher-type apps he linked might give us a start. the real project is coming up with what you want to call your gps toggle, i think sticking that in the commmanager will be easy at that point.

Thanks guys,
Really there isn't anything to shut off technically...it's not like shutting off Bluetooth transmitter which drains battery power...
But a toggle to switch bet location on and "911 only" would be helpful for those who have friend tracking apps and don't want to be located at certain times.
It's really a very low priority to have I must admit, but it would be nice to know I didn't have to dig deep into phone settings to toggle that off.
I'll look around for something that already toggles this for those who have built in GPS stock and WM6, And post whatever I find here.

friend tracking apps?

there are a few of those services like Loopt that will let friends track you via GPS (probably AGPS)....
https://loopt.com/loopt/sess/index.aspx
It's available for Sprint now...
there are also Parental trackers out there for Smartphones but I have never seen one for the PPC yet...
They also use the location on settings in the smartphones which is really the capability we are enabling with the new radio.
So a quick way to turn location on and off seemed like a good idea.

Asphyx said:
Thanks guys,
Really there isn't anything to shut off technically...it's not like shutting off Bluetooth transmitter which drains battery power...
But a toggle to switch bet location on and "911 only" would be helpful for those who have friend tracking apps and don't want to be located at certain times.
It's really a very low priority to have I must admit, but it would be nice to know I didn't have to dig deep into phone settings to toggle that off.
I'll look around for something that already toggles this for those who have built in GPS stock and WM6, And post whatever I find here.
Click to expand...
Click to collapse
If there isn't anything to turn on or off, then why do I need to run AstroGPSLauncher to get the sats up for TomTom? Or is this just making a connection that already is live and leads TomTom to it?
P.S. I have seen CommManagers with a GPS icon in the past. Maybe even on one of your ROM's dcd.

Well hohnan - It's very different situation than the other things you turn on and off in the Comm Manager...
IE: when you turn off Bluetooth your really turning off the transmitter and shutting down the port (com usually) that the receiver uses to send data it recieves to the device...but the receiver stays on.
The GPS location off feature is similar in the respect that it does not transfer data it receives to the rest of the phone because the com port is shut down. There is no radio transmitter being used at all. I'm willing to bet that they use a single Radio receiver for all the radio signals the unit can see (Cell BT WiFi GPS). So by shutting location to 911 only your GPS is still receiving Sat data and running (cause it can see the sat transmissions) but it simply doesn't send the data anywhere as there is no port to communicate with.
I think the primer app your running is simply initializing the communications between the radio and the phone so that Tom Tom can use it.
I suspect in due time both Tom Tom and Garmin will be more aware of the built in GPS settings of WM6 and negate the need to run something else before it will work.

Related

GPS Power Consumption on Mogul

hey guys...with all the talks bout gps going on...i thot bout checking on how much battery gps chipset consumes vs having it off. I know few people wanted to have it ON all the time to use program like sprite terminator track the position of the phone if its lost or stolen.
I have used acbpowermeter and it shows gps uses more than twice the power. This test does not include running a gps program like tomtom or iguidance...just astrogpslauncher to turn the chipset on.
attached are 2 gif images showing the power consumption overall;
One w/ GPS off and the other w GPS ON
In both test i had to have the screen ON with brightness in the Exact middle in settings.
Test Results
W/O GPS
Avg consumption: 80mA
5 Min consumption: 6mAh
W/GPS
Avg consumption: 197mA
5 Min consumption: 17mAh
though I know the gps would consume more power...for me its wanting to know what is the more power efficient...running the internal gps...or having to have bluetooth on so I can use my bluetooth gps
Can you test one with just GPS Today running? It's supposed to consume a lot less battery
^ Don't see how as it is still running GPS.
ok guys...i wasnt running a gps software...but i had primed the gps (gave power to the gps chipset) using astrogpslauncher...i just wanted to know how much more power is the chispset using than not having it on at all.
@aph - i doubt it will use less battery...as it would still b accessing the chispet (using same power that astrogpslauncher is).
@CromDubh - i dont have a bt gps unit...but you can use acbpowermeter and find out...and please post results for others.
i would assume the power consumption would be different due to the bluetooth being a lower power radio (max 30 feet) and also depends on the program (google maps will d/l map pieces while other will read them off the card requiring one less wireless data transfer).
So if you were going to test BT vs AGPS can i recommend using one of the programs read from card AND then another set using google maps or something similiar?
well the thing about GPSToday is its supposed to use less battery because its not constantly running the gps, it just powers it on every few minutes to get a fix on your location, so its not always running like with astrolauncher
i donwloaded acbpowermeter and it working fine, i just wanna understand how to use it and what it means...any clarification?
gbenj said:
i donwloaded acbpowermeter and it working fine, i just wanna understand how to use it and what it means...any clarification?
Click to expand...
Click to collapse
ok...some things you want to know...thers a RESET button...and theres the pause/resume button
if u want to do a comparison; i wud recommend some things
1 - have a stopwatch on you...there is no timer on the program itself except for the graph
2 - i would recommend u disable power saving like "Turn of screen after xx Seconds" in backlight settings; and "turn of ppc after xx mins" under power (otherwise you will be pressing the buttons which can interfer with true data
start the program; get the stopwatch ready; run whatever program you want to run and hit the reset button on the acbmeter
try it few times and u'll know exactly what to do
i use a program called dotpocket to take snapshot its pretty kool proggy
rbadh91 said:
ok...some things you want to know...thers a RESET button...and theres the pause/resume button
if u want to do a comparison; i wud recommend some things
1 - have a stopwatch on you...there is no timer on the program itself except for the graph
2 - i would recommend u disable power saving like "Turn of screen after xx Seconds" in backlight settings; and "turn of ppc after xx mins" under power (otherwise you will be pressing the buttons which can interfer with true data
start the program; get the stopwatch ready; run whatever program you want to run and hit the reset button on the acbmeter
try it few times and u'll know exactly what to do
i use a program called dotpocket to take snapshot its pretty kool proggy
Click to expand...
Click to collapse
but what do the two lines mean?
gbenj said:
but what do the two lines mean?
Click to expand...
Click to collapse
the dark one is the average the other one is current at that point; if u run the program and while its going, you press a button; that will make it spike a bit, launch a program; it will spike higher, close the program it will go lower
I still say your not going to get a real sense of how much power the GPS Chipset itself consumes until you test it in the following way....
Test 1 (Control) - Turn location setting to 911 Only (disabling the GPS chipset from listening to the radio, collecting data and reporting it.)
Test 2 (Chipset enabled) turn on Location without running any primer program to see if the location on setting actually consumes more power... There should be a difference but a minimal one. The Chipset itself does not require a lot of power. In fact you might find that the chipset was always on it's just that there was no software to communicate with it until now. (you would have to find a rom that support both new and old radio to prove it though) Location would in that case only control communication to and from, not the chipset itself.
The problem with the method being used so far is you can not tell how much of the power is being used by the chipset and how much is increased proc load of the program due to the fact it now has data to process. Just the power to update the screen alone with the incoming data will make the power usage spike and that spike has nothing to do with what the chipset is eating on you The Data has to go through the Proc eating power. your also driving the serial ports with the program on as well so it can receive data...All of these drains make up this 87mA difference. It's not all chipset.
When the final official radio is released I bet you won't need this primer program to enable the chipset. And then you'll have a more accurate test of just how much power the chipset uses without clouding it with processor, serial and screen refresh cycles adding their two cents to the number.
I think the chipset has always been on and it's just that there was never the programming to talk to it under the old radio driver. the new radio has issues opening up a communication port to the chipset properly under 3.27 radio and that is the only reason why the primer is needed to see that the chip is working. Under normal circumstances (and at some point official radio driver) turning the location on would automatically open that port for communication to any program who polled it. My guess is that just isn't happening in the beta. Should happen whenever it is finally stable and official.

"Using GPS Software Without Having to Reset Every Time"

Let me start by saying my Mogul (Bell) has ALWAYS LOCKED (found satellites) with ALL of DCD's ROMS from the day he started creating the ROMs for the GPS. All the "GPS" radio's have worked and am lucky never to have a problem except one: Not Finding GPS/Satellites after the Mogul Sleeps or being able to get it working again without a soft/hard reset everytime!!!​
I have been using only DCD's ROMS and currently have radio 3.35.04 and DCD 3.01 installed. I am using Garmin XT and GPS Tuner. I get the same results with every GPS software I have tried.
Here are brief details:
After hard/soft reset - if its within a few seconds and I catch it quickly, there are no problems, both the AGPS and the software are working fine.
After 2-? Minutes - if I let the unit go to sleep, and awake it via the Power button, the gps program is looking for satellites. Sometimes it finds them, most of the time not. It wont find them in ANY program, even GPS Viewer and/or any other navigation program.
After Many Minutes - not only are the satellites gone, but now the navigation software cannot find the AGPS with any program OR method.
Sometimes a soft start fixes it, sometimes only a hard start will do the trick.
I have tried as much of the "forced start" software that I could find, but to no avail.
I also changed the com port to 5 thinking that there maybe is a conflict with 4, (you have to make sure the com port setting in all of your GPS software is also changed unless the software does this automatically) but the SAME issues stated above occur.
I have loaded and reloaded probably 20 different configurations of my software even to the point where all I had loaded was the bare DCD rom (no options or unnecessary OEM's) and JUST my Navigation software. Same issues......
I hope I am not the only one and hope that the contributions to this thread will fix this issue.
Please.....Keep this thread focused on this issue only - Keeping the GPS alive!!! ( no Where did you get this or that program? How did you install it?)​
keeping the gps alive will kill the battery.
yea, i have teh same issue as you. soft reset is the only way i get gps working.
thecalip said:
keeping the gps alive will kill the battery.
yea, i have teh same issue as you. soft reset is the only way i get gps working.
Click to expand...
Click to collapse
Maybe a better way to phrase it would have been to make the GPS available without having to do a soft reset every time.
We don't want to keep GPS alive indefinately! We just want so if we accidentily press power button while navigation is happening, we not have to reset the phone.. because this is a little inconvenient. If I am driving down the road and I hit my power button, now I have to pull over and reset my Titan because otherwise I have no GPS navigation ability and that's not a good happening, you know? We just want so if navigation software is active, not kill GPS, then when shutdown GPS navigation software, shut down GPS gate properly so when want to relaunch GPS navigation software, not need to reboot Titan.
I'm sorry to post in a rather old post.
But I'm having the same problem with my Samsung i780.
When I already used my GPS after turning on my phone and put it back to sleep, it can't find a valid GPS signal when waking it up.
After a soft reset, the GPS signal is found very quickly.
Any fix for this?
yeah, the fix is GC's aGPS fix. I never have to soft reset my device to get a lock ever.
I don't use aGPS, just the internal GPS receiver.
Will it also fix the problem then?
>> edit:
It's not that the GPS doesn't work after accidentally pushing the power button. It's more like when I use the GPS the first time after turning the phone on, everything works fast and good. But when I close the Navigator software and turn it back on in -let's say- two hours, it doesn't get a signal from the GPS. I don't use aGPS.
I only use Google Maps and TomTom7. If I make sure the phone doesn't go to sleep while Google Maps is tracking GPS all is fine. However, if the phone goes to sleep while Google Maps is using the GPS it will not work again, in any program, until I soft reset. If I bring the phone out of sleep fast enough, it's fine. If the same happens with TomTom though it takes a few seconds to fix itself and then everything works just like it did before.
I'm not sure why it works fine with TomTom and not Google Maps though.
I found that if I use the GPS toggle program and leave it on. It finds the GPS signal after sleep mode. It is a small today screen plugin. I also have attached the latest version of Google maps. If i am using the GPS with Google maps it doesn't stop when the phone goes into sleep mode. See if this helps.
i use the same gps toggle program that tommvee suggested using and it works great. i wasn't originally having problems finding GPS satellites after waking from sleep mode, but was having to wait up to 5 minutes before garmin xt could find my location. after installing the gps toggle .cab, doing a soft reset, activating the gps toggle and letting it run in the background for a few minutes, both garmin xt, and googlemaps can now find me in about 30 seconds. i do believe however, that you'll have to reactivate the gps toggle after restarting the phone but it will stay running while your phone is in sleep/standby mode.
tommvee said:
It finds the GPS signal after sleep mode. It is a small today screen plugin./QUOTE]
Is there anyway to activate the program without the today screen plugin?
I'm using the default Samsung Home plugin and it takes the whole screen...
Click to expand...
Click to collapse
kflipproductions said:
yeah, the fix is GC's aGPS fix. I never have to soft reset my device to get a lock ever.
Click to expand...
Click to collapse
I am also using aGPS but still have problems if I accidently hit the power button in Google Maps and forget to turn it back on. My power button is very sensitive so even brushing it as I set the phone down will put it to sleep. It doesn't click anymore like the other buttons do :/
As for the battery usage, I only use GPS in my car where I have the phone plugged in 90% of the time.
Where can I get GC's GPS fix?
RedRamage said:
Where can I get GC's GPS fix?
Click to expand...
Click to collapse
I think there's a link to the How To in the Titan wiki.
Any pointers on shutting down the gps gate? I could try a utility for doing the shutdown manually.

[REQ] mod gps

hey im wondering if this would work for us or is there some porting needed and is this somthing that would help gps and if im in the wrong section please move.
http://forum.xda-developers.com/showthread.php?t=881941
Very interesting post indeed.
From his findings, I'm also wondering if we have Auto Rotate Screen (the accelerometers) turned off, if that hinders the ability for our GPS to accurately detect location and movement. He suggested that it goes into low-power mode when it isn't detecting movement via the sensors, but didn't say what happens if the sensors are turned off.
...I'm going to have to test this out tomorrow.
Are people still having issues with GPS on the fascinate? Since we more or less had the issue fixed I've had as good or better GPS performance than on my other smartphones.
Da_G is a good buddy of mine, trust me, if anyone knows wtf they are talking about, it would be him....
lane32x said:
Very interesting post indeed.
From his findings, I'm also wondering if we have Auto Rotate Screen (the accelerometers) turned off, if that hinders the ability for our GPS to accurately detect location and movement. He suggested that it goes into low-power mode when it isn't detecting movement via the sensors, but didn't say what happens if the sensors are turned off.
...I'm going to have to test this out tomorrow.
Click to expand...
Click to collapse
im just wondering if this is safe to flash to our phones or does it need to be ported to fascinate
yep still having issues with gps...sometimes doesn't lock. sometimes takes forever. sometimes...omgsh...it actually locks!
not reliable.
I applied the d101 gps fix to eb01 and my gps locks in around 20sec. Auto rotate or not my gosh never locked on eb01 without the d101 fix.
Sent from my SCH-I500 using Tapatalk
Just tested my gps a little. Mine is locking within 5 meters in a brick building with auto rotation on or off. Not in a car currently but I took a little jog and it seemed to follow my direction and location very accurately in both.
So I guess my GPS is pretty good.
Regardless... I wanted to say thanks for reposting that because it was a really interesting read!
It should just work, even though EB01 stock should just work too.
Just don't flash the AT&T-specific version...
The Fascinate doesn't seem to have the same layout concerning the gps jupiter files (I don't see them anywhere, at first glance). Either I am missing something or it's a completely different setup.
There are some settings in his /data/gps/secgps.conf (just a text configuration file) that are different than the stock fascinate file. These might be worth looking into to see if they help improve the signal without using his modified binary. You don't need to flash the file using CWM, just use adb to push a modified file (or root explorer and edit it on the phone itself).
Since this is a CDMA phone, I don't know how many people this would affect, but here is a general Android GPS tip for those who don't live in North America:
In /system/etc/gps.conf, change the address to the server that corresponds to your country:
Code:
NTP_SERVER=[COLOR="Red"]north-america[/COLOR].pool.ntp.org
I usually can't get an accurate lock or any lock at all unless I reboot with gps already enabled. Then I will get a good lock instantly... If I reboot the phone with gps off then I will get no signal/lock again.
Sent from my SCH-I500 using XDA App
Let me share my experience with GPS on EB01, it's GREAT, you just have to turn on GPS "correctly."
If I turn on GPS using the Notification switch, GPS takes FOREVER to lock, if it even does so. Gone several minutes with no lock.
Now here's the thing, if you turn on GPS in the Settings > Location settings, I always get super fast, under 5 second GPS locks. ALWAYS. I've tried this out repeatedly over several days, and it really makes a difference. Once you turn on GPS using Settings, you can leave your phone on, reboot, whatever, and GPS will still be responsive. If you turn it off, wait a while and use the Notification switch to turn on GPS and you're trying to get a cold lock, it'll be slow again, just be sure to use the Setting option and it'll be back to being responsive.
That's my experience.
CrushD said:
Let me share my experience with GPS on EB01, it's GREAT, you just have to turn on GPS "correctly."
If I turn on GPS using the Notification switch, GPS takes FOREVER to lock, if it even does so. Gone several minutes with no lock.
Now here's the thing, if you turn on GPS in the Settings > Location settings, I always get super fast, under 5 second GPS locks. ALWAYS. I've tried this out repeatedly over several days, and it really makes a difference. Once you turn on GPS using Settings, you can leave your phone on, reboot, whatever, and GPS will still be responsive. If you turn it off, wait a while and use the Notification switch to turn on GPS and you're trying to get a cold lock, it'll be slow again, just be sure to use the Setting option and it'll be back to being responsive.
That's my experience.
Click to expand...
Click to collapse
Nice observation...just worked for me too!!
By golly... He's right, although it took me about twenty seconds to lock.
Sent from my SCH-I500 using XDA App
Hmm... I remember this from a different android device I have. The stock power control widget for wifi would take 45 seconds longer for the network to connect then if I would go to the wifi menu and turn it on myself. I found out that there were two methods for turning on the wifi programmatically, and that some widgets used one method and the other widgets used the other.
If I remember right, the fast method changed the setting by calling the wifi menu and emulating the menu press, while the slow method attempted to power on the wifi directly.
$10 says that if you started decompiling, you'd find a similar situation here.

[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

[Q] GPS in Airplane Mode

Hey guys, first off, I have searched for no less than 2 hours for an answer to this question, and while there are lots of discussions, none of them seem to replicate what I am seeing.
Can anyone confirm this, and does anyone have a fix?
GPS will not lock a single satelite in Airplane Mode. I'm in American Samoa without cell coverage, and using the GPS Status app to test. Here's my findings:
First, I turn off Airplane mode, turn on WiFi (connected), turn on GPS. I do not get a cell signal. I open GPS Status, GPS locks onto the first satelite within a minute, and locks position in 10 seconds after that. I turn Airplane mode on which turns WiFi off. Interestingly enough, GPS is not turned off. I turn GP Soff, and then turn it back on (have read suggestions to do so, and have also tried not switching it at all). I then turn Wifi on and verify connection. I open GPS Status, and let it sit for up to an hour outdoors, not a single satelite ever appears. I turn Airplane mode off, and within a minute I have a locked location.
So, two questions, is it possible to get GPS to work when in Airplane mode, or is it possible to disable the cell radio some other way (possibly keeping GPS enabled)?
Here's my stats:
Phone: Moto Razr Maxx
Rooted: Yup
Carrier: Verizon
Sys Version: 6.12.181.XT912.Verizon.en.US
Android Version: 2.3.6
Baseband: CMDA_N_04.07.01R LTEDC_U_07.1F.00
Purchased about a month ago
Playing around a bit more, I noticed that when I have airplane mode off, and GPS on, and GPS Status open, if I quickly hit the home button, turn Airplane mode on, and go back into GPS Status, a lock remains for about 3-5 seconds, and then satelites slowly start disappearing until there's none left. Airplane mode is definitely disabling GPS on my phone.
Anyone? Bueller.... Bueller... Bueller...
I can post video if you don't believe me...
I have read that the GPS needs a data connection to make a lock. I don't remember where I read that, but I had the same problem when I was in Europe trying to use my phone primarily as a GPS device with cached maps. There was maybe once or twice that it actually locked, out of many many many many attempts.
I have airplane mode on, wifi and blutooth off, then turn on gps, I get gps lock on my Droid Razr with stock gingerbread for a short period then lose all satellites. It appears that you can't use gps with airplane mode on.
bump i have been wondering about this also. airlines often expressly allow gps. after all, gps RECEIVES, it doesn't transmit.
droidmo said:
I have read that the GPS needs a data connection to make a lock. I don't remember where I read that, but I had the same problem when I was in Europe trying to use my phone primarily as a GPS device with cached maps. There was maybe once or twice that it actually locked, out of many many many many attempts.
Click to expand...
Click to collapse
Actually GPS doesn't need data connection to make a lock. But with data connection it helps make lock much faster.. that's the features called A-GPS (Assisted-GPS), google around about A-GPS for more detailed info how it works.
I always turn off my data connection every time i use my razr for navigation. I only turn data connection sometimes to make the GPS locked and after i got a lock i always turn off the data connection (I'm not on data plan) and even i didn't turn on my data connection I still can get a lock as long as i am outdoor. So far i never had razr GPS lock problems. This phone's GPS never disappoint me.
My guess is maybe it's some kinda bug on the airplane mode or maybe that's intentionally for some safety reasons.
Same here. I did:
- open maps, locate my position. ok.
- turn off wifi and data
- go back to maps, position ok.
- longpress power, turrn on airplane
- gps starts blinking, position lost
- turn off airplane, but data remains off
- gps position found in 2 seconds
(also tried with "GPS Test" app - same result)
I have MAXX AsiaRetail stock 2.3.6
Sent from my XT910 using XDA
Thanks guys, nice to know it's not just me! Just to clarify some other posts, GPS works with or without a data connection as long as airplane mode is off.
So, seeing as though airplane mode kills GPS, does anyone know of a way to disable the cell radio (to save battery life) without turning on airplane mode?
And just to comfort those who worry about flying, I'm just using the phone for directions and what not (American Samoa doesn't have street addresses believe it or not, and 2 houses past the third palm tree doesn't cut it ). I download the directions while at the hotel on wifi, then go about my way, but if I can't use GPS in airplane mode, it kills the battery searching for a cell tower.
kreez said:
So far i never had razr GPS lock problems. This phone's GPS never disappoint me.
Click to expand...
Click to collapse
Couldn't agree more, while in the states with cell reception, this phone's GPS is fantastic! Unfortunately, if you have to keep airplane mode off to have it work, it's useless in the back country, or 3rd world countries. Maybe today's ICS release will fix the bug!
I don't think it's a bug. My droid X did the same thing.
risslerp said:
I don't think it's a bug. My droid X did the same thing.
Click to expand...
Click to collapse
Ah yes, feature not bug. :cyclops:
Moved To Q&A​
Please Post questions in the Q&A section​
On my Razr Maxx I also have no gps in airplane mode. I'm running the official 4.04.
I'm going to guess this is because the droid radio chip has gps integrated along with the cellular radios. Here's my evidence:
Turning off the radio with the LTE OnOff app (it just opens the radio service menu, same as dialing the service number), and pressing "Turn radio off": Gps Test would never see any satellites and would never get a gps lock.
Setting the "preferred network type" to "GSM only" (this has no service in Seattle with Verizon): Gps Test immediately sees satellites and I get a gps lock.
I wish there was an option to turn off all the cellular radios but to leave the gps radio on. I use my razr maxx hiking with offline topo maps and OruxMaps, and it lasts about 8 hours recording tracks every 1 minute.
Possible solution?
My findings are that when using my Razr Maxx still on 2.3.6 stock settings, If I run the GPS Test application with GPS, 3G data and cellular on (airplane mode off) it acquires my location accurate of 10 feet, using 8-12 satellites in approximately 10 or so seconds. If I exit, toggle Airplane mode on, relaunch GPS Test, it will acquire my location in the same time, accuracy and with again 8-12 satellites. But If I exit, toggle GPS off and then Airplane mode on, Toggle GPS on, relaunch GPS Test, it will not be able to locate any satellites.
Now, with that said, if I go into my data/data/com.android.providers.settings/databases/ directory and open the settings.db file, in the "system" entry, I do not have gps listed in either the "airplane_mode_radios" or the "airplane_mode_toggleable_radios" values. I do have "cell,bluetooth,wifi" under the airplane_mode_radios value, and "bluetooth,wifi" under the airplane_mode_toggleable_radios value.
I do not know how this looks in ICS for the Razr (4.0.4). I also do not know if gps is even able to be included here. Just a theory.
I might be on to something that may work and you will need to be rooted.
I warn you, that I have not tried modifying this myself, so I cannot verify it will work. Do not try this if you aren't comfortable with attempting it without it being verified to work first.
What I'm thinking is to use an app like Root Explorer and navigate into the data/data/com.android.providers.settings/databases/ directory. Open and edit the settings.db file with an app like SQLite editor. Then open the "system" database entry. Check to see if on around lines 21 and 22 there are entries named "airplane_mode_radios" and "airplane_mode_toggleable_radios". Once located, check to see if their values include gps among the other available radios. If the airplane_mode_radios value includes gps, then long press, tap edit field, remove it and save. If gps is not listed under the airplane_mode_toggleable_radios then long press, edit field, add gps and save. Exit and reboot.
I think with doing this, it should not turn GPS off when airplane mode is toggled on and it should allow you to toggle GPS on and off while airplane mode is on.
If anyone else knows of an easier or proven way to do this then let us know.
If you know this will not work, correct me and let me know.
Ryco26 said:
My findings are that when using my Razr Maxx still on 2.3.6 stock settings, If I run the GPS Test application with GPS, 3G data and cellular on (airplane mode off) it acquires my location accurate of 10 feet, using 8-12 satellites in approximately 10 or so seconds. If I exit, toggle Airplane mode on, relaunch GPS Test, it will acquire my location in the same time, accuracy and with again 8-12 satellites. But If I exit, toggle GPS off and then Airplane mode on, Toggle GPS on, relaunch GPS Test, it will not be able to locate any satellites.
Now, with that said, if I go into my data/data/com.android.providers.settings/databases/ directory and open the settings.db file, in the "system" entry, I do not have gps listed in either the "airplane_mode_radios" or the "airplane_mode_toggleable_radios" values. I do have "cell,bluetooth,wifi" under the airplane_mode_radios value, and "bluetooth,wifi" under the airplane_mode_toggleable_radios value.
I do not know how this looks in ICS for the Razr (4.0.4). I also do not know if gps is even able to be included here. Just a theory.
I might be on to something that may work and you will need to be rooted.
I warn you, that I have not tried modifying this myself, so I cannot verify it will work. Do not try this if you aren't comfortable with attempting it without it being verified to work first.
What I'm thinking is to use an app like Root Explorer and navigate into the data/data/com.android.providers.settings/databases/ directory. Open and edit the settings.db file with an app like SQLite editor. Then open the "system" database entry. Check to see if on around lines 21 and 22 there are entries named "airplane_mode_radios" and "airplane_mode_toggleable_radios". Once located, check to see if their values include gps among the other available radios. If the airplane_mode_radios value includes gps, then long press, tap edit field, remove it and save. If gps is not listed under the airplane_mode_toggleable_radios then long press, edit field, add gps and save. Exit and reboot.
I think with doing this, it should not turn GPS off when airplane mode is toggled on and it should allow you to toggle GPS on and off while airplane mode is on.
If anyone else knows of an easier or proven way to do this then let us know.
If you know this will not work, correct me and let me know.
Click to expand...
Click to collapse
I'd like to confirm that I'm having the same issue of having no GPS connectivity when in airplane mode even though the GPS has been toggled on. Numerous other forums have stated that this is a hardware issue with Motorola phones. I'm curious if the above quoted solution has worked for anybody.
Thank you!
This is the response that I got from Motorola after asking the general question about having GPS turned on when airplane mode is on:
"When airplane mode is enabled, this will automatically disable all wireless and radio communication on the device including the GPS receiver. Because the phone, in order to determine location, takes readings from both GPS satellites and nearby cellular base stations (towers), with the help of a location server on the network. In other words, the phone relies on the network for help in determining location. Although the phone does receive GPS signals directly from the satellites, it can't determine actual location without help from the cell network."
Therefore, you can't use the GPS radio by itself.
hantav said:
This is the response that I got from Motorola after asking the general question about having GPS turned on when airplane mode is on:
"When airplane mode is enabled, this will automatically disable all wireless and radio communication on the device including the GPS receiver. Because the phone, in order to determine location, takes readings from both GPS satellites and nearby cellular base stations (towers), with the help of a location server on the network. In other words, the phone relies on the network for help in determining location. Although the phone does receive GPS signals directly from the satellites, it can't determine actual location without help from the cell network."
Therefore, you can't use the GPS radio by itself.
Click to expand...
Click to collapse
But the GPS still works fine when I am far away from any cell towers of any kind...
I think whoever responded to you was trying to justify airplane mode turning off GPS. There must be a way to force it to stay on.
It has certainly frustrated me that I can't use airplane mode to save battery while using GPS.
I'm by no means an expert on this issue but I think the GPS and cellular radios are physically connected (on the same chip??) inside most Motorola phones. So even though you might not be near a cellular tower, and if airplane mode if off, you should be able to get a GPS signal. But if airplane mode is on, then both the cellular and GPS radios will be turned off.
Basically, the interwebs is pointing to a hardware issue rather then an a software issue. However, I hope a software solution is available.
MrCavity said:
But the GPS still works fine when I am far away from any cell towers of any kind...
I think whoever responded to you was trying to justify airplane mode turning off GPS. There must be a way to force it to stay on.
It has certainly frustrated me that I can't use airplane mode to save battery while using GPS.
Click to expand...
Click to collapse
I'd give $20 for a software solution to this problem. I am an avid hiker. Using a cell phone in Airplane Mode you get 4x, 5x, 6x the battery life. If I can use GPS while in Airplane Mode, I can hike a very long time, but if I'm forced to leave the cell radio on merely to use GPS, the battery won't last a full day's hike. It is ridiculous that we can't (yet) use GPS in Airplane Mode. I have been using ViewRanger offline navigation app for years. I download to the phone before I leave home all of the topo maps that I need for a hike, so I have no need for data when I'm hiking.
Did anyone ever try editing the systems.db file in data/data/com.android.providers.settings/databases/ directory? I can't tell that the guy that wrote that post ever tried it himself.
EDIT: I found here documentation of these two settings.
AIRPLANE_MODE_RADIOS -- A comma separated list of radios that need to be disabled when airplane mode is on.
AIRPLANE_MODE_TOGGLEABLE_RADIOS -- A comma separated list of radios that should to be disabled when airplane mode is on, but can be manually reenabled by the user.
Click to expand...
Click to collapse
My XT912 is rooted and I have System set to read-write. I tried to use SQLite to edit the value of AIRPLANE_MODE_TOGGLEABLE_RADIOS in the System table of /data/data/com.android.providers.settings/databases/System.db to change it from "bluetooth,wifi,nfc" to "bluetooth,wifi,nfc,gps" but even though I have write permissions to the file, when I tried, I received this error:
Update Failed - Error Code 5. Database is locked.
Click to expand...
Click to collapse
I went searching for how to edit settings.db and found this thread and this other thread, but I don't fully understand the instructions.
Bottom Line: if this is truly a hardware problem, then editing this file won't fix the problem (but likely won't cause any harm either), but if this is merely a software problem, then this may finally give us GPS use while in Airplane Mode.

Categories

Resources