There is (also) something in the /home directory.
When I rsync /home from one device to another (exact same model), which is HW fixed and well working, the fix never happen again.
A number of satellites is shown but the used ones always stay at 0.
Unfortunately, sat. positions seem to match:
Settings on High accuracy
EDIT: Left:High accuracy Right Custom-On-On-Off.
Devices offline (no Data, No Wifi)
Left: Gets a fix in 30s. - 1 minute
Right: Never gets fix
Almanac is right
Ephemerides are right
Maybe time is wrong?
Or maybe it’s just a bug in the receiver firmware?
Time was set automatically yesterday by wifi.
Verified today with ntp set PC: seems ok by looking at the seconds but I don’t know what is the tolerance.
Shouldn’t the firmwares on both devices be the same? Having both had android 9 and flashed with the same SFOS?
Counter-intuitive: High accuracy setting allows fix to happen, even fully offline.
I thought it was a license question (post 457)
But it’s something else:
On the ephemeris test above (pictures), I made an error:
The blocking device was in fact set on Custom-On-On-Off. No fix since days on this one (Since my /home was restored). Moz licence already accepted.
I rebooted: nothing.
I set the settings on “high accuracy”, rebooted, → fix in < 2minutes (still offline)
Since more than a week, I made all my tests with Custom-On-On-Off.
Seems logical, being offline.
Is instead “High Accuracy” the good setting to bet on?
Yes, ok. There is a real software issue.
As reported more in details in the HW tread.
Hardware repair gives a better reception, for sure (more sat. signals, higher quality).
As I began tu use my daily phone’s GPS in real life, it needed yesterday > 20 minutes in perfect conditions to get a fix.
@Jolla, we can now be sure that there is something to find on the software side.
Hardware cannot be put in cause alone.
EDIT February 10:
Today 20 min. test, same window, clear sky, custom On On Off, Jolla positioning pack.
* = HW reapired.
Devices 1* & 4, SingleSIM, 4.3.0.12 licence:
fix in < 1 minute
Devices 2* and 3, DualSIM, 4.3.0.12 free:
No fix within 20 minutes
Like said previously several times by other users,
Time to fix seems to increase as the OS installation gets older.
The fix time difference between Single and Dual devices is surprising.
First time I note this difference.
I freshly flashed my XA2 Dual Sim, Paid licence - no GPS fix after hours…
And, all these problems started as far as I remember with Sailfish 4.
I tested my XA2 DualSim (H4113) and I got position fix after my phone found four Beidou satellites (SV ID 2xx).
24 Satellites (GPS and GLONASS) wasn’t enought.
I just speculate that injected outdated XTRA data or initial position. May broke GPS and GLONASS position calculation on GNSS receiver, but it doesn’t have effect with Beidou.
Hey as I was reading post I found that @nekron had a solution that works for some. Can someone please write manual step by step how to apply that? As I mentioned earlier working GPS was the thing I needed the most. So when it stopped working I haven’t really go deep into sailfish so I’m kinda noob. Please I’m tierd with android and want my SFOS phone working as I pay for it and OS too.
Please help
Did not Jolla came up with something yet?
???
nekron has already written a more than detailed guide and pointed to that: Nekron City / suplpatcher · GitLab
Oooops, sorry, I did not notice that, thanks for reply
I also ended up using @nekron excellent lifeline.
Although it really hurts depending on Goo/pple.
Correct me if I’m wrong:
Good thing, you (I) don’t need to keep the “high precision” setting nor data connection all the time.
Google supl is (sometimes) needed for the first fix but then, no need any more.
Thanks @nekron
What did I did wrong?
- I copied
suplpatch
to my XA2 - Gave it chmod +x suplpatch
- ./suplpatch --disable
- Changed /etc/gps.conf with:
FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
5. Rebooted
6. And added 127.0.0.1 location.services.mozilla.com
to /etc/hosts
Nothing has changed
@flypig can we expect official Jolla Fix anytime soon? My phone and Paid SFOS still collecting dust as gps is essential
Seems correct.
Did you change the settings to “High-accuracy positioning”, disable wifi and enable Data connection?
High-accuracy positioning on, wifi disabled, data connection with full tower reception on 4G under clear sky…
Getting like 0/2 satelites
How long did you wait for this result?
Did you reboot after changing the settings?
I rebooted the phone several times. I tried few times to get a fix. If I left the phone long enough it will find like 20-25 satelites but using none of them. Nothing has changed.
Any Ideas? Factory reset and try to apply patch once again?
I even took apart my phone to clean it and check all the conections. Everything seems fine. Right now I’m waiting for glue to hold up. Gonna do some more tests probably today.
Edit 1: Can someone upload /etc/hosts orginal file content? I didn’t make a backup
Edit 2: Option 2: Upload additional ROOT certificates gave me like 40 satelites instantly but no fix whatsoever
I have no idea why it doesn’t get a fix.
About glue, I’d recommend you not to glue it too strongly.
You might want to re-open the phone to change the battery or fix something else.
For me, the good glue for the cap was polyurethane/“contact glue”, the one you put on both sides and let dry before to assemble. I scratched the plastic side before tu en-glue to bring some attach. This glue also allows you to re-open it later.
Here is the original gps.conf
XTRA_SERVER_QUERY (1=on, 0=off)
If XTRA_SERVER_QUERY is on, the XTRA_SERVERs listed
below will be ignored, and instead the servers will
be queried from the modem.
XTRA_SERVER_QUERY=0
XTRA_SERVERs below are used only if XTRA_SERVER_QUERY
is off.
XTRA_SERVER_1=http://xtrapath1.izatcloud.net/xtra2.bin
XTRA_SERVER_2=http://xtrapath2.izatcloud.net/xtra2.bin
XTRA_SERVER_3=http://xtrapath3.izatcloud.net/xtra2.bin
Error Estimate
_SET = 1
_CLEAR = 0
ERR_ESTIMATE=0
NTP Server
NTP_SERVER=time.gpsonextra.net
Asia
NTP_SERVER=asia.pool.ntp.org
Europe
NTP_SERVER=europe.pool.ntp.org
North America
NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER = time.google.com
If NTP_SERVER is commented NTP_SERVER=time.izatcloud.net is used
DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
4 - Debug, 5 - Verbose
If DEBUG_LEVEL is commented, Android’s logging levels will be used
DEBUG_LEVEL = 2
Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
GPS Capabilities bit mask
SCHEDULING = 0x01
MSB = 0x02
MSA = 0x04
ON_DEMAND_TIME = 0x10
GEOFENCE = 0x20
default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING | GEOFENCE
CAPABILITIES=0x37
Accuracy threshold for intermediate positions
less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=5000
################################
AGPS server settings
################################
Bitmask of slots that are available
for write/install to, where 1s indicate writable,
and the default value is 0 where no slots
are writable. For example, AGPS_CERT_WRITABLE_MASK
of b1000001010 makes 3 slots available
and the remaining 7 slots unwritable.
AGPS_CERT_WRITABLE_MASK=0
FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.sonyericsson.com
SUPL_PORT=7275
################################
EXTRA SETTINGS
################################
NMEA provider (1=Modem Processor, 0=Application Processor)
NMEA_PROVIDER=0
Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)
SGLTE_TARGET=0
##################################################
Select technology for LPPe Control Plane
##################################################
0x1: DBH for LPPe CP
0x2: WLAN AP Measurements for LPPe CP
LPPE_CP_TECHNOLOGY = 0
##################################################
Select technology for LPPe User Plane
##################################################
0x1: DBH for LPPe UP
0x2: WLAN AP Measurements for LPPe UP
LPPE_UP_TECHNOLOGY = 0
##################################################
AGPS_CONFIG_INJECT
##################################################
enable/disable injection of AGPS configurations:
SUPL_VER
SUPL_HOST
SUPL_PORT
SUPL_MODE
SUPL_ES
C2K_HOST
C2K_PORT
LPP_PROFILE
A_GLONASS_POS_PROTOCOL_SELECT
USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL
GPS_LOCK
0: disable
1: enable
AGPS_CONFIG_INJECT = 1
AP Coarse Timestamp Uncertainty
##################################################
default : 10
or as per clock uncertainty of product
AP_TIMESTAMP_UNCERTAINTY = 10
#####################################
#DR_SYNC Pulse Availability
#####################################
0 : DR_SYNC pulse not available (default)
1 : DR_SYNC pulse available
DR_SYNC_ENABLED = 0
#####################################
#PPS Device name
#####################################
PPS_DEVICENAME = /dev/pps0
#####################################
#AP Clock Accuracy
#####################################
AP_CLOCK_PPM = 100
#####################################
#MAX ms difference to detect missing pulse
#####################################
MISSING_PULSE_TIME_DELTA = 900
#####################################
#Propagation time uncertainty
#####################################
PROPAGATION_TIME_UNCERTAINTY = 1
Other ones than the one provided by Suplpatcher?