yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] OPTheory:
YES! This happens to me too. It works *excellent* the first time you put it on when you test it out, but then when it comes time when you need to navigate somewhere you're just stuck waiting for a lock and it's hit or miss.

Either way, thanks OP for the software fix. Very convenient!
[Vibrant Android Development] jad3675:
Try removing /system/bin/agpsd. I never placed it when I did the manual GPS fix and I never had issues. Flashed 71 yesterday and your zip and had your issues. Removed agpsd and the problem went away.

Do you have a /data/gps/lto.dat?

John
[Vibrant Android Development] strictlyrude27:
I'll try no agpsd and see how that goes.

I don't have the file you reference. What is it, and could you please PM me with a link to download?
[Vibrant Android Development] jad3675:
LTO.dat is Long Term Orbit Data. As far as I can tell, the CM7 on the vibrant doesn't do AGPS.

http://www.broadcom.com/collateral/tb/LTO-TB100-R.pdf

I've attached a shell script that will download the lto data.

I had merged this into gerrit for CM7 (Nightly 62), but I don't think it got merged properly.

John
[Vibrant Android Development] elsocplayer:
Sorry no Thank you button on XDA app, I will try it out an report a lil later on. Thanks for your work with this.

Sent from SGS Vibrant w/CM7
[Vibrant Android Development] strictlyrude27:
Awesome, thanks. I'll implement your script as a startup script in both fixes. I'm just testing it now. I might change the timeout time to 10 minutes, since the script will execute on boot and if the user wiped dalvik it'll take forever before the script can get DNS.
[Vibrant Android Development] jad3675:
It was originally made as a service that would run when Wifi or GPS was turned on. It was merged in #62; either someone took it out, or my submit didn't generate the init.aries.rc properly. If you can get it working as a update.zip, that's be great.

John
[Vibrant Android Development] strictlyrude27:
Dear all -

CWM flashable updated to V1.3. Based on discussion above, I've removed agpsd and added a script that downloads long term orbital data on boot. No-gpsd and script variants are also available. Please let me know of your results! Personally, I'm fairly hit or miss, but so far a lot of others are pretty happy with all the fixes thus far.

For some reason, my updater-script didn't always like deleting /system/bin/agpsd - if you flash V1.3-CWM and find that the file still exists, please let me know - then delete it and reboot. Thanks!

EDIT: Had to reupload the script version, forgot to create the GPSFix folder before putting all the files into the zip - please redownload and re-execute if you are using the script.
[Vibrant Android Development] strictlyrude27:
Last update of the day (hopefully week, maybe even ever if everything works out!), I swear!

Updated to 1.3.1. I wasn't getting any results with the new Long Term Orbit file fix; I changed permissions of /data/gps/lto.dat from 0644 to 0755 and I got looks and locks fairly quickly.

You do NOT need to flash 1.3.1 if you've already flashed 1.3. In fact, 1.3 might be working fine for you. But if it's not, try the following commands at a terminal:

su
mount -o rw,remount /system
sed -i 's/664/755/g' /etc/init.d/90getgps_lto
chmod 0755 /data/gps/lto.dat
mount -o ro,remount /system
reboot

This will change permissions on lto.dat to read/write/execute, and set the boot script to do the same when it downloads new files.
[Vibrant Android Development] bellrb19:
Just installed 1.3 and getting 0 in view with gps test and no lock. An hour after installing it gps would not show up as actively searching in notification even after toggling setting in menu and checking permissions (which appear correctly). I am on glitch, so will flash latest nightly and try with stock kernel and gpsd.

I also performed the instructions in original thread and had occasional locks. Thanks for this, progress is made every day with gps. Will report back after update.

EDIT: After doing the LTO fix mentioned above I got a gps lock in 15 seconds in maps. GPS test shows 12 birds in view with 7 locked. Accuracy fluctuates between 30-70 feet. Best I have seen on Gingerbread yet! Will see if it can actually track a trip in mytracks. Awesome!
[Vibrant Android Development] strictlyrude27:
Try 1.3.1. That has fixed permissions for long term orbital data. After reboot, I get 6 used/13 in view after 5 seconds, 130ft accuracy. [EDIT: and on reboot, nothing in sight.. and on reboot AGAIN, 6/13 with 130ft accuracy.] I need more confirmation that this works though.

If that doesn't work, try this at a terminal:

su
mount -o rw,remount /system
rm /etc/init.d/90getgps_lto
rm /data/gps/lto.dat
mount -o ro,remount /system
reboot

