Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
-r0bin-
Old
(Last edited by -r0bin-; 26th August 2011 at 05:40 PM.)
#1  
Senior Member - OP
Thanks Meter 512
Posts: 444
Join Date: Nov 2010
Default [TUTORIAL] How to change GPS zone for faster GPS

Guys, something i just found

instead of having to mess with gps.conf and upload and so on, here is a very easy way for all of you to update your GPS zone.

just edit your STARTUP.TXT file:
Quote:
set mtype 3162

set ramaddr 0x00200000
set ramsize 0x01000000

set kernel zImage

set initrd initrd.gz
set initrd_offset 0x00A00000

set cmdline "rw console=ram1 gps_zone=fr"

boot
change this field with your country:
it for italy
fr for france
de for germany, etc etc
if you don' know your country code, check here:
http://www.pool.ntp.org/zone/@
and click on your continent and country.

note: this trick is compatible with r134 and r167 (initrd.gz)

for those who wants to understand:
this tells the system to update the ntp server inside your gps.conf
ntp is a remote time server, your gps will receive time from different satellites, and will compare with the time he has in order to determine position.
having a fast responsive NTP server ensures fast GPS positioning and better performances.
The Following 4 Users Say Thank You to -r0bin- For This Useful Post: [ Click to Expand ]
 
BATFINK74
Old
#2  
Senior Member
Thanks Meter 37
Posts: 235
Join Date: Feb 2011
Location: cardiff
ho r0bin is it compatible with r169?

thanks
 
iPlasm
Old
(Last edited by iPlasm; 28th August 2011 at 01:31 AM.)
#3  
iPlasm's Avatar
Senior Member
Thanks Meter 377
Posts: 613
Join Date: Feb 2011
Of course it must be compatible..

Also I think it works with the oldest htc mini andoird vension (when the first GPS fixed)
Phonerty CyanogenMod 9.1 - My First Android NAND ROM for HTC HD Mini
A Moral, An Informations, Macintosh & iOS, Technologies
 
15MA1L
Old
#4  
Senior Member
Thanks Meter 111
Posts: 269
Join Date: May 2010
... in r169 you just have to change 2 letters
 
BATFINK74
Old
#5  
Senior Member
Thanks Meter 37
Posts: 235
Join Date: Feb 2011
Location: cardiff
Quote:
Originally Posted by 15MA1L View Post
... in r169 you just have to change 2 letters
yeah mate changed UK rofl
 
-r0bin-
Old
#6  
Senior Member - OP
Thanks Meter 512
Posts: 444
Join Date: Nov 2010
yes its compatible r169
you can check if it worked with astro app:
open /system/etc/gps.conf
and see the first line with NTP server: it should be updated
in my example you should have something like "fr.pool.ntp.org"
 
munjeni
Old
(Last edited by munjeni; 28th August 2011 at 10:48 AM.)
#7  
munjeni's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 8240
Posts: 3,317
Join Date: Jun 2011

 
DONATE TO ME
Hmm it's good idea but maybe... what about domains org, net ...etc
 
-r0bin-
Old
#8  
Senior Member - OP
Thanks Meter 512
Posts: 444
Join Date: Nov 2010
Quote:
Originally Posted by munjeni View Post
Hmm it's good idea but maybe... what about domains org, net ...etc
its not my idea, this trick exists since few releases and i wasnt aware of it until i read the "init" script of our initrd.gz
it will always use the ntp servers from pool.ntp.org, like the stock android builds, so you dont have to worry about this.
just try.
for serbia, you should use gps_zone=rs
as defined here: http://www.pool.ntp.org/zone/europe
 
munjeni
Old
#9  
munjeni's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 8240
Posts: 3,317
Join Date: Jun 2011

 
DONATE TO ME
yes it is good and working trick thanks

 
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

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more

Gear Up Because it’s Time to Save Earth

*Cue Dramatic Music*Put on your red and blue latex overalls and cape because it’s time to … more

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more