GPS signal very bad

Just start your GPSInfo few time a day to let it “remember” where you are so the next fix is matter of seconds. But really not aplicable to my 10 mk3 as it does not struggle to get a fix but just getting it

You could try playing with gps.conf. I’ve had an improvement where the gps lock sometimes takes less than 20 seconds indoors in areas where it failed previously. Assuming GPS positioning and offline/online position locks are set in custom settings. Here is the config I used: gps.conf.
You could also try moving the phone, I’ve noticed that if the device is stationary(indoors) it will not get a lock. Here’s a demo for the improvement after changinggps.conf: https://imgur.com/a/EwW42uC

But isn’t gps.conf located in /vendor/etc/gps.conf and therefor only readable?
Or do you just replace the symlink in etc with your gps.conf?

I wasn’t aware there was one in /etc. I dont have it. I only have the /vendor/etc one. Mine was set to 644(image attached) so it is editable for root. Edit the one under /vendor/etc and please share if it made a difference.

I have a Pro1. And the whole vendor part is mounted read only. I’ve found no way to change that. It is not a permission problem. Permissions are the same as yours.

You are correct. I just checked my Pro1, /vendor is listed as a target as oppose to 10III, where /vendor/* are targets. Not sure what to advise at this point as I am sure there is a reason for it. You might want to check with @piggz, or maybe completely reconsider appending gps.conf until someone else proposes a fix. Mind you, the config i used has not been tested by others. The improved gps locking might as well be for other reasons.

I tested it on my pro1. There is a slight difference, but maybe I am biased. Here’s the pro1_conf for testing.

You’ll need to remount /vendor with read/write. To do so, run
mount -o rw,remount /dev/sdeXX
as root. To find out the partition name run lsblk or mount | grep vendor. I am assuming all pro1’s will have the same mountpoint name. Mine is /dev/sde18.

You’ll need to reboot your phone. Make sure to get the first gps lock after rebooting outdoors.

This goes without saying that you should follow the instructions at your own risk.

Thanx for these instructions. I’ll give it a try on the weekend and report here.

As promised, here is my report:
Mounting the partition anew, just like you described, worked well. So I was able to replace gps.conf with your version. The good thing: everything is still working. I’m still able to get a GPS signal. The bad thing is, that the gps.conf file of you doesn’t change anything regarding speed. It still takes sometime up to 20 minutes to get a fix - under clear sky. So the google AGPS Server is obviously not used. It doesn’t matter what is written in the gps.conf.
Anyway thanx for your try. I still can’t understand, why there is no proper solution there from Jolla.
My phone has lost one of it’s key features and I think I won’t get it back. Waiting for GPS for two or three minutes isn’t a problem for me. But waiting for ages IS.

Cheers for the report. Sorry it didn’t help out. I knew I was biased. Btw did you try version 2 from the same gist called pro1_gps_v2.conf. Worth a try. And sorry for the inconvenience.

Nothing to be sorry about! There is no inconvenience. At least none that you are responsible for.
I’ll give it a try the next days. I keep you updated.
Thanx for your efforts.

OK I tested version 2 as well. Same result. If it is a clear sky and there are no clouds, time to get a fix takes nearly 3 minutes. Which would be OK, if I got this under a cloudy sky and some higher buildings around, but under these conditions. It still takes over 10 minutes often up to 20 minutes. This means that AGPS is not used, because I always had a very good internet connection when I tested. I have the feeling, that the gps.conf file is simply ignored.
Thanx anyway. I think on the long time I just have two options. Buy another phone without keyboard (the Xperia 10 II of my girlfrind is MUCH better on getting a GPS fix) or to leave Sailfish after more than 10 Years. Both options are bad!

Bad options indeed. I hope you do stick around for an inevitable fix. You are correct in regards to agps.

I too left SFOS awhile back as a daily driver, but eventually came back to the Xperia 10 III after my phone died. I am reworking some of my old uncompleted projects for the pro1 and SFOS in general. I really hope you do remain within the community in an active role. I’ve been seeing multiple threads to the effect of finding an alternative to SFOS which is a shame.

Have you tried switching the SUPL PORT to 7276? Maybe TLS connection is already disabled in the FX Po like on the Xperia10iii. For 4G supl support also SUPL_VER has to be changed to 0x20000.

The GPS is unable to get lock, or excessively slow, when the signal is weak. Not very weak, just somewhat weak. Side-by-side the Android 10iii is far better.
The SFOS 10iii, has no trouble finding sats (GPSInfo), and does so as fast or faster than Android. But it is then unable or slow to turn that into position lock.
My XA2 was completely useless. This is not better, but inadequate as it is still unable to get lock at all, in places that Android phones (both Quallcomm and Mediatek) can lock within 30secs.
To me, this seems to be the same issue that the XA2 had (and not an X10iii specific one): There are enough “green” sats, but it takes a long time to lock or fails to lock.
It also appears that compared to Android, it may not cache the ephemeris/almanac, so it has to get them everytime it starts acquire. I have not noticed the issue that the XA2 had, of occaisionally starting up reporting a position that was a few weeks old.

My tests that I have posted were a bit varied:
first try and second try and third try

Note that the SUPL/MLS/AGPS suggestions are quite irrelevant to me. I require that phone to work in the bush where there is absolutely no cell coverage.
I’m also not convinced that they will make any difference, as the phone should know exactly where it was when the GPS last had lock (i.e. here at home) but this does not help it find lock next time I test 5 mins later, in the exact same place. The starting position, almanac and ephemeris should all still be valid.

edit: @vige requested the Android GPS app I used: HamGPS (play store)

4 Likes

Caveat: I now use LineageOS for microG. But this gps.conf has worked wonders on my XA2 H4113. It does not use SUPL.
I get a fix in 5 seconds when outside and usually within 30 seconds when indoors.

I tried this gps.conf on my XA2 Dual but in my case, the XA2 was not able to see any satellite.

1 Like

Have you tried clearing the AGPS data and rebooting and of course location turned on (duh!)? I have had repeated problems with the gps on my XA2 while using SFOS, though the suplpatcher hack somewhat alleviated it. When I changed to LineageOS, I also had some problems with delays in getting fixes though not as bad as on SFOS. After I started using this gps.conf, the gps now works the way I always hoped it would. If this isn’t the case for you or others in the same situation, then to me that suggests a problem with SFOS.

Just tried your gps.conf-config on my XperiaX that was affected by the same issue: no GPS satellites at all in view for weeks/months. At first, I simply replaced the file and it did not change anything. I rebooted once and changed Sailfsih GPS settings from the “customized” setting to “high precision” setting and then, within some few minutes satellites started appearing again! I set back to using “customized” and it still works. Thanks for sharing!

1 Like

Thanks. No, I haven’t. How can I achieve this?