Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
axel_marchi
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Jun 2010
Default GPS.CONF

For those people use GPS on HTC DESIRE and it works after root.

Someone can post gps.conf file located at /system/etc.

I think it contains parameter to config gps module and I want to compare my gps.conf on my HTC DESIRE .

My HTC DESIRE gps module dont' fix anymore satellite position after root and flashing ROM

Thank you
 
Daelyn
Old
(Last edited by Daelyn; 18th July 2010 at 10:15 PM.)
#2  
Daelyn's Avatar
Senior Member
Thanks Meter 117
Posts: 582
Join Date: Dec 2006
Code:
# cat /system/etc/gps.conf
NTP_SERVER=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
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Breakdown of contents:
NTP server is used to get accurate time, without you can't get a correct GPS loc.
XTRA is the GPS Satellite position servers.
SUPL is the Location server uses for A-GPS. in this case Google's own.
 
Current phone:
Samsung Galaxy SIII // Pebble Blue
Kernel: Siyah.
ROM: The least bloated AOSP I can find.
============= Retired section ================
HTC Desire AMOLED // Custom H-Boot
ROM: Oxygen 2.3.2 Clean and lean!
Radio: 32.54.00.32U_5.14.05.17 + RIL
 
tienhn
Old
#3  
Member
Thanks Meter 15
Posts: 47
Join Date: Jul 2008
Quote:
Originally Posted by Daelyn View Post
Code:
# cat /system/etc/gps.conf
NTP_SERVER=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
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Breakdown of contents:
NTP server is used to get accurate time, without you can't get a correct GPS loc.
XTRA is the GPS Satellite position servers.
SUPL is the Location server uses for A-GPS. in this case Google's own.
This kind of puzzled me, why GPS need NTP to get fixed. The whole purpose of GPS is to be able to fixed based on the time data coming down from the satellite signals.
In fact I have tried to turned my N1 to flight mode (i.e. no signal at all) and the GPS still fixed its position just fine.
 
jjwa
Old
#4  
Senior Member
Thanks Meter 10
Posts: 220
Join Date: Jun 2010
Location: Enschede
On my 2.2 Galaxy S I got a black screen at first too. But after about 5 seconds I got a PowerUser popup asking for root permission. I checked the gps.conf before and after. It does exactly what it promised to do, so that's confirmed .

Now let's hope it helps the GPS.
 
maxmax0
Old
(Last edited by maxmax0; 11th November 2010 at 01:36 PM.)
#5  
Member
Thanks Meter 10
Posts: 66
Join Date: Oct 2010
Quote:
Originally Posted by tienhn View Post
The whole purpose of GPS is to be able to fixed based on the time data coming down from the satellite signals.
there is no "time data" that would be "coming down from the satellite signals". The signal you refer to is pseudorandom code and not time data.

Quote:
Originally Posted by tienhn View Post
In fact I have tried to turned my N1 to flight mode (i.e. no signal at all) and the GPS still fixed its position just fine.
of course gps will also work on its own (i.e. when you switch to flight mode), but it will take longer to get a fix. MUCH longer in fact, depending on the situation. thats the point of a-gps, providing supplement data that allows you to get a faster fix.
 
ozmanic
Old
#6  
ozmanic's Avatar
Member
Thanks Meter 4
Posts: 53
Join Date: Feb 2007
damn,i got really really sick now..
have ROOTED droid and cannot ACCESS to gps.conf.using root explorer.
cannot disable R/O for this file.
any suggestion whats goin wrong here?

2.3.1 gingerbread
HTC HD2
★HyperDroidGBX★
 
dexter93
Old
#7  
dexter93's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 1433
Posts: 11,102
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by ozmanic View Post
damn,i got really really sick now..
have ROOTED droid and cannot ACCESS to gps.conf.using root explorer.
cannot disable R/O for this file.
any suggestion whats goin wrong here?

2.3.1 gingerbread
Why don't you try via adb?
(in order to edit that via root explorer you have to be s-off, while via adb you don't)

Sent from my HTC Desire using XDA App
The Don

Initiator of the HTC Unbricking Project
Sensation | MyTouch 4G Slide | Amaze 4G | Vivid, Raider, Velocity | EVO 3D GSM | EVO 3D CDMA | Jetstream | EVO 4G LTE
Support is NOT given via pm.
~*~
Juopunutbear S-OFF | LazyPanda S-OFF
finally here... http://unlimited.io
~*~
OTA Updates for everyone!
https://otaupdatecenter.pro
 
Jarod_
Old
#8  
Junior Member
Thanks Meter 1
Posts: 26
Join Date: Jul 2010
Quote:
Originally Posted by ozmanic View Post
damn,i got really really sick now..
have ROOTED droid and cannot ACCESS to gps.conf.using root explorer.
cannot disable R/O for this file.
any suggestion whats goin wrong here?

2.3.1 gingerbread
Use "Terminal Emulator", then type :
$ su
# cd /system/etc
#*remount rw
# vi gps.conf

(you need to know how to use "vi")

As you can see, you need to do a "remount rw" to make it writable. You can do that with adb too.
 
Outbreak Monkey
Old
#9  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jun 2011
Default Remount HTC Desire

Bit of an old thread,

But I've never had the remount work on my HTC Desire (rooted, running Oxygen 2.2.2/Amon RA 2.0.2 Recovery)..

What I do is reboot in to recovery, mount /system and then use ADB to shell in and edit the files.

If I do a remount rw, It appears to edit the file, but as soon as I reboot, any changes are gone..

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more