Slow GPS? - General Questions and Answers

Hi everyone,
I am using the Desire HD and since I got it the GPS has been really slow. I've finally found out the problem.......If I go to GPS.config the first line reads
NTP_SERVER=asia.pool.ntp.org
I'm not sure why my phone thinks its in asia but it does.
Anyway, is there any way I can change this without rooting the phone?
Thanks

clattewell said:
Hi everyone,
I am using the Desire HD and since I got it the GPS has been really slow. I've finally found out the problem.......If I go to GPS.config the first line reads
NTP_SERVER=asia.pool.ntp.org
I'm not sure why my phone thinks its in asia but it does.
Anyway, is there any way I can change this without rooting the phone?
Thanks
Click to expand...
Click to collapse
Copy the gps.conf to SD.
Modify the gps.conf to another NTP server. (You can search for the list of time servers on Google and find some. The NTP ones are good. )
Remount system as read/write and replace the original gps.conf with the edited one.
Alternatively, use fasterfix from the market to modify the time server.
Nonetheless, different time servers wouldn't make that much of a huge difference(max one minute or so.) regardless of the region you chose.

Try using GPS fix!

lorenbo said:
Try using GPS fix!
Click to expand...
Click to collapse
Link: http://forum.xda-developers.com/showthread.php?t=953630
(Hard to find)

Related

[FIX] GPS fix for devices WITHOUT HiddenMenu