This will remove long term orbital data entirely. I wonder how this will perform along with no agpsd.
[Vibrant Android Development] jad3675:
GPS Aids (v2) from the Market will also inject LTO data; might be worthwhile to give that a try.

John
[Vibrant Android Development] Mannymal:
No joy on the fix. Just like following the instructions on the other thread, it did nothing, and might have introduced the Android System battery leak related to GPS, will have to wait longer but so far Android System is the biggest drainer since installing this.

Will download the one with LTO to see if that helps.
[Vibrant Android Development] strictlyrude27:
I'm in the same boat you are - GPS tends to drain the crap out of my battery. If you're a Tasker user, check my sig - I wrote a Tasker profile system that lets you load/unload the GPS driver. Alternatively, install Trigger Redux, since Roman included a GPS load/unload toggle in his tweaks as well.
[Vibrant Android Development] elsocplayer:
Installed 1.3 and I finally get to say I have a usable gps lock since more than a month ago when I had bionix Rom installed. Thanx a lot for this zip and for ur work. I get 10meter accuracy and gps locks even on the move at 60mph. Can't get lock at some indoor places but I don't mind, I only use it when on the go anyway. Again, thanx!

Sent from SGS Vibrant w/CM7
[Vibrant Android Development] OPTheory:
Can anyone confirm that the fix lasts more than a day? In my experience it works great the first day, even if you toggle GPS on and off in between uses. But after a couple days the GPS icon doesn't even show up in the notification bar if you go into Maps or Angry GPS (of course, GPS is technically turned on). This is sort of remedied by a reboot, but even then the performance is nothing like it was after first applying the fix.

I'm curious... I know that this has to do with the software, but what if I applied this hardware fix? I think I'll try it, for science. I'm sure it won't hurt.
[Vibrant Android Development] cdchris12:
Just want to say that if you do not have a CM7 rom, stay away from this. I just flashed Simply Honey 5.0b2, and this CWM zip directly after the mandatory reboot and sitting period. My GPS couldn't get a lock to save it's life. Not only that, but I couldn't roll back the changes even by replacing all the files changed by the CWM zip. I ended up ODIN'ing back to stock and starting my GB adventure all over again...

If anyone is interested, I did have AMAZING locks using the GPSD from this thread with Simply Honey 4.0. That's literally all I did was replace the GPSD file, with awesome results.
[Vibrant Android Development] OPTheory:
Mmkay, for science:

Before: Just flashed 1.31, went out and stood on my porch, opened Angry GPS in Standalone mode, got 13 satellites in about 20 seconds and 4.5 meter accuracy.

That plastic cover was a nightmare to get off... Ok, the little contact has been moved up to make contact with the antenna on the panel. Put everything back together...

After: It was noticeably faster. It detected 1, then 13 satellites within 10 seconds and went down to 5 meter accuracy faster than before.

