GPS stopped working

INTERMEDIATE_POS=1
ACCURACY_THRES=0

Yes, discovered exactly the same recently on X10III, just didn’t have time to post.

F.Y.I: On the upcoming 5.0.0 release this file will be in /vendor/etc/gps.conf.

3 Likes

Is this new on 4.6? I can’t find this file in Xperia 10 / 4.5.0.24 .
Installed positioning apps are GPSInfo and OSM Scout.

No, on my XA2 it’s already a symlink to /vendor/etc/gps.conf and that’s what’s picked up by geoclue-providers-hybris.

Looks like this file is some legacy stuff that I’m used to. You don’t have it because your phone and installation are newer. Use /vendor/etc/gps.conf which will be the main file in the next releases too.

1 Like

Now I changed in /vendor/etc/gps.conf:

NTP_SERVER=europe.pool.ntp.org
# NTP_SERVER = time.google.com
NMEA_PROVIDER=1

Settings is GPS only
Position fix after 17 seconds

edit: testing now
INTERMEDIATE_POS=1
and will report what comes out. edit: DON’T DO THIS!

edit: next morning, GPS only, Internet off:
Time to first fix: 36 sec
Horizontal accuracy: 3,22m
Vertical accuracy: 3m
Satellites in use/in sight: 16/32

Display reacts exactly and quickly on movement (walking around in the garden), next I’ll test in car and report.

edit: NTP_SERVER = ptbtime1.ptb.de

Dumb question, but how do I edit the gps.conf on the phone (from Terminal for sure, so what’s the needed command to open, edit and save the file? )?
(Didn’t find it in the forum so fast, and nano like on Ubuntu doesn’t work…)

Edit: found it…

1 Like

I always work from computer, connected by WLAN / SSH. So I have big screen and keyboard, that’s much more comfortable than typing on the phone screen, but this also should work.

Location service (in settings) should be off and related apps (GPSInfo, OSM Scout, …) closed.

On terminal (cli), first become devel-su, then do the following commands:
cp /vendor/etc/gps.conf /vendor/etc/gps.conf.bak to make a backup,
vi /vendor/etc/gps.conf to open config file in editor,
then do the changes, save and exit editor.

Then turn on location service in settings and check with GPSInfo, what it does now. No reboot needed.