slayher / CM7_Mecha_issue

Bug tracker for Cyanogenmod 7 for HTC Thunderbolt
5 stars 2 forks source link

GPS Fails to initialize. #2

Open slayher opened 12 years ago

slayher commented 12 years ago

Any application that uses GPS will come up, but GPS fails to start. The app fails to get a lock, and the gps icon never appears in the status bar.

Temporary Fix: Backup Current CM7 Rom Flash or restore a HTC Sense based ROM. Obtain a GPS location fix using a GPS app, or Google maps. Restore CM7 Backup. Test GPS Location.

This occurs because the GPS subsystem gets an RPC Lock. This doesnt allow GPS to start. There is code currently in the CM qcom GPS repos that can unlock this, but the source built gps library fails to work. By Flashing a sense based rom, you remove the lock and GPS can once again work.

jgkolt-zz commented 12 years ago

besides using another rom in order to get gps working on CM7, is there anything as an end user we can do to help get this to work or motivate other parties to get this to work?

miketoasty commented 12 years ago

Jgkolt, from what I have read the SHIFTAOSP ROM has a fix for this built in. I don't know what he did but it keeps you from having to go back to Sense.

jgkolt-zz commented 12 years ago

Interesting @miketoasty. The example they give is to edit the /etc/gps.conf to look exactly like:

NTP_SERVER=us.pool.ntp.org NTP_SERVER=north-america.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 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 C2K_HOST=default C2K_PORT=0

Mine looks different after flashing a sense rom then cm7. I will upload what mine says which works well for all gps, once i figure out how to access the file from my computer.

jgkolt-zz commented 12 years ago

@slayher and @miketoasty My current gps settings which work well in the system/etc/gps.conf

NTP_SERVER=north-america.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 SUPL_HOST=supl.google.com SUPL_PORT=7276 C2K_HOST=default C2K_PORT=0

Would be interesting to see this further tested and possibly change the default config file when flashing cm7

For those not familiar with editing on the android es explorer can be used on the phone or android commander from the pc.

tmurj33 commented 12 years ago

Ive also been able to move from a sense rom with no GPS lock (in other words without the hacky way) have the GPS no initialize then use the app GPS Status to clear GPS data then download new assisted GPS info. This has fixed the issue with me

pingwin commented 12 years ago

I've flashed on a BAMF Sense 3.0 RC4.9 still w/o lock. Any tips?

UPDATE: Was able to get a lock using Google Navigation in BAMF, restored from nand backup and GPS works perfectly.