GPS: Difference between revisions
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
=== Check if your device requires SIM for GPS === | === Check if your device requires SIM for GPS === | ||
Keep in mind that for some (many?) devices, GPS only works when a sim card is inserted. Such information is hopefully available in your device's page. | Keep in mind that for some (many?) devices, GPS only works when a sim card is inserted. Such information is hopefully available in your device's page. | ||
[[Category:Troubleshooting]] |
Revision as of 13:15, 27 October 2023
This page is intended to help with troubleshooting GPS issues.
How to check if GPS works
Using ModemManager's CLI
mmcli -m any --location-get
If you get no output, then you did not get a fix yet.
Using Satellite
Satellite is a nice GUI app for testing GPS connectivity live.
AGPS
Normally, information about which satellites are where to expect (satellite almanac of orbit) is retrieved from the GPS satellites themselves and that can take at least roughly 12 min with a good signal.
That's where A-GPS (assisted GPS) steps in, by downloading this data from the Internet instead.
Enabling GPS manually in ModemManager
(TODO - is this needed? For my device with working GPS support, these steps were not necessary - if you know more about it, please verify and update this section)
mmcli -m any --location-enable-gps-nmea
mmcli -m any --location-enable-gps-raw
GeoClue
Many apps (ie. osmin, Gnome Maps) use geoclue to gather location info.
/usr/libexec/geoclue-2.0/demos/agent
Troubleshooting
Check if SIM card has carrier configuration for AGPS
The carrier config selected by ModemManager (mmcli -m any | grep 'carrier config'
) also contains configuration for A-GPS. Whether the config is complete in that regard can be checked with
mmcli -m any --location-status
as it should contain assistance servers. If not, you might experience not continuous and only infrequent GPS fixes and other problems regarding GPS.
(TODO - what can be done then? injecting AGPS data manually?)
See this comment thread for more details.
Check if your device requires SIM for GPS
Keep in mind that for some (many?) devices, GPS only works when a sim card is inserted. Such information is hopefully available in your device's page.