After a lot of fiddling, I've found a fairly easy way of fixing the GPS on this device. gps.conf has two lines of code which make a lock nearly impossible. Anyways, here's the fix. Use root explorer to navigate to /etc and find "gps.conf". Mount as r/w, and long press gps.conf. Select "Open in text editor". Scroll down to
# For SUPL SUPPORT, set the following SUPL_HOST=lbs.geo.t-mobile.com SUPL_PORT=7275
Change
lbs.geo.t-mobile.com
to
supl.google.com
and change
SUPL_PORT=7275
to
SUPL_PORT=7276
Hit the back button, this will save the changes and create a backup of gps.conf which will be named gps.conf.bak . Restart the phone, and use the free GPS TEST app from the market to test the gps. You SHOULD be getting a lock within 5-10 seconds.
Enjoy your fixed gps!
didn't work for me
Worked! instant lock thank you thank you!
Didn't work for me... I'm on the latest CM7 nightly. I'll give it a try on the stock ROM.
NightH4wk12 said:
didn't work for me
Click to expand...
Click to collapse
Please, give some specifics. What rom are you using?
FatalityBoyZahy said:
Didn't work for me... I'm on the latest CM7 nightly. I'll give it a try on the stock ROM.
Click to expand...
Click to collapse
Hmm, well, stock rom has hiddenmenu, which is a different fix, http://forum.xda-developers.com/showthread.php?t=1079304 I believe.
Ankisaurus said:
Please, give some specifics. What rom are you using?
Click to expand...
Click to collapse
Im on Miui 1.8.5 (now im on 1.8.12) didn't work for me.
however i found this http://forum.xda-developers.com/showthread.php?t=1085354
and it worked perfectly
NightH4wk12 said:
Im on Miui 1.8.5 (now im on 1.8.12) didn't work for me.
however i found this http://forum.xda-developers.com/showthread.php?t=1085354
and it worked perfectly
Click to expand...
Click to collapse
Yeah, this was mostly geared towards Cyanogen, I didn't expect this to work with Miui, its totally different. I'm glad you fixed your issue though
using cm7 nightly (build#107) after editing settings to your specifications i get an error message when i attempt to save...and if i save it anyway it defaults back to original settings
crazythumbs23 said:
using cm7 nightly (build#107) after editing settings to your specifications i get an error message when i attempt to save...and if i save it anyway it defaults back to original settings
Click to expand...
Click to collapse
Which error messsage?
I only tried once but this seemed to work for me. Thank you!
Running CM7 Nightly July 25.
knickfan5745 said:
I only tried once but this seemed to work for me. Thank you!
Running CM7 Nightly July 25.
Click to expand...
Click to collapse
No Problem, but I suggest you update to latest nightlies (they're much better), and then redo this fix.
Ankisaurus said:
No Problem, but I suggest you update to latest nightlies (they're much better), and then redo this fix.
Click to expand...
Click to collapse
I would but whenever I install a nightly over another, there are always little problems and the battery life seems worse. (Yes, I did do a fix permissions.) So I have to do a full wipe whenever I install which is a bit of a PITA. (Apps, settings, themes, layout, etc).
Anyone have any suggestions if this doesn't work? I run CM7 RC1 and have done this fix but still rarely get a fix and when it does work it takes 15 minutes. I also had the problem on stock. It doesn't seem like hardware though because using GPS Status, I can see that I get a lock on 6 satellites or more, but it just won't lock on a location. It should after at least 4, so there seems to be an underlying software issue that carried over from stock to CM.
YUP!
Ankisaurus said:
After a lot of fiddling, I've found a fairly easy way of fixing the GPS on this device. gps.conf has two lines of code which make a lock nearly impossible. Anyways, here's the fix. Use root explorer to navigate to /etc and find "gps.conf". Mount as r/w, and long press gps.conf. Select "Open in text editor". Scroll down to
# For SUPL SUPPORT, set the following SUPL_HOST=lbs.geo.t-mobile.com SUPL_PORT=7275
Change
lbs.geo.t-mobile.com
to
supl.google.com
and change
SUPL_PORT=7275
to
SUPL_PORT=7276
Hit the back button, this will save the changes and create a backup of gps.conf which will be named gps.conf.bak . Restart the phone, and use the free GPS TEST app from the market to test the gps. You SHOULD be getting a lock within 5-10 seconds.
Enjoy your fixed gps!
Click to expand...
Click to collapse
I was about to post almost exactly the same thing. The only difference is I stuck the same port 7275, but changed over to the supl.google.com server. I think 7276 is not encrypted.
In the past I was not able to get a GPS sync from my balcony, but with the Google SUPL server, I got a sync in about 30s.
I'm in Canada and it makes sense. When I was down in the US, my sync was a lot faster off the T-mobile servers, but I think Google servers covers worldwide.
smoothmoose said:
I was about to post almost exactly the same thing. The only difference is I stuck the same port 7275, but changed over to the supl.google.com server. I think 7276 is not encrypted.
In the past I was not able to get a GPS sync from my balcony, but with the Google SUPL server, I got a sync in about 30s.
I'm in Canada and it makes sense. When I was down in the US, my sync was a lot faster off the T-mobile servers, but I think Google servers covers worldwide.
Click to expand...
Click to collapse
That port didn't work for some reason. I'm also in Canada. I assume you have a de-branded "o2x" from Wind Mobile? Yeah, google's servers cover quite a bit more.
Yup using the wind debranded g2x.
Sent from my LG-P999 using XDA App
Using cm7 nightly 8/23
1 sat in 20s
4sats in 2 minutes but no GPS lock
Live in Cleveland
Sent from my LG-P999 using XDA App
tylerwatt12 said:
Using cm7 nightly 8/23
1 sat in 20s
4sats in 2 minutes but no GPS lock
Live in Cleveland
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Try to get a lock with maps? How many signal bars?
Wow, thanks for that m8
Sent from my GT-I9100 using XDA App

[TWEAK][GPS]Get your GPS configured properly

I've seen that some of you have problems with configuring your GPS so I think it's about time to give a hand.
The problem is that custom ROM's, especially non-sense one's have the wrong NTP Server set.
Here are some steps in order to get your gps accurately:
1. Go to http://www.pool.ntp.org/en/ and search for active servers in your area
2. Get a file manager that allows you to change system files
3. Go to /system/etc/gps.conf
4. Edit gps.conf and change NTP server to the one you've find in first step.
5. Save the changes, then reboot
6. Get from Market GPS Status & Toolbox
7. Open the app, click on Tools->Manage A-GPS-> Reset
8. Then click again on Tools->Manage A-GPS->Download
9. Enjoy your faster gps now.
For those that the fixes above do not work, head over to the HD2 area http://forum.xda-developers.com/showthread.php?t=953630 and get your flashable zip from there. They are splitted into regions are areas.
Thanx a lot!
Works fine!
Excelent !
Sent from my HTC Desire S using xda premium
Worked a treat. Thanks
Wow, works great, thanks!!
Any particular file manager you'd recommend?
det66 said:
Any particular file manager you'd recommend?
Click to expand...
Click to collapse
Root explorer
Sent from my Nexus S 4G via XDA Premium
tailsthecat3 said:
Root explorer
Sent from my Nexus S 4G via XDA Premium
Click to expand...
Click to collapse
Nice one ..cheers
det66 said:
Nice one ..cheers
Click to expand...
Click to collapse
Sure thing.
Sent from my Nexus S 4G via XDA Premium
WOW! This is the first time I got a GPS fix in a building close to a window!!! The same for the car. I had already troubles being in my car! THANKS A TON! You re a live safer!
i have had problems with my GPS
& would really like to try this but i would like to know if i should choose India or asia server? asia region seems to have more active servers,can you suggest the best one for me? as i dont want my gps to stop working when im lost
thank you
Thank you for this info
kartkk said:
i have had problems with my GPS
& would really like to try this but i would like to know if i should choose India or asia server? asia region seems to have more active servers,can you suggest the best one for me? as i dont want my gps to stop working when im lost
thank you
Click to expand...
Click to collapse
Backup your current configuration and try both. See which one fits best.
Sent from my HTC Desire S using xda premium
In the MIUI rom you can go to Settings, My Location, GPS Configuration and change the NTP server there...
Yep, but this apply only to MIUI ROM unfortunately. That's why I posted a universal method.
Thanks Bioan for the tip btw there is an app in the market called fasterfix which allows changing the ntp server from the available pool, you just have to choose the one that suits you best
Great, it's all about sharing, that's what makes this the community.
I've added a link to this thread into the main INDEX thread (hope that you don't object?), it's at the bottom under USEFUL LINKS.
You've got one apk on the market, for make this:
With fasterfix.apk, if you're root you can do that automatically.
You choose your area and confim.
You could change your area's choice when you travel on another country or area.
ems328i said:
In the MIUI rom you can go to Settings, My Location, GPS Configuration and change the NTP server there...
Click to expand...
Click to collapse
I just noticed this today.
It defaults at North America. So i changed it to my.pool.ntp.org.
Am I the only one with a lots of problem with my GPS ?
The first fix takes like one minute. After that, I don't use my phone for a couple of hours, and then launch GPS Test again. Like 99% of the time I cannot have any fix. It seems that the GPS does not work properly : GPS Test shows me like 4/5 satellites, then suddenly none, then lile 1, then 2, then 4... Then none again, like if the GPS just restart or something. I need to switch my GPS off, then put it on, then reset AGPS stats etcetc, and sometimes it works again.
I've tried to set the NTP server to a French one, but it does not seems to change anything. Also, I've tried 3 differents radios.
Any help ?

[Q] Samsung Infuse GPS research.

Hey guys!
So from my experience the GPS is sucking on this device. I have tried all the fixes I could find in this forum and all over the internet! What I am going to try to do is to find out if there is a software fix for this problem.
At the minute I have a knowledge problem I would like some devs to see this post and if they know the answer to any questions I would LOVE help
My first problem has been the "standard" settings for the GPS.conf file. I have changed mine so much and basically a number of questions have hit me.
1) What are they when the phone comes fresh from the factory? - this is because even the "stock" roms seem to have modified files in the system folder.
2) Some of the mods change the agps server to supl.google.com. I noticed that when the phone is newly flashed the angry GPS server is set to www.spirent-...... (I can't remember the exact server). The newly flashed server comes with an ATT certificate, is there one for supl.google.com?
3) What the hell is "agpsd" file located in the system folder. I can't find anything about this on the web.
Thank you for any help you give
Carl.
Just to add ANY information people have for this effort will be gratefully recieved ... any observations of noobies like me regarding file permissions, files that they notice all that good jazz ... all that stuff. It is easier to fix something when more people help because often one person may make a random observation and another will think ... well that can be fixed, thanks again
My GPS is awesome...sounds like u have a software issue...I lock in less than 10 sec without fail
Sent from my SAMSUNG-SGH-I997 using xda premium
dman3285 said:
My GPS is awesome...sounds like u have a software issue...I lock in less than 10 sec without fail
Sent from my SAMSUNG-SGH-I997 using xda premium
Click to expand...
Click to collapse
Thanks man, but there are a lot of people having this issue. When I started having this issue I did a few searches and I was really surprised about the volume of people having issues!
I'll just add to this by saying I was locking in a short time until I flashed some of the new ports last week. Then I returned to stock and the problem persisted, I have done hard reset etc and it still hasn't fixed anything. I was going to open her up but I chickened out lol...
Would you mind uploading your secgps.conf file and your gps.conf file please? if you have time
Thanks man.

[APP]Weather locations manager for Sense (add custom cities)

Hi all,
As a practice project for Android developing I created an app that enables you to add custom locations to the sense weather application. I think some of you noticed that the weather app supports adding only a few cities, mostly the larger cities of a particular state/province. This is because the htc app makes use of a static database that has only around 3600 locations world-wide. This app can add almost any city to that database.
This could be done already, but the method was quite time-consuming and error-prone.
With this app, you just have to search for your city, optionally edit the pre-filled fields for name, state and country and you can add it to the htc weather database. The correct weather code is obtained from the web, for both US and non-US cities. The correct timezone is selected from the database, sometimes you have a choice there as well. Also, the weather application of htc is restarted after adding, so the change is immediately visible.
The app needs root access and an internet connection to work, and you should have htc sense with the weather app installed. I tested it only on Sensation (with sense 3.6) but it should work for sense 2.x up on any htc device.
Enjoy!
-Gödel
Update (19-4-13): New version. It should work on most ROMs now, it doesn't rely on the command line that much.
Update (31-7-12): New version. It checks the hostfile now, and removes the accuweather host from it if necessary. Works great with AdFree and AdAway. Also, to better work with the clock application in sense 4, the geographic position of a city is added to the database. It will search for the coordinates automatically, but you can also manually add them. Enjoy!
Update (16-7-12): Problem occurs on devices having an addblocker that changes the host file (/etc/hosts) installed, like AdAway or AdFree. They add the line "127.0.0.1 netweather.accuweather.com" to /etc/hosts, removing that line or changing back to stock host file solves the issue. See this post for more details.
Update: There seems to be a problem with the server the app connects to, it is not accessible from some (many?) countries or phones. I haven't found a solution yet.
Please try this link with your internet connection (so wifi or mobile), if you get a xml file back, this app should work. If it doesn't, but you can access the site above, please let me know.
Please let me know if it works as well, as well as your country, so I can try to figure out what's going on.
Update (7-7-12): You now have the possibility to manually add a city through its location code.
md5sum: 3782889cd0d9d6345457b447810d6bf6
Some screenshots:
Thanks!
Dont work
Installed on my Sensation running PkMn 4.5 ROM.
SuperSU never registrate the app, so i set SuperSU promt to "Grant".
Searched for my city here in Denmark "Klarup" but it didn't find anything. I then searched for "Copenhagen" but it didn't finde that either.
Turned WiFi on but the app dont finde any city at all :-(
I install the app but it cant find any city.
I have root access and I also make a restart. Is something more that I have to do?
I can find and add Klarup, Denmark with the app. You got to have a working internet connection to search for cities.
To both jkolner and l_themis, does it say "no location found" or does it say nothing at all?
Gödel said:
I can find and add Klarup, Denmark with the app. You got to have a working internet connection to search for cities.
To both jkolner and l_themis, does it say "no location found" or does it say nothing at all?
Click to expand...
Click to collapse
It says "No location found".
I just restored to OrDroid ROM instead, but can't find any city at all when i install the app :-(
jkolner said:
It says "No location found".
I just restored to OrDroid ROM instead, but can't find any city at all when i install the app :-(
Click to expand...
Click to collapse
Same for me, "No location found" with open wifi
It seems like it just does not make the connection it should.
When I have time, I'll add more connection error handling to distinguish between not finding a city and a connection problem.
That doesn't solve the problem though, its weird. Can you verify that under app-info in your system settings, this app has full internet access?
It has full internet access and Wifi is connected.
Please try the new version, included in the OP. I simplified the search part a bit using a different http request, maybe it works in this way.
I will try to make some more improvements sometime soon, this was what I could do right now.
Didn't work with the new one either.
It seems like an encoding issue, I forgot to encode the location properly in the new version and got the errors myself. I updated the application once again.
However, this will probably fix nothing for you guys, I will look at it in more detail sometime soon. Sorry for the inconvenience.
No problem my friend, take your time. For me is something very useful so it will be perfect if it finally works!
This looks good. Is there anyway to get the sense weather lock screen to change from current to a different city?
Tried new version can not find any cities.even London, bristol, paris
Sent from my HTC Sensation XE with Beats Audio using xda premium
Okay, this is getting embarrassing.
I updated the apk again, please try it and report the error you get.
If it works, please let me know as well .
Gödel said:
Okay, this is getting embarrassing.
I updated the apk again, please try it and report the error you get.
If it works, please let me know as well .
Click to expand...
Click to collapse
Still not working mate. Now it shows me connection error and ask me do you have internet connection? I don't think it will work.
Sent from my HTC Sensation XE with Beats Audio using xda premium
It has worked perfectly here though, up to now (even tried it on a desire HD yesterday). Is this site accessable from your place?
I also get network error (israel)
I cant access the site you gave above
Well, so much for a solution then. Apparently the site above is not accessable for some countries. The search for cities uses it.
So at least it works in the Netherlands, and I think it will work in the US as well.
I still find it rather strange, it must be some legal issue.
In any case, I could not foresee this problem.
A solution would be to setup a forward portal, but that's a little much. I'll try to look for some trick to access that site.

GPS issues on the TF300T? --- aGPS Patch now released, discussion over

DISCUSSION has ended. Post if you want, but SOLUTION is NOW available:
http://forum.xda-developers.com/showthread.php?t=1904048
Yes, I brought a customized aGPS Patch for this device just like I've done for 30+ devices so far.
Original post:
Can anyone tell me how the GPS performs on this device?
If you all think it isn't great, I can bring my aGPS Patch to this device.
I will require the following files:
/etc/gps.conf
/etc/gps/ (all contents)
I resolved the TF101 and the Prime's problems successfully. I bet I can resolve this one as well.
Well google maps only works with wifi...
Same here, when i was on vacation my digital compas kept spinning around and google maps couldn't even get a fix.
Neither did GPSFix..
After i did some googling i found a couple of apps. All didnt work out and in once it worked.. no clue what did it, but its still not great, when there is no open air you'll never have a gps fix and if you have open air you need a lot of luck..
Now i have a iPhone 5 and it sucks even more.. lol jk
Wickedd said:
Same here, when i was on vacation my digital compas kept spinning around and google maps couldn't even get a fix.
Neither did GPSFix..
After i did some googling i found a couple of apps. All didnt work out and in once it worked.. no clue what did it, but its still not great, when there is no open air you'll never have a gps fix and if you have open air you need a lot of luck..
Now i have a iPhone 5 and it sucks even more.. lol jk
Click to expand...
Click to collapse
If you are on JB try the worldwide fix from Hydro JB Rom. Even indoor Ißll get a fix in less than 20 sec.
will get you the config files later. I am not at home.
mikaole said:
If you are on JB try the worldwide fix from Hydro JB Rom. Even indoor Ißll get a fix in less than 20 sec.
will get you the config files later. I am not at home.
Click to expand...
Click to collapse
I would like to see this as well since I was the first to use the name worldwide for a gps patch almost 2 years ago.
I find that my work is ripped regularly.
Sent from my Galaxy Nexus using xda app-developers app
crypted said:
I would like to see this as well since I was the first to use the name worldwide for a gps patch almost 2 years ago.
I find that my work is ripped regularly.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Just take a look at it. After this GPS is really good, but I never had any Problems even on StockRom.
mikaole said:
Just take a look at it. After this GPS is really good, but I never had any Problems even on StockRom.
Click to expand...
Click to collapse
How "cool" is it to download something, open it up, and see no real difference between it and my 1.x branch patch. And, I get no thanks.
I wonder how my 3.x patch would do here.
Just give it to me and I´ll tell you how it is
Which one of yours should I flash?
Just flashing
Download the Google Specific CWM Flashable build
Will test it out a bit
mikaole said:
Just give it to me and I´ll tell you how it is
Which one of yours should I flash?
Click to expand...
Click to collapse
I would suggest the Google No-SSL 3.1: http://derekgordon.com/gps-files/agps.patch.google.build.nossl.v3.1.zip.
However, for the other Prime series devices I further modified data to work properly. There should be an XML file in /etc/gps/ which would require some tweaking for optimal performance if the 300 works like the 100, 200, and 700 series Transformers.
crypted said:
I would suggest the Google No-SSL 3.1: http://derekgordon.com/gps-files/agps.patch.google.build.nossl.v3.1.zip.
However, for the other Prime series devices I further modified data to work properly. There should be an XML file in /etc/gps/ which would require some tweaking for optimal performance if the 300 works like the 100, 200, and 700 series Transformers.
Click to expand...
Click to collapse
Just tell me what changes or put up the file and I put it there with root explorer.
Just installing my Navi to test. Needs a bit, cause I just flashed a new Rom
This one wont install through TWRP. Will put up the files with root explorer.
mikaole said:
Just tell me what changes or put up the file and I put it there with root explorer.
Just installing my Navi to test. Needs a bit, cause I just flashed a new Rom
Click to expand...
Click to collapse
Well, could you download the ZIP and just extract the \system\etc\gps.conf file to your /system/etc path?
My 3.x branch has a large gps.conf that I don't want to paste. I don't want to have to try and trim it down just to drop here for a quick paste.
The reason being is that I actually took the time to describe for people what variables or variable sets actually do. This, too, was ripped by others who claimed to provide detailed instructions on the GPS configuration and how to tweak it.
I swear, XDA has become a ripping and no credits **** realm. But, I still like XDA for the most part....
so i got the conf file to the right path.
Rebootet and no GPS fix at all
So what changes I have to make in the xml file. Already openened it in Editor
mikaole said:
so i got the conf file to the right path.
Rebootet and no GPS fix at all
Click to expand...
Click to collapse
That doesn't make any sense at all. If you're using Hydro's, which is exactly 1.x, then there shouldn't be an issue.
You have Wifi connected I assume. Further, I assume permissions are fine.
I think two Notes apply to you out of my extensive catalog of FAQ.
First, clear Cache and Dalvik Cache. Conflicts can occur when switching to this branch at first.
Second, "Location is way off? Like, not near you at all? This means your GPS is not actually being used. Try the following to resolve it: Goto Settings -> Locations and disable ALL options. Reboot into recovery. Clear Cache and Dalvik Cache. Reboot normally. Go back to Settings -> Locations and only enable GPS. Reboot once more and try your GPS again."
I'd like to get ahold of the XML file in /etc/gps/ if you want to work with me to get a fully customized patch made rather than the quick markup of just the .conf.
Which permissions does it use to have?
Rebooting now needs a bit cause of wiping cash 160 apps to optimise
GPS is there in a bit
Just send me your mail address in PM and l`ll send you the file.
Mail is on the way
So that everyone has a chance to test this if desired, do a Nandroid backup (DUH!) and flash: http://derekgordon.com/gps-files/beta/agps.patch.asus.transformer.300.test1.zip
The above operates the same was as the TF100 and TF200 patches I made operate. You'll have a new conf and XML file.
I'll drop this thread and open a DEV forum thread upon some more confirmations.
crypted said:
So that everyone has a chance to test this if desired, do a Nandroid backup (DUH!) and flash: http://derekgordon.com/gps-files/beta/agps.patch.asus.transformer.300.test1.zip
The above operates the same was as the TF100 and TF200 patches I made operate. You'll have a new conf and XML file.
I'll drop this thread and open a DEV forum thread upon some more confirmations.
Click to expand...
Click to collapse
Tested this, gps locked in a few seconds. Seems to work exceptionally well. Thanks!
Sent from my ASUS Transformer Pad TF300T using xda premium
mykegger said:
Tested this, gps locked in a few seconds. Seems to work exceptionally well. Thanks!
Sent from my ASUS Transformer Pad TF300T using xda premium
Click to expand...
Click to collapse
Great. Post on the DEV thread of your success. Just got it up.
@All - refer to http://forum.xda-developers.com/showthread.php?p=31980802#post31980802

Categories

Resources