Yes, I know this isn't very scientific, but hey - it seemed to do something.
[Vibrant Android Development] strictlyrude27:
oops :( yeah, this is definitely for CM7-based ROMs only..

That's the same gpsd as used in this fix! I might post just the gpsd file, but it's also packed in the script file, so I don't know how necessary that would be.
[Vibrant Android Development] strictlyrude27:
Hardware fix is definitely worth it, as you've learned :) glad both fixes are helping out! I would like to know your results after a day of use though - it seems that some people have lots of luck immediately after flashing, but after 24 hours it doesn't work so well anymore (but a reflash makes it work again). I'm in the same boat as the aforementioned people.
[Vibrant Android Development] cdchris12:
I know that it is only labeled for CM7, but how will you know if it works on other rooms if no one ever tries? That gpsd for cm7 works pretty damn well, after all...
[Vibrant Android Development] strictlyrude27:
Fair enough..maybe try the script version if flashing didn't work? All the flashable does is copy four files over. Script does the exact same thing.
[Vibrant Android Development] nazix:
Thank for Software GPS Fix on T959 that it's best.
[Vibrant Android Development] strictlyrude27:
I'm testing some tweaks to gps.conf.

Could someone please download the attached zip, extract to /sdcard, then run

su
sh gpsconf.sh

Your device will reboot. I'm interested in time-to-first-fix (TTFF) after you first run the script; after multiple reboots; and after a day.

For comparison, with the new gps.conf I got 7/11 after 20 seconds, 80 ft accuracy, but I still need to see if that survives reboot and see how it goes over the next day.

EDIT: After reboot, 5/10 and 23 ft accuracy in 15 seconds. GPS doesn't seem to stop working if I don't get a lock and exit a GPS-using program.
[Vibrant Android Development] jzero88:
None of the zips worked for me. Doing it manually still does though.
[Vibrant Android Development] TXLunchbox:
Just a possibly relevant question... what kernel are people using that are getting good lock ons?
[Vibrant Android Development] jad3675:
Glitch v11 ML.

John
[Vibrant Android Development] Only Loki:
I got it working on MIUI.us, and glitch. I'm about to try miui revamped, I'll update later. And I used the zip with gpsd
[Vibrant Android Development] ironlood:
I decided to try this after an install of nightly #73. I flashed it with no problems, booted just fine. Once it booted I went and checked my GPS test app, it showed at first that there were 0 satellites in use but in view there were 11. It took my phone around 2 seconds to start to use the satellites, 3 seconds to lock and 4 seconds to get 20-30 foot accuracy. So all together around 9 seconds to full accurate lock ... while inside.

This was Great to see, this was excellent progress and what not. Unfortunatly it didn't last, I don't know how long it took but I lost veiw of the satellites. None would show up on GPS test and google maps could not pinpoint anything.

Oddly I used angry GPS and switched from MSBASED to STANDALONE later in the night. I went and checked GPS test and had only 3 satellites in view.
[Vibrant Android Development] OPTheory:
So yesterday I had turned on GPS for a bit to see if I could get a lock. It had been around 14 or so hours after I flashed - it worked great. Later that day, I needed to go to a friend's place so I figured I'd throw on navigation to see if it would work. When I turned on navigation, it thought I had a lock in the same place I had when I turned on GPS earlier in the day but of course I was in a completely different area.

I exited navigation, figured Angry GPS might be able to sort it out so I did a tracking test and the GPS icon in the notification bar didn't even come up.

Oh how strange...

Strictlyrude: I'd test out that last zip for you but I don't have easy access adb. Did you find what you were looking for?
[Vibrant Android Development] strictlyrude27:
:( It seems that within the first 24 hours of flashing, GPS works great, and after that it's hit-and-miss.

I encountered the no-notification-bar icon issue (GPS driver is not being loaded); after a few minutes of sitting there it would sometimes come back. It would also help if I just turned off the screen and let it sleep for a while.

Maybe try flashing no-gpsd and see if the CM7 nightly's GPS driver is working? (Of course, this means you need to reflash the nightly to get their gpsd, or you could use adb or something to push it - just make sure you set 0755 permissions and reboot).

Initially yes - I got 20ft accuracy in 15 seconds. But it's not surviving reboots. jad3675 is testing another variant of the LTO data, and I might tweak gps.conf further. I won't have time this weekend to experiment, though, so for right now perhaps for optimal GPS usage we just have to flash the fix every 24 hours..? :/
[Vibrant Android Development] michaelh99:
I'm seeing similar behavior. Works the first few times and then just stops. rebooting to cwm and installing the zip restores operation for a few uses and then it dies again
[Vibrant Android Development] strictlyrude27:
Once I hear back about lto2 I'll incorporate that in 1.4.

This is all certainly an experiment, hopefully it'll all end soon and we can enjoy gps consistently..
[Vibrant Android Development] jad3675:
I'm on hour 27 of using the lto2.dat - have not rebooted the phone. I'm getting gps locks in ~50 seconds and a 20 ft accuracy in 2 minutes.

I'm using the original gps.conf, btw.

John
[Vibrant Android Development] strictlyrude27:
nice!

Could you try rebooting the phone and see what happens?
[Vibrant Android Development] imitebewrong:
Thanks for putting this together....

I was getting locks before this, but not as quickly, and not near as accurate.

I now get very fast locks, and accuracy is down to 6 to 7 meters! Before the fix, it wouldn't go below 30 meters, and Navigation would jump around. Now, Navigation works great.

It's as good as Froyo's GPS.... Maybe better.

:D

P.S. I'll let you know if it stops working, I have it on two vibrants.... will report back. So far, so good though.
[Vibrant Android Development] ironlood:
Just curious but what exactly is the the LTO data ??
[Vibrant Android Development] jad3675:
Long Term Orbit data -it's for devices that do not have AGPS.

http://www.broadcom.com/products/GPS/Location-Based-Services/LTO-AGPS

Even though our devices should (and can) do AGPS, the LTO data seems to help with locks. The issue with CM7 is that the gps daemon is rather...limited? Bastardized? We're not too sure how it works.

As for my testing...I had a good 29 hours without reboot with 15 ft accuracy in the GPS. Rebooted, and the accuracy is still there.

John
[Vibrant Android Development] strictlyrude27:
Great news. Will incorporate into the fix and release tonight.
[Vibrant Android Development] strictlyrude27:
Dear all -

1.4 Script version is released for testing purposes - this incorporates the use of lto2.dat and some gps.conf tweaks. I won't release 1.4 as a CWM quite yet, as I need to continue testing out the tweaks. I may roll them back as early as tonight.

Try out 1.4 if you'd like to be a guinea pig. A CWM version will be released once the tweaks get finalized (or rolled back).

I was able to get 5-10 second locks with the AngryGPS TTFF test, but for some reason I can't achieve that again. I also had 20 ft accuracy with GPS Test, but again it didn't hold up terribly well.
[Vibrant Android Development] jad3675:
Hm. What modem is everyone using? That could have an affect on gps performance....I'm on kb5.

I'm not seeing the same results as everyone else. My gps isn't perfect, but it's better than it was stock.

FWIW, I never use angrygps. Gps test, gps status and my tracks are what I use for testing.

John
[Vibrant Android Development] :
So far V1.4 is pretty amazing. Getting fastest locks i have seen on this device. Little early, but so far it is amazing!
[Vibrant Android Development] strictlyrude27:
Let me know how well those locks hold (i.e., can you use it for turn-by-turn nav?), and if the good behavior can survive not using GPS for a long time (i.e., wait an hour between tests) and reboot! Thanks.
[Vibrant Android Development] strictlyrude27:
Dear all -

CWM flashables for 1.4 are now online. Initially, I'm getting 10/13 birds in less than 10 seconds, 20ft accuracy! Whether or not this is consistent remains to be seen, of course, but the new tweaks and Long Term Orbit data seem to be quite helpful. (EDIT: I tried exiting GPS Test and reentering about 15 minutes later; initially, the same satellite data that was already in there from the last run was still there, so I exited out; upon opening the app again, the gps indicator disappeared. But I waited a minute and it came back; a minute later I went from 0/12 to 7/12 instantly, 40ft accuracy. I've been able to replicate the gps-indicator-disappeared behavior by immediately entering another GPS app after closing a previous one, if I didn't achieve lock in the first app. It's not leaving a logcat so I can't tell what's going on here.)

I would appreciate if someone could install a fresh CM7 nightly, then flash the no-gpsd version and see how the latest CM7 gpsd performs. We know that the gpsd bundled with the main fix works well, but I wonder if the gps-indicator-doesn't-turn-on behavior is fixed in newer nightlies. Personally, I get 0/12 after 2 minutes with the latest gpsd, so for right now it looks like our best bet is to continue using the gpsd in the main fix.

As I said, this is all an experiment and we may make forward or backward progress with every iteration. Hope you get good results!
[Vibrant Android Development] daohoa:
does is GPS fix work on MIUI ?
[Vibrant Android Development] T.C.P:
1.4 is the ****z on cm7 :D:D
[Vibrant Android Development] hd2life:
Dammit people you are making me want to flash cm7 again, does the gps wander around the map like gps fix for 2.2? At the moment I am allmost happy with stock gps.
[Vibrant Android Development] Gamones:
does turn by turn work?
[Vibrant Android Development] jad3675:
The GPS fix isn't perfect; accuracy is around 20ft and you'll get the occasionally foray into 80ft accuracy. TbT navi works ok; it probably 90% useful. I tried it out on a trip to the zoo this past weekend. Even with the flaky accuracy it didn't waver and tell me pull a u-turn. It show me driving in the wrong lane occasionally, though. :)

John
[Vibrant Android Development] gbakabg:
I would assume since its cm7 base ..
[Vibrant Android Development] T.C.P:
in navigation? yes, y yes it does :eek::eek: :cool:
[Vibrant Android Development] laylovj:
Anyone mind trying a couple more tweaks?

Using root explorer go to etc>gps.conf

mount r/w

long press gps.conf and hit open in text editor

INTERMEDIATE POS=1 or 2 or 3

ACCURACY_THRES=10000

ENABLE_WIPER=0
[Vibrant Android Development] strictlyrude27:
Went to the airport and back home today. On the way there, had about 4/11 and 150ft accuracy, with some drops and not-immediate relocks. But on the way back, I had 8/11 and 30 ft accuracy. Both there and back I was averaging 65mph.

1.4 looks good, hopefully we can get it consistent too.. I don't have any more tweaks or data (lto, etc) in the pipeline right now so this should be the last release for a while.
[Vibrant Android Development] agosine:
I installed CM7 over the weekend running nightly 76. Installed version 1.4 no-gpsd. Came from Project V which had consistent locks after bending the antenna connector up.

Was able to get 7/12 after 5 minutes with 118 feet accuracy while stationary using GPS Test. Not able to test while moving. Exit and waited for GPS to stop. Tried again and was not able to get any locks. Rebooted, able to see 7-12 satellites, but not able to get any locks.

Update - Left GPS Test running. After almost 20 minutes 4/11 locked with 113 feet accuracy. Was just about to try the gpsd version.

What is the version of gpsd in the 1.4 gpsd file compared to the nightly?
[Vibrant Android Development] playonline53tms:
What is gspd?
[Vibrant Android Development] strictlyrude27:
Thanks for the feedback. I honestly don't think the latest gpsds will ever compare to the one in the main fix, at least until we get a source drop (which will likely never happen).

I also noticed the maple leaf flag by your name - I'm using us.pool.ntp.org as the time server in /system/etc/gps.conf, I suggest you change it to ca.pool.ntp.org, you might get better results.

The gpsd in the fix is from Trigger Redux#14 (CM7 Nightly#54). Not sure when they made it worse, or why...

It stands for GPS Daemon - it's the driver that interfaces the phone with the GPS system itself.
[Vibrant Android Development] agosine:
Thanks for the information. I made the change and it seemed to make the first lock after rebooting quicker. Trying again after a few minutes resulted in no locks.

I will try the gpsd version and see how that works. Do I need to reinstall this after every nightly update?

Thank you again.
[Vibrant Android Development] strictlyrude27:
Yes, you will - /system gets wiped when you install nightlies, and I copy over gpsd and an init-script that downloads LTO data into /system..
[Vibrant Android Development] :
i can't appear to get a lock when i am going anywhere in my car. My last lock took almost 10 min. to happen and i was outside. The phone was getting single from 11 satellites but it would not lock.
[Vibrant Android Development] laylovj:
12 ft accuracy outside and 20 indoors. But, why does the daemon randomly stop working?

Outside
[Vibrant Android Development] granduke:
Works same as 2.1 and 2.2 ROMS for me. Quick lock, accuracy in in the 20s feet, and wild drifting when standing still. Nice to catch a quick static location for foursquare and latitude, for navigation I need to stick with a BT receiver.
[Vibrant Android Development] strictlyrude27:
Try reflashing the fix? Also, have you performed the hardware fix? It's definitely worth doing.
[Vibrant Android Development] agosine:
Did you achieve these results with the tweak you posted earlier?
[Vibrant Android Development] OPTheory:
Agreed - it takes 3 minutes and the results are worth it.

So I'm finding 1.4 to be a winner so far in regard to consistently being able to get a lock at different times, but I'm finding it to be a bit more erratic in a way. It's more sensitive to slight changes, like when placing it under the roof of my car it will lose a good amount of accuracy whereas before it seemed to 'hold' onto the accuracy a bit more. That being said, I'm happy!
[Vibrant Android Development] Gamones:
WOW

Okay, I was lost again last night and decided to give this file a shot since it was on my dropbox.

Before - HUGE Location Proximity bubble everytime I drive. Hard time locating

After - Locks and gave me perfect turn by turn.

Verdict - Install this right now.

ps - CM7 76
[Vibrant Android Development] Gamones:
Hi guys, im trying to install the new cm7 81. Will I need to reinstall this patch from recovery? Thank you!

ps - why aren't you guys all over this thread? I can actually use turn by turn now with no error.
[Vibrant Android Development] strictlyrude27:
Yeah, you'll need to reflash after every nightly, since /system gets wiped and I put stuff in there..

and I'm glad the fix is working for you :)
[Vibrant Android Development] agosine:
What do these changes do? I changed my gps.conf file to say 'INTERMEDIATE POS=1 or 2 or 3' and got 8/14. Still took almost 5 minutes to lock though. At one point it showed 16 satellites available.

Thanks
[Vibrant Android Development] tsnow247:
I'm also intrigued. I tried the settings and not sure it helped.