yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] laughingT:
Leave the XTRA servers as is in original conf. I believe the are related to AGPS data, not ntp.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] mikel.canovas:
OP Updated
[Captivate Android Development] Wakamatsu:
This one doesn't appear to have been updated with the 4 NTP servers.
[Captivate Android Development] mikel.canovas:
Sorry, you are right. Put the wrong URL. Fixed now
[Captivate Android Development] laughingT:
Mikel,

I don't know the ntp server limit, but xenova has used 8 ntp server listings on several phones, including SGSII.

Here's the thread

http://xdaforums.com/showthread.php?p=17081413

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] patrick8996:
This Works

EVERY TIME

, I Freaking LOVE IT, I flash it With Every Rom I flash, Definitely going to recommend this to EVERYONE I know That Flashes Roms.
[Captivate Android Development] mikel.canovas:
From reading that post, it seems like that is possible to do for the US. I will add a 8ntp server eventually. For now you can add them in yourself and please post to see if it makes any difference
[Captivate Android Development] TRusselo:
in some stock roms there is a second gps.conf in system/vendor/etc/ folder. I believe it gets installed with CSC files. If anyone is on a pure stock rom and this gps fix does not work, this may be the reason why. delete the file and reboot.

most custom roms built from stocks dont use the CSC files to build, so there is no issue running without any duplicate file in the vendor folder. however some custom roms and the new ICS roms use the vendor folder for other things, so dont delete the vendor folder as a whole.
[Captivate Android Development] laughingT:
Thanks.

I'm doing very well with 4 us servers and otherwise busy, so maybe someone else can run that experiment with eight.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] canyoudigit489:
Tested with slim ics 2.9 - kp1 modem. before this i had slow locks and poor tracking. just flashed with cwm and went outside to get a lock... accurate lock within a minute. since then about 4+ satellites locking in seconds. i'll try to update the tracking in the car later.
[Captivate Android Development] mikel.canovas:
OP updated with 8 NTP servers. Please note this is only for those in the US. Those outside of the us will have to edit the GPS.conf as stated in OP
[Captivate Android Development] voldomart13:
Is it possible to add even more than 8 or would that just be overkill?
[Captivate Android Development] laughingT:
I'm finding 4 is more than enough. In about six hours of driving today, highway, city, flatlands, mountain canyons, I lost the fix twice for about 10 seconds maybe. google had the circle smaller than the arrow. Gps status usually 5 to 10 meters.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] laughingT:
4 us servers, attached image.

The NTP servers only help with the speed of getting an initial fix. After the initial fix, the GPS has its clock synchronized from the sats directly. If it loses a fix after the initial one, I am not sure it goes back to using the ntp server unless you reset the gps itself either with GPS status tool or by rebooting GPS.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] ew:
I flashed this and began to have some very strange problems, which I was able to solve. I am posting this - it may be useful to someone else.

The problem. After my flash, the navigation app would consistently freeze when beginning to navigate (after selecting the address). I tried reflashing my rom, uninstalling and reinstalling google maps, fixing permissions, erasing both caches and nothing seemed to help.

Finally, I used the GPS Status app (available for free in the Play store), Under Tools -> Manage A-GPS state -> Reset, then Download. Once I did that my freezing went away.

In fact, I think it is probably worth doing that immediately following the gps fix flash.

If that helps you, I would appreciate a thanks.
[Captivate Android Development] laughingT:
Good tip.

Yes, GPS Status has the command to clear the cache on the BCM4751 chip, when you select reset button under the tools, manage agps menu. It also lets you update the agps data.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] laughingT:
There are also a couple of secgps.conf files on the stock GB rom, as well as a hardware xml file. So some of these could also cause a problem, I suspect.

Locations on my cappy of secgps.conf are:

data/data/com.android.angryGps

data/gps

The hardware xml file is

system/etc/gps_ExtLNA.xml

(yours may be different name if you have an earlier rev of the BCM4751 chip)

I have no idea which takes presidence when the files use different servers or settings. Don't know the order of loading and whether the xml file sets variables in the hardware that cannot be changed by the conf files.

Example of difference: using spirent versus google for SUPL data.

Edit/update:

While running gps status, I checked OS Monitor for network connections and it was using SUPL www.spirent-lcs.com, even though etc/gps.conf sets SUPL to supl.google.com.

Then I changed the SUPL and SUPL port settings in both instances of secgps.conf to match the settings in gps.conf for SUPL. Rebooted. Repeated experiment. GPS now using supl.google.com.

