There is a variety of GPS (Global Positioning System) hardware receivers supported in Arch Linux:
- Bluetooth GPS adapters
- USB GPS adapters (internal or external)
- WWAN-integrated adapters (some HP EliteBook modules for example)
- smartphones are able to relay GPS data over USB or Bluetooth with additional software
Usually a GPS device is presented as a serial device and the kernel uses a standard driver, but in some cases the drivers such asAUR or AUR need to be installed.
GPS does not have a very unified interfacing and configuration in Linux. The raw GPS data is printed on the serial device and programs interpret the location by themselves, occupying the device in the process. Sharing the GPS adapter to multiple applications is possible with.
GPSD is a deamon to query the serial GPS device and make its output available on a TCP server. It is the most standard GPS interface in Linux and GPS-aware applications usually support it.
ModemManager is some kind of a Linux WWAN modem support package which interfaces with NetworkManager. It also supports querying GPS coordinates from GPS-enabled WWAN cards and it even displays the location in the . The most important commands are:
View locationing capabilities
mmcli -m 0 --location-status
mmcli -m 0 --location-enable-gps-raw --location-enable-gps-nmea
watch mmcli -m 0 --location-get
mmcli -m 0 --location-disable-gps-raw --location-disable-gps-nmea