yashsingh1/xdaforums huggingface dataset:
[Vibrant Android Development] strictlyrude27:
Dear all -

GPS Fix upgraded to version 1.5.1. No major changes here - but I do make sure the fix overwrites and does not collide with CM7's GPS Fix implementation (which was version 1.3 of this fix). If you haven't run the above terminal commands, you'll want to flash this. If you have, no need to flash.

I also offer a new "newgpsd" variant - this contains the gpsd from the latest CM7 nightly. It needs further testing, but from what I've heard it's slower to lock yet less prone to randomly crapping out on you. Give it a shot if the original fix lost the GPS indicator too often. It needs more testing, and it takes me longer to get a fix with it. But if vanilla CM7 had a working GPS for you without the fix, this might get you an even faster lock. I will continue monitoring the CM7 thread and changelogs and keep this zip updated to the latest gpsd if there are changes between versions. (FWIW: Personally it still craps out on me and I can't really achieve a lock with it - but YMMV. I know some people had good luck with it.)

Finally, of course nogpsd variant is available. If you flash this against a new nightly, it will be identical to the newgpsd variant.

Script version contains old gpsd.
[Vibrant Android Development] deus_:
I just updated to latest MIUI release last week. And my GPS has started woking perfectly fine. It was kinda okay before that(I used you 1.5 patch). I did not manage to get indoor locks and signal dropped now and then. Not any more. I get amazing signals indoors and outdoors is 20 feet max. This is just perfect. Not going to touch anything now :)
[Vibrant Android Development] strictlyrude27:
Are you saying no fix was needed for your latest flash? Could you please pull /system/vendor/bin/gpsd for me and post it here? I've never used MIUI before and have not kept up with that release.

EDIT: just downloaded it myself, looks like they installed my fix my default in there :)
[Vibrant Android Development] deus_:
Yeah latest update came with kernel upgrade for Vibrant. I'm sure they something with the gpsd too. Whatever it is, it is the closest to perfection GPS has ever worked for me.
[Vibrant Android Development] strictlyrude27:
Thanks for the input. Right now I'm running OMFGB so I can't comment as to how well CM7's GPS is working out. Leave it if it works for you, but based on my initial poking around they're using v1.4 of the fix, gpsd included. They also changed the NTP time server to China instead of the US.
[Vibrant Android Development] nesson:
v1.5.1!!i will test it soon, thank you for your work! i have been haunted by that GPS can't be open repeatly!:p
[Vibrant Android Development] strictlyrude27:
I've had decent luck with maintaining lock using the "newgpsd" variant (which uses the same gpsd as baked into CM7 vanilla right now), but not good luck getting lock in the first place. I'm playing with some tweaks to gps.conf and AngryGPS. I'd appreciate any feedback!
[Vibrant Android Development] mainevent3405:
So it's not certain whether 1.5.1 really works well on Miui or not if I'm reading these posts correctly.
[Vibrant Android Development] strictlyrude27:
1.5.1 is pretty much identical to 1.5 - I only changed the name of the download-data script to ensure it doesn't collide with CM7's implementation.

Talking to the MIUI devs, it seems that setting the NTP server to China may help. It wasn't clear if they were actually in China or the US, though.
[Vibrant Android Development] d_phekt:
I can confirm that setting the NTP to China I get locks within seconds on MIUI.

My settings are:

Automatic Assisted GPS: Off

NTP server address: cn.pool.ntp.org

SUPL server address: supl.google.com

SUPL server port: 7276

With those settings I turn on the GPS Status app it almost instantly sees 12 birds, and locks onto 7-8 of them within 10 seconds with an accuracy of about 35 feet.
[Vibrant Android Development] deus_:
^^ Which MIUI version?

Plus, do you have AngryGPS? And what version are you using for the hack(1.5/1.5.1/wgpsd/wogpsd)?

Sorry for too many questions :)
[Vibrant Android Development] xujianningkp:
F**king awesome!!!! I finally got my vibrant gps fixed, thanks
[Vibrant Android Development] syl0n:
Anyone have issue where after getting lock if you switch to another app and switch back, you lose GPS signal and if looking in GPS Status it shows as 0/11 satellites and all satellites have a 0 Signal strength. Once I am in this state I will not get lock till i do a full reboot.

I normally do this cause it takes so long to get a fix, so i load GPS status and wait, when i get a fix, i switch to app i am looking to use e.g. Maps but while maps is loading the fix is lost and it wont get any further fix cause all satellites are stuck at 0 signal.

Is there a fix for this?

