[WIP][BRAINSTORM]Tweaking gps receiver

maludroid

Senior Member
Jan 5, 2011
272
65
0
Hi

I was taking a closer look at gps settings of our phone, and found that different roms differ regarding files:
/system/etc/gps.conf
and
/system/etc/gps_brcm_conf.xml

I thought of a brainstorming which would result in best settings compilation.

The strange thing is that gps.conf doesn't appear on any of nandroid backups I've seen (either V10x or V20x), it's only present in Custom ROMs and CM7.

I gathered all files I thought can be usefull into one zip, I count on skilled people who can analyze/test it for conclusions.

gps.conf files are taken from: CM7, LG p500, Zeus 1, Zeus 3
gps_brcm_conf.xml files are taken from: CM7, V10N, V20N

Here is the zip: http://bit.ly/yeoMAi

The two most notable differences are:

gps_brcm_conf.xml: CM7 uses 115200 bauds, while the others 460800 (I assume 460800 is right)

gps.conf: LG p500 uses xtra1.gpsonextra.net as NTP_SERVER, while the others use *.pool.ntp.org servers.
 
Last edited:
  • Like
Reactions: Paracetamol100

mullarameez

Senior Member
Nov 5, 2011
170
72
0
Pune
Bought new optimus black yesterday for dad and its gps is working awesome in default settings i.e without putting gps.conf file or modification in hidden menu. so i took my old OB to LG customer care, so they told me that they have changed the GPS hardware in new devices manufactured after November 2011. But its not possible to make those changes in old OB :-(
 

pabgar

Senior Member
Jul 17, 2011
751
229
73
Warsaw
Afer few test, it seems to me , that gps.conf is not present and not used by GB in Black in stock firmware.

I noticed a strange thing:
gps_brcm_conf in nandroid backup provided by N00BY ( 20N Lite provided by Redy 2006) is much larger ( 4 times ) then gps_brcm_conf which comes in i.e. stock rom for Poland and they really differ in many points
 

Attachments

Last edited:

maludroid

Senior Member
Jan 5, 2011
272
65
0
Did you read my post and downloaded zip file? Everything you have said and attached is already there.
Larger xml file is from Froyo, smaller is from Gingerbread.

Wysłane z mojego świata do Twojego przez dziurę w czasoprzestrzeni
 
Last edited:

mdfaisal

Senior Member
Feb 9, 2012
131
51
0
Jakarta Occupation:Writer
Hi I just got my GPS fix...
about 3 days ago I was hopeless with OB's GPS.
Because if I get lost, Its faster to ask somebody than waiting my gps locked :D
sound so familiar heh...

luckly I read this dude thread
http://forum.xda-developers.com/showthread.php?p=11342772#post11342772

and this is what his gps.conf look like (for asia), he has 8 diffrent files for diffrent continent/country:

NTP_SERVER=0.asia.pool.ntp.org
NTP_SERVER=1.asia.pool.ntp.org
NTP_SERVER=2.asia.pool.ntp.org
NTP_SERVER=3.asia.pool.ntp.org
NTP_SERVER=ph.pool.ntp.org
NTP_SERVER=my.pool.ntp.org
NTP_SERVER=tr.pool.ntp.org
NTP_SERVER=sg.pool.ntp.org
NTP_SERVER=in.pool.ntp.org
NTP_SERVER=hk.pool.ntp.org
NTP_SERVER=ae.pool.ntp.org
NTP_SERVER=jp.pool.ntp.org
NTP_SERVER=bd.pool.ntp.org
NTP_SERVER=il.pool.ntp.org
NTP_SERVER=kr.pool.ntp.org
NTP_SERVER=th.pool.ntp.org
NTP_SERVER=ir.pool.ntp.org
NTP_SERVER=tw.pool.ntp.org
NTP_SERVER=cn.pool.ntp.org
NTP_SERVER=id.pool.ntp.org
NTP_SERVER=vn.pool.ntp.org
NTP_SERVER=pk.pool.ntp.org
NTP_SERVER=om.pool.ntp.org
NTP_SERVER=uz.pool.ntp.org
NTP_SERVER=lk.pool.ntp.org
NTP_SERVER=kg.pool.ntp.org
NTP_SERVER=kh.pool.ntp.org
NTP_SERVER=qa.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
INTERMEDIATE_POS=1
C2K_HOST=c2k.pde.com
C2K_PORT=1234
SUPL_HOST=FQDN
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
ACCURACY_THRES=5000
CURRENT_CARRIER=common
DEFAULT_USER_PLANE=TRUE
REPORT_POSITION_USE_SUPL_REFLOC=1
and I apply:
QBANIN GPSfix
SuplRootCert
- all from his thread

then voila... running gps test only take 10 seconds for first lock...

I got some screen-freezes while using google maps, but after that it run smooth...

I Think this is the best gps.conf file I ever had :D
 
Last edited: