GPS: Difference between revisions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
<code>mmcli -m any --location-enable-gps-raw</code> | <code>mmcli -m any --location-enable-gps-raw</code> | ||
== GPS helper daemons == | |||
== GeoClue == | === GeoClue === | ||
Many apps (ie. osmin, Gnome Maps) use geoclue to gather location info. | Many apps (ie. osmin, Gnome Maps) use geoclue to gather location info. | ||
<code>/usr/libexec/geoclue-2.0/demos/agent</code> | <code>/usr/libexec/geoclue-2.0/demos/agent</code> | ||
=== GPSD === | |||
According to [https://gitlab.com/postmarketOS/pmaports/-/issues/2340 this issue], GPSD is not used by GNOME and KDE software stacks, and is effectively not necessary to work anymore. You may want to use GeoClue and NetworkManager+ModemManager stack instead. | |||
== Troubleshooting == | == Troubleshooting == |
Revision as of 19:33, 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
GPS helper daemons
GeoClue
Many apps (ie. osmin, Gnome Maps) use geoclue to gather location info.
/usr/libexec/geoclue-2.0/demos/agent
GPSD
According to this issue, GPSD is not used by GNOME and KDE software stacks, and is effectively not necessary to work anymore. You may want to use GeoClue and NetworkManager+ModemManager stack instead.
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.