EDIT: it seems newgpsd has the same problem above (with CM7 nightlies) but if i flash 1.5.1 without the newgpsd then my gps actually works and not die randomly needing reboots!
[Vibrant Android Development] selmandeli:
Can I use this fix with (Rom)Simply Honey 5.1 Revolution(JVR GB 2.3.4) 8/14/11)One Last Go With JVR, or it is only for CM7?
[Vibrant Android Development] markinct:
Dude - I hit the "Thanks" button... and the tip jar (wish I could donate more)... GPS is important to me.
[Vibrant Android Development] strictlyrude27:
No, CM7-based ROMs only.

Thanks so much :) I really appreciate it!
[Vibrant Android Development] markinct:
It's my pleasure to acknowledge and support those who develop for and support the Android community.
[Vibrant Android Development] archie53:
Nevermind.
[Vibrant Android Development] epakrat75:
Has anyone had better luck trying this with CM7.1 (Android 2.3.7)? I flashed Vibrant_CM7_GPSFix_V1.5.1-CWM-signed.zip and the Compass patch. I'm getting 10 in view, average 6 locks in about 30 secs with ~ 100 ft accuracy. I'm using the stock CM7 kernel, does anyone have any improved experiences to share with this and other kernels?
[Vibrant Android Development] SamsungVibrant:
This needs a bumpity bump.

Thanks strictlyrude27, vibrant_CM7_GPSFix_V1.5.1-CWM-signed.zip worked for me!

One thing though, sometimes I still have to reboot to get GPS initiated. Other than that, it's fantastic!
[Vibrant Android Development] syl0n:
I only have that issue with the newgpsd version. The one you quoted works without fail every time. Although cold locks can take a few minutes sometimes.

With the newgpsd one it sees satellites but all of them show signal bar to be 0 and it just sticks like that till rebooting.
[Vibrant Android Development] SamsungVibrant:
No for me, I've been running the one I said above, and I require reboot sometimes.

Regardless, GPS when it works is great, and I'm thankful for this fix.
[Vibrant Android Development] deus_:
Hey, this Compass patch thing you mentioned..what exactly is this? I am interested in knowing more about it. Apparently, my Compass misbehaves every now and then.
[Vibrant Android Development] strictlyrude27:
I'd like to take this time to mention that I was able to get 15 foot accuracy, 9/10 locked, to drive through Seattle for an hour or so, yesterday. Today I was unable to get a lock while I was on the bus. :shrug: Frankly I've been using bluetooth GPS lately so I haven't really been testing my own fix.

This was with the standard zip.

Note that SamsungVibrant pointed out to me that killing all GPS-using apps might be enough to restart the GPS daemon, rather than rebooting. I might release a Tasker project to have a one-touch kill-these-apps button.
[Vibrant Android Development] d0rkster:
I have used the newgpsd and the signed version. I can get views for both but can't get any locks. What can be the problem?
[Vibrant Android Development] strictlyrude27:
try installing AngryGPS (find link in OP) and switch GPS setting from MSBASED to STANDALONE (or vice versa? i never remember).