So, one of the secgps.conf files, probably the one for AngryGPS, overrode the gps.conf setting.

What is AngryGPS and what does it do? It is Samsung's location based service test and configuration tool, and it apparently loads after gps.conf?

You can either freeze it in TiBU, or access its settings to tweak it. The settings in GB are accessed by dialing

*#*#3214789650#*#*

from your phone.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] eddie85u:
Hi, ever since I updated this fix (with mutiple NTP servers) waze wont launch, as soon as I open it I get the message "Unfortunately, Waze has stopped. Report/ok" Any idea on how to solve it?

BTW with gps status everything is still ok, i get a few more satellites but sometimes even when I see about 5 sats it wont get a fix, maybe my phones antena is a crappy one
[Captivate Android Development] mikel.canovas:
The fix should have nothing to do with any user apps. Try uninstalling and reinstalling the app
[Captivate Android Development] ew:
See my earlier post.

See if this helps (it is quick enough to try)
[Captivate Android Development] theyurtingyeti:
I've seen a couple posts that suggest editing the file for better servers for GPS connection (assuming there are any right around you).

Where would I find out what those are? I'm in Southern Maine and have some spotty GPS reception at times. I want to make sure to maximize what I'm able to do :)

I currently have the 4NTP version installed, but I have the 8NTP on my device to flash.

Thanks!
[Captivate Android Development] laughingT:
Couple of sources, use web browser

tf.nist.gov/tf-cgi/servers.cgi

support.ntp.org/bin/view/Main/WebHome

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] mikel.canovas:
The 8ntp one should work for you as that has us and north America servers which should work great for everyone in the us. However I'm not sure if there are any even more precise. But as someone posted above me with a link, maybe you'll find something
[Captivate Android Development] theyurtingyeti:
Thanks guys! I'll flash the 8NTP version and check out the sites too :)
[Captivate Android Development] eddie85u:
I tried that but still no luck, but I believe the problem is not related to the gps fix, it has something to do with a fix for viber I was applying on the same day I was trying to fix my gps too, I did this:

I found that fix here:

http://xdaforums.com/showthread.php?t=1557988

But even reverting those changes won't fix waze, all other apps like foursquare, GPS Status, GPS Test, work "fine", anyway i'm going to flash a new rom anyway :(

And by the way, even with hellstorms fix and the 5 ntp servers for my area, fixes take way too long, they can be lost very quickly, sometimes I see a lot of satellites but the GPS won't get a fix until I hold the phone up high with the back facing up, maybe it's just my device...
[Captivate Android Development] storm_rider_1:
My wife's phone is the same way, it used to have one or two sat. in view but never any in use, after flashing this it will now get 5 to 7 in view, then will have them in use for a second or two and then none in use? My phone right next to it will have 8 in view and all 8 in use. Any fixes for that? Or is it just bad gps unit in phone?
[Captivate Android Development] Orion.20:
Hey guys is this configuration ok because i cant get a fix

NTP_SERVER=gr.pool.ntp.org

NTP_SERVER=2.gr.pool.ntp.org

NTP_SERVER=0.europe.pool.ntp.org

NTP_SERVER=1.europe.pool.ntp.org

NTP_SERVER=2.europe.pool.ntp.org

NTP_SERVER=3.europe.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info

# 4 - Debug, 5 - Verbose

DEBUG_LEVEL =0

# Intermediate position report, 1=enable, 0=disable

INTERMEDIATE_POS=0

# Accuracy threshold for intermediate positions

# less accurate positions are ignored, 0 for passing all positions

ACCURACY_THRES=0

# Report supl ref location as position, 1=enable, 0=disable

REPORT_POSITION_USE_SUPL_REFLOC=1

# Wiper (wifi positioning), 1=enable, 0=disable

ENABLE_WIPER=1

################################

##### AGPS server settings #####

################################

# FOR SUPL SUPPORT, set the following

SUPL_HOST=supl.google.com

SUPL_PORT=7276

SUPL_NO_SECURE_PORT=3425

SUPL_SECURE_PORT=7275

SUPL_TLS_HOST=FQDN

SUPL_TLS_CERT=/etc/SuplRootCert

# FOR C2K PDE SUPPORT, set the following

C2K_HOST=c2k.pde.com

C2K_PORT=1234

CURRENT_CARRIER=common

DEFAULT_AGPS_ENABLE=TRUE

DEFAULT_SSL_ENABLE=FALSE

# TRUE for "User Plane", FALSE for "Control Plane"

DEFAULT_USER_PLANE=TRUE
[Captivate Android Development] mikel.canovas:
Seeing as how two different devices with the same fixes are getting different results in the same spot, I'm guessing it's hardware. You can try some hardware fixes if you're interested, I personally have never done any so I can't comment on them
[Captivate Android Development] mikel.canovas:
Orion -

it should read:

NTP_SERVER=0.gr.pool.ntp.org

NTP_SERVER=1.gr.pool.ntp.org

NTP_SERVER=2.gr.pool.ntp.org

NTP_SERVER=3.gr.pool.ntp.org

NTP_SERVER=0.europe.pool.ntp.org

NTP_SERVER=1.europe.pool.ntp.org

NTP_SERVER=2.europe.pool.ntp.org

NTP_SERVER=3.europe.pool.ntp.org

The rest is good.
[Captivate Android Development] sabbathbh:
Same here... :(

Still looking for a solution.
[Captivate Android Development] laughingT:
To sabbathbh and to Orion 20,

-In my experience, gps gets an initial fix using ntp server time estimate, then resyncs to true gps clock by using the sat signals. It is ..'normal' for it to drop the initial rough fix, then take 5 to 30 secs to re-fix. Within 1 to 2 minutes of start up, it should get very stable, staying less than 15 meter error, occasionally higher when in canyons, tunnels, under bridges, etc.

It looks like Orion20 enabled the c2 support. It is commented out with # signs in the original h3llstorm fix, I think. It is commented out in my copy. Are you running some other fix or gps tweak?

I froze the Angrygps app (or LBS test in some roms) because it was overriding the h3llstorm gps.conf file.

I also edited the data/gps/secgps.conf file to make it consistent with h3llstorm setttings. Specific changes I made to secgps.conf:

Enabled AGPS.

Set SUPL server and SUPL port to match h3llstorm values.

Here is a sequence of three gps status screen shots, with initial fix, resyncing 'loss' of fix, then refix. Elapsed time is less than a minute.

This is outside, on a cloydy, rainy night, with 3 story buildings blocking much of the sky.

And heres is an additional one, about five minutes later, reflecting stable gps state.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] powerserge1:
Ok, I have done some testing with my gps.conf file and these are the settings that I use. These settings will be optimal for Canada and the US. I found the least optimal results using the "north-america" servers listed first in the gps.conf file. I was only able to lock onto 3-4 satellites with an accuracy of 25-35 meters. My optimal settings for Canada are as follows:

NTP_SERVER=0.ca.pool.ntp.org

NTP_SERVER=1.ca.pool.ntp.org

NTP_SERVER=2.ca.pool.ntp.org

NTP_SERVER=0.us.pool.ntp.org

NTP_SERVER=1.us.pool.ntp.org

NTP_SERVER=2.us.pool.ntp.org

NTP_SERVER=0.north-america.pool.ntp.org

NTP_SERVER=1.north-america.pool.ntp.org

Notice the north america servers are at the bottom as backup servers, these should be used last since I found these to be the least optimal (at least for my location)...these are my best settings for me. I am able to lock onto 10 out of 12 satellites consistently and I even locked onto all 12 satellites yesterday while in the car. Accuracy 5-10 meters.

For US your gps.conf should look like this, especially if you travel to Canada or are in the upper states:

NTP_SERVER=0.us.pool.ntp.org

NTP_SERVER=1.us.pool.ntp.org

NTP_SERVER=2.us.pool.ntp.org

NTP_SERVER=0.ca.pool.ntp.org

NTP_SERVER=1.ca.pool.ntp.org

NTP_SERVER=2.ca.pool.ntp.org

NTP_SERVER=0.north-america.pool.ntp.org

NTP_SERVER=1.north-america.pool.ntp.org

if you do not travel far north I would try my gps.conf file as follows:

NTP_SERVER=0.us.pool.ntp.org

NTP_SERVER=1.us.pool.ntp.org

NTP_SERVER=2.us.pool.ntp.org

NTP_SERVER=3.us.pool.ntp.org

NTP_SERVER=0.north-america.pool.ntp.org

NTP_SERVER=1.north-america.pool.ntp.org

NTP_SERVER=2.north-america.pool.ntp.org

NTP_SERVER=3.north-america.pool.ntp.org

try these settings depending on your location and report back. Those using "north-america" servers as primary servers especially should try these settings. For me the "north-america" servers were hard to lock, as reported with 3-4 satellites in view, accuracy was poor. Those with lock problems, this could be the issue.
[Captivate Android Development] mikel.canovas:
Thanks for the info. I had no idea the GPS conf prioritized by order. I will definitely change that soon
[Captivate Android Development] powerserge1:
I am not sure if the order is prioritized but I can confirm (for me) that the north-america servers are not optimal, so they went at the bottom of the list.
[Captivate Android Development] theyurtingyeti:
Thanks for the info... i noticed that the conf file has 9 NTP lines, the first looks like this: us.pool.ntp.org. The rest look similar to what you posted (although diff order).

I'm assuming the bottom 8 NTP sites are the ones we should be altering and leaving the top-most one alone?
[Captivate Android Development] powerserge1:
According to my research you want the prefix/number for each server. 0, 1 ,2 or 3. Do not leave it blank. Therefore you will have the 8 entries and not the 9th. Please report back with your results. Also refer to this one post for an explanation as to why this is the case:

http://xdaforums.com/showpost.php?p=24964498&postcount=514
[Captivate Android Development] theyurtingyeti:
Interesting... I haven't changed anything from the flash. Odd it comes with 9 lines. I'll make the first 8 match the servers I wish and leave the 9th line blank.

I'll def post any issues I have after doing that :)
[Captivate Android Development] Orion.20:
I think the weirdest thing is that my gps works just fine with any gingerbread rom i can get a lock within 5-15 sec with 5-30 meters accuracy! Now with Slim ics i hardly find any satellites but maybe this fix doesnt work for me because i dont have a captivate but the european version of the galaxy s ! Thanks anyways for the reply!
[Captivate Android Development] mikel.canovas:
It should definitely still work with the international galaxy s. Do you have GPS aids, faster fix, or any other GPS app that can modify the data? Have you checked the GPS.conf file to make sure you actually have the tweak? If so, have you changed the locale to your respective location?
[Captivate Android Development] jesus_c:
ru-euro NTP Servers gps.conf

NTP_SERVER=ru.pool.ntp.org

NTP_SERVER=0.ru.pool.ntp.org

NTP_SERVER=1.ru.pool.ntp.org

NTP_SERVER=2.ru.pool.ntp.org

NTP_SERVER=3.ru.pool.ntp.org

NTP_SERVER=0.europe.pool.ntp.org

NTP_SERVER=1.europe.pool.ntp.org

NTP_SERVER=2.europe.pool.ntp.org

NTP_SERVER=3.europe.pool.ntp.org

modified zip from OP
[Captivate Android Development] goob1284:
Ok, why does Google Maps say "My location cannot be determined", yet GPS Tester locks in like 2 seconds? WTF?
[Captivate Android Development] visionlogic:
On some phones GPS means "Guess Position Selectively". It's actually a game, for those times when one is bored with the likes of Angry Birds etc. You choose an app and see if it can guess your position. ;-)
[Captivate Android Development] theyurtingyeti:
GPS Fix not working?

Ok, I have my .conf file set up as follows:

NTP_SERVER=us.pool.ntp.org

NTP_SERVER=0.us.pool.ntp.org

NTP_SERVER=1.us.pool.ntp.org

NTP_SERVER=2.us.pool.ntp.org

NTP_SERVER=3.us.pool.ntp.org

NTP_SERVER=0.north-america.pool.ntp.org

NTP_SERVER=1.north-america.pool.ntp.org

NTP_SERVER=2.north-america.pool.ntp.org

NTP_SERVER=3.north-america.pool.ntp.org

If I'm on WiFi it seemed to lock like a champ, but if on ATT only, A-GPS sees one SAT and won't fix.

I followed the instructions here http://xdaforums.com/showthread.php?p=17081413 but it didn't seem to work.

Any ideas? I hope I just missed something simple :)

Thanks!
[Captivate Android Development] laughingT:
Orion20-

If you have a file, data/gps/secgps.conf on your slim rom, then take look at it.

Mine had agps disabled and the wrong suppleserver. I edited file to be consistent witb h3llstorm and fix is more stable snd consistent.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] NYSEAN1:
How do I apply this to ics SD from?
[Captivate Android Development] patrick8996:
Put it on your SD card and flash it in CWM recovery
[Captivate Android Development] RDI:
I put the 8NTP on the latest version of Nostalgia v6. The second boot (indoors) took 8 seconds to lock!

Sent from my Samsung Captivate running ICS 4.0.4 Nostalgia v6
[Captivate Android Development] tanujt:
I'm on Slim ICS 4.0.4.

It takes anywhere from 30 seconds to more than a minute to get a lock on the GPS status app, even after it finds more than 3 satellites very quickly. The holding time of each lock is only a few seconds.

Google Maps never even gets a lock. The GPS icon is an empty ring (the solid circle inside doesn't blink). See attached screenshot.

I ought to try H3llstorm's older fix (without the 8 NTP) to see if that works, but I can't seem to locate that zip anywhere.
[Captivate Android Development] BumRush:
What is generally considered an acceptable level of accuracy is in terms of feet?
[Captivate Android Development] tanujt:
I suppose it really depends on what you're trying to achieve with your GPS. If I was using Maps to just see where I am, or get transit options, a few meters (10/15m ~ 30/40ft) is enough. If I was using Nav on the other hand, I'd feel more comfortable with something like 5 m (~16ft).
[Captivate Android Development] OKAstro:
I'm using Slim's 4.0 and GPS is working great for me. I also use GPS Test app and the KG3 modem, which seems to be the best modem for me
[Captivate Android Development] mikel.canovas:
It's the link in the column that says "update 4/18"
[Captivate Android Development] tanujt:
That link seems to be dead, I tried it already.
[Captivate Android Development] KMan94:
Here is the original...
[Captivate Android Development] tanujt:
So did you do Hellstorm's 8NTP fix, or does the base Slim GPS works fine for you?
[Captivate Android Development] BumRush:
I understand that. I was just wondering whether a 5m lock would be unreasonable to expect considering, if i recall correctly, the hardware limitations.
[Captivate Android Development] tanujt:
Thanks a bunch. However, this also fails to get me a lock. Looks like I'm doomed with a broken phone.
[Captivate Android Development] laughingT:
have you tried resetting the data in the broadcom gps chip, then toggle disable/enable gps? cycling power doesn't reset it.

you can do that with the gps status app available at store. the free version will do it from the manage agps menu.

Sent via XDA from Captivate GB I897.UCKK4 rooted
[Captivate Android Development] niamul:
have tried all this

the gps icon doesn't blink. not with gmaps or gps status.

what is next?
[Captivate Android Development] tanujt:
I tried that as well. Reset the aGPS state, get a cold start. Even cleared the caches for Maps and GPS Status. It seems like the basic gps.conf file from Slim ICS 4.0.4 was better than H3llstorm's fix. /system/etc is a read-only filesystem, so I can't copy the backup I'd made. How do I get back to that?
[Captivate Android Development] RDI:
I am running Nostalgia v6, based on SlimICS with the 8 NTP Server GPS fix. I my bedroom (Tampa, Florida), I get 10/8 with 30 feet. I use GPS Test from the market.

Sent from my Samsung Captivate running ICS 4.0.4 Nostalgia v6
[Captivate Android Development] mikel.canovas:
Use an app such as root explorer to enable r/w then swap the files
[Captivate Android Development] mikel.canovas:
Or you could make a cwm script to use with your backed up one
[Captivate Android Development] skyxliner:
Anyone try this on jellybean yet?
[Captivate Android Development] Gore785:
Yup messes up my phone I get the android.process has stopped working and a lot of apps FC when trying to find a location
[Captivate Android Development] carlosgardel:
Yes I'm using the 8 ntp server fix in Unofficial CM10 JB 20120723 and works great.
[Captivate Android Development] mccmjoon76:
Thanks OP it works great on my ICS Samsung Note Custom ROM :D

GPS Lock in 3 sec ...!
[Captivate Android Development] askpcguy:
Will try on Miui ics which is ported from the Nexus S. Modem is kg3.
[Captivate Android Development] askpcguy:
Initial reaction was as expected a very long first time to fix. Following that it appeared to me that navigation tracking was more responsive. Previously I would notice on highway transitions the gps position would hang/freeze. With this mod however it appeared to keep position or quickly catch up.

Also the yelp app quickly re-acquires its location. Previously I had to reset gps data for yelp to update its location.
[Captivate Android Development] ffd173:
This worked absolutely perfect! !

I locked on to 8 sats in just seconds. Position error of only 50 feet or so. Never had that much accuracy before.

Thank you, thank you, thank you! ! !
[Captivate Android Development] embedded123:
Is this going to work on Jelly Beans rom?
[Captivate Android Development] melvinaury:
Yes it works excellent.
[Captivate Android Development] 3men2:
It does... Worked perfectly for me.

I tried it with Helly Bean and now using LANIGHTV2 JB
[Captivate Android Development] embedded123:
Just flashed.

will keep posted.

hope this will improve my poor gps performance.