Typically the standard zip is best, but some people have had better luck with newgpsd (which is the same as the gpsd that's bundled with CM7, for right now)
[Vibrant Android Development] hurtz777:
Actually STANDALONE is default in Angrygps therefore you need to change it from STANDALONE to MSBASED for faster locks.
[Vibrant Android Development] SamsungVibrant:
What is causing a reboot to be needed?

Sometimes the GPS fails to initiate (no icon flashing in notification bar). Requires a reboot for it to "kick in" and start. What could be causing this? Caching problems? Cache gets full? I don't know, throwing out ideas.

So annoying to have to reboot every time I want to use GPS.
[Vibrant Android Development] strictlyrude27:
your guess is as good as mine. i wonder if there's a bug report out on this right now; i'll go file one.

note that this probably won't be resolvable without gps drivers for the vibrant, which aren't going to ever drop.

EDIT: of course, now i can't replicate the issue now that i'm trying to get a logcat.. if someone could get a logcat of the behavior, you ought to post it to the bug tracker. note that you'll have to do it with newgpsd because the gpsd bundled in the fix is from a nightly from a long long time ago.

EDIT2: make sure you're on the latest nightly? again, i cannot for the life of me reproduce this right now even though i was having the exact same issues yesterday
[Vibrant Android Development] SamsungVibrant:
Able to reproduce it yet?
[Vibrant Android Development] apicia:
So far so good. I flashed the top zip file in the download list. It takes a while to lock, but it seemed to show me driving down the street and not over ponds and such. I keep testing and see how accurate it is. Thanks for trying to fix the GPS.

---------- Post added at 08:41 PM ---------- Previous post was at 08:39 PM ----------

For me, the GPS will not appear or try to locate birds if you close a program that is trying to locate before it finishes. I opened Navigation, it tried to locate GPS, then when it would not lock I exited Navigation. Icon would not show up again until a reboot.
[Vibrant Android Development] strictlyrude27:
Yeah.. I've been trying to capture that behavior with logcat but now it won't do it.

Are you running the normal zip or newgpsd? If you can get me a logcat against the newgpsd variant I'd much appreciate it..
[Vibrant Android Development] apicia:
That behavior was with the stock files 24 hours after flashing the stable mod. I am now running your newgpsd. I will try to replicate the behavior.
[Vibrant Android Development] SamsungVibrant:
I'm having the problem on the normal zip. The problem is getting worse and worse though, now even when I reboot the GPS fails to initiate. I just reflashed the normal zip file and my gps is working again.
[Vibrant Android Development] MizSxxyBych:
Awesome work...thanks!
[Vibrant Android Development] creeve4:
Is it necessary to reflash this "fix" after flashing a kernel? I would assume "yes," but want to check.
[Vibrant Android Development] strictlyrude27:
Nope. Although generally speaking, for some reason people have had best results if they flash periodically. I don't know why.
[Vibrant Android Development] apicia:
That's because the installer wipes some stuff like dalvik, etc?

In my case, I freshly installed MIUI Lithium 5.1 and installed all the normal apps. Just flashed the ROM after formatting system, cache, sdcard, etc. I reinstalled all my apps from the Market using Wifi. I made a list of apps I use on Word, so I never use backup. I like everything fresh. I had absolutely no GPS. Used Faster Fix, switched to MSBASED, and AngryGPS would show 12 satellites, but they all read 0. I installed the V3 GPS fix and it showed 12 satellites and only got signal from three of them. It would not fix. I then wiped davlik, flashed Vibrant_CM7_GPSFix_V1.5.1-CWM-signed.zip, fixed permissions. Went back into Faster Fix and set to China. Went back into AngryGPS, deleted data, and got a lock in 1.7 seconds! Wow. NoGPS and NewGPS did not work for me.
[Vibrant Android Development] creeve4:
Thanks for the helpful replies!
[Vibrant Android Development] strictlyrude27:
No, I don't wipe Dalvik. I clear out old scripts and delete residual long-term-orbit data, but residual LTO data is cleared every couple of days anyway. I might set it so it refreshes every day instead of every 3.
[Vibrant Android Development] layzer253:
Worked perfect for me...sorta. I see 11 sats nearly every time, but can only get a lock on 4-5. It seems to think my position is about 20 meters east of where I really am, and locking a position in google maps is sporadic. Off to a good start though! No other method has brought me at least this close! Also, if it means anything, my phone was bought on launch day, and I did do the GPS antennae mod.
[Vibrant Android Development] jwleonhart:
mmm I don't know about MIUI, but the CM7 nightlies seem to already include the GPS files I posted in my original write-up... so no offense but this won't help anymore I don't think. :(
[Vibrant Android Development] apicia:
Right after getting a 1.7 second lock, the next day I had nothing. Rebooted and still nothing. AngryGPS could not find any birds. I flashed to NewGPS and saw 13 birds, but locked none and had all zeros.

It seems, I have to reflash the GPS .zip files to get it to work everytime. I now keep all three of strickly's files, the V3 fix, and one other. I rotate them and try to find which ones work. I did enable assisted GPS and it has helped lately. I hope the SII has better hardware. I liked the look of the Samsung Note. That huge phone should have a giant antenna!!
[Vibrant Android Development] strictlyrude27:
Not true; this fix fetches long term orbit data at boot, if necessary. CM7 implemented a previous version of the fix where they retrieve lto.dat ; I use lto2.dat.

MIUI and others have implemented the fix in their ROMs.

I wish there were ways to improve it, but I don't think there can be at this point..
[Vibrant Android Development] Emama:
Yes, and when the GPS icon never show up, the Android System in the battery history shows a high CPU consumption that it keeps awake..
[Vibrant Android Development] syl0n:
this GPS fix does not seem to work with latest CM7 nightlies? Mine gets stuck at the Cyanogen / Galaxy S screen forever. Had to do a force reboot into recovery and re-flash CM7 nightly to make it boot.
[Vibrant Android Development] jrafael:
+1

I also try pushing files manually with Root explorer and gps still broken.
[Vibrant Android Development] BrasilNut:
So... no one else commented on this... :confused:

Tried this on

Phiremod Fusion 2.0

and

CM nightly + integrated external BT GPS

ROMs

Both of them - stuck at Cyanogen / Galaxy S screen forever

I completely give up on this POS Internal GPS.

Good luck to you all.
[Vibrant Android Development] syl0n:
The gpsd in CyanogenMod nightlies works sometimes but has a tendency to just die randomly, like it will be showing 10 sats and then the SNR for them drops down to 0 randomly (can be seen in GPS test) and wont lock till rebooted.

I just replaced the gpsd in the CyanogenMod nightlies to the one in 1.5.1 which is older but more stable. works for me, although accuracy rarely goes better than 25 metre but good enough for Nav, best I have got is about 4 metre but only on an open ground with no tall buildings around me. Once locked GPS holds fine for me even in the city with skyscrapers and shop roofs on the footpath.
[Vibrant Android Development] chui101:
The hanging on boot is because there is something going on with the init script that delays booting for 10 minutes while it waits for a network to become available. Wait for 10 minutes and it will boot. Then go into /etc/init.d/get-gps-lto and edit it by commenting out the top bit about waiting until net.dns1 is defined. Now it will boot promptly, but it won't download the latest lto data (which is still good enough to get a gps fix).

If you find you still need lto data go into the terminal again and execute the get-gps-lto script manually to download the lto2.dat file.
[Vibrant Android Development] BrasilNut:
The get-gps-lto seems to be locked, to the point that a superuser cannot even modify it.

Any idea how we can do, what you mentioned above?
[Vibrant Android Development] strictlyrude27:
I haven't had issues with the fix hanging, but I'm not running the latest nightly (am on 7.2-RC0). I don't think it's my script unless something has fundamentally changed with how CM7 boots and runs init-scripts.

Ensure get-gps-lto has full permissions:

# chmod 0755 /etc/init.d/get-gps-lto

This should let you modify the file as needed.
[Vibrant Android Development] paypalbid:
im with you on this GPS issue
[Vibrant Android Development] twotone8:
so i attempted to flash this over the current stable CM7 (non nightly) last night and got stuck at the kernal boot screen. i figured i'd done something wrong, re-flashed the rom, and walked away. are you implying that if I had just waited it out it would have eventually booted?

using streamline kernel if that makes any difference.
[Vibrant Android Development] strictlyrude27:
I just flashed the latest nightly and flashed my fix; no bootloop. Everything seems to work fine for me.
[Vibrant Android Development] Emama:
I am using CM7.1 stable,

none of the attached fix brings my GPS to work..

(it used to work very well in 2.2 rom)

what exactly you guys do to fix the GPS?
[Vibrant Android Development] paypalbid:
yes if you waited out the boot screen will show up between 10-15 minutes. The problem is that this boot delay happens every time you turn on your phone or restart your phone. The delay is not even worth it so I just got rid of the fix zip. I'm using Nightly 182

---------- Post added at 09:55 AM ---------- Previous post was at 09:51 AM ----------

Make sure you have the program called "GPS Test" it is free from the market. Run that to lock in the satellites and activate the GPS function before using any maps or navigation program. If you are having trouble locking in GPS just reboot your phone and go straight to GPS Test to lock in the satellites.
[Vibrant Android Development] twotone8:
Switched from streamline kernel to Bali, flashed the fix again, and it seems to have installed correctly. it's probably just not compatible with the streamline kernel. Still testing whether it actually fixed the GPS, but initial tests are encouraging, if a tad unreliable.
[Vibrant Android Development] chui101:
The streamlined kernel contains the fix, it installs the gpsd and agpsd and gps.conf from the fix but does not do the lto2.dat download. If you install eugene's streamlined kernel, you don't need to install this.
[Vibrant Android Development] twotone8:
Oh awesome. What do you guys think about using angry GPS with this. Would the "delete GPS data" negate any of these fixes? Been messing with it all day and I can't help but feel like I'm just making things worse with the constant reboots and testing.
[Vibrant Android Development] chui101:
I use AngryGPS in CM7 as a replacement for LBSTestMode, but GPS Status is a lot prettier and gives even more information. Don't mess with the settings though, everything it needs to work is already in the gps.conf that the GPS fix flashes.
[Vibrant Android Development] Emama:
I tried all these 3

Vibrant_CM7_GPSFix_V1.5.1-CWM-newgpsd-signed.zip - [Click for QR Code] (445.3 KB, 3419 views)

Vibrant_CM7_GPSFix_V1.5.1-CWM-nogpsd-signed.zip - [Click for QR Code] (126.9 KB, 552 views)

Vibrant_CM7_GPSFix_V1.5.1-CWM-signed.zip - [Click for QR Code] (466.4 KB, 1719 views

none of these help:(

I always use GPS Status before using any GPS app starting from 2.2 (thanks Vibrant :/)

but it just does not lock..

Also, when it does not lock and I exit the GPS status..

GPS icon will never come back and the system will kept awake until reboot.....ewwww
[Vibrant Android Development] orgwizard:
dido

running 7.1 stable

was on a trip recently and nearly pulled my head out...

even thought I had gps working for a while...but would work for a bit, then lose signal...was horrible to use for navigation...

even wiped everything out and restarted while on trip with fresh build, tried all three of those fixes, and now it's actually worse...dont' usually need gps...but the one time I did..and was a big let down....

but still sticking with this rom...as the benefits are still worth it
[Vibrant Android Development] jsparakov:
I'm experiencing the exact same thing with the Stable CM7.

Any advice on what to do if the GPS only works once and then won't work until I reboot the phone? I also did experience great battery drain after such a failure. I think that is referring to wake lock, as 65% drain ended in up being Android System after GPS death. I'll have to re-scour the forums as see if anybody found a particular solution. I might have to jump on the nightly as see if that helps.

...It's almost as if the Vibrants aren't all the same internally, but I don't have any evidence to back that up. I remember that being an issue with Voodoo lagfix in the beginning since my Vibrant had a different set of flash memory. Anyway, I highly appreciate whoever gives the GPS problem attention considering the circumstances surrounding it. It's sad that Samsung/T-mobile won't release any source code. Where can I e-mail them to complain about that?
[Vibrant Android Development] syl0n:
try doing this:

1. Grab a recently nightly zip

2. Copy the gpsd file from Vibrant_CM7_GPSFix_V1.5.1-CWM-signed.zip and override the file in nightly

3. Flash the nightly

The Cyanogenmod gpsd is highly unreliable for me, this one works fine.
[Vibrant Android Development] Emama:
I should say...it is amazing!!

My phone was suddenly dead(boot loop) without any reason...I reflash the nandroid backup that is create one month ago using 7.1 stable all default kernel and no fix GPS flashed..

This time I flash the 1.5.1 signed fix...and GPS works now!! 4-5 birds is locked!!

Didn't do anything else except flashing this!!!
[Vibrant Android Development] strictlyrude27:
Can someone with bootloop issues please send me a logcat of their startup? I cannot for the life of me replicate the bootloop problem. I'm running the latest CM7 nightly and I have yet to bootloop.
[Vibrant Android Development] chui101:
It doesn't actually bootloop, it waits at the while loop in the get-gps-lto script for 10 minutes (60 loops x 10 second wait)
[Vibrant Android Development] BrasilNut:
Am getting:

chmod: /etc/init.d/get-gps-lto: Read-only file system

when I try that................................................... :(

Any advice?

---------- Post added at 07:08 PM ---------- Previous post was at 06:47 PM ----------

Figured it out:

mount -o rw,remount /system

(I then commented out the first section that causes the 10 minute delay)

mount -o ro,remount /system

Boots immediately now... :rolleyes:
[Vibrant Android Development] strictlyrude27:
that's good. i might change that up, then. I still haven't been able to replicate this delay and I'm running the latest nightly.

Are you in airplane mode when you boot up, by chance? I have no idea how to replicate the wait time. It's never happened until the latest couple of nightlies, it seems, and even then I don't know how many people actually have problems vs how many don't.
[Vibrant Android Development] jwleonhart:
Wow, I didn't know people were still using my files haha.

Every time I would update to a new nightly on CM7 I would have to re-apply the fix but never had to rewrite anything to the system...

Odd people are having that problem, or the random lockup.
[Vibrant Android Development] barribow:
People that were using CM7 nightly:

Which ROM are you using right now?
[Vibrant Android Development] syl0n:
I am still on CM7 nightly KANGs. http://fitsnugly.euroskank.com/gigglebread/
[Vibrant Android Development] barribow:
it's not on ROM manager list. Are you happy with it?
[Vibrant Android Development] ruhrohs:
Flashed the fix and phone was caught in a bootloop. Didn't want to wait EVERY time I rebooted the phone. Reflashed a working NAND backup and not dealing with this. BLAH POOP!

---------- Post added at 07:30 PM ---------- Previous post was at 07:26 PM ----------

I'm on nightly 233. GPS fix didn't work for me.
[Vibrant Android Development] chui101:
it's not a bootloop, it's a 10 minute wait. try using yagf2.