GPS

There is a variety of Global Positioning System (GPS) 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

Drivers

Usually a GPS device is presented as a serial device and the kernel uses a standard driver, but in some cases the drivers such as mtkbabelAUR or mbm-gpsd-pl4nkton-gitAUR need to be installed.

Interfaces

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.

GPSD

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

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 modem-manager-gui. The most important commands are:

View locationing capabilities

mmcli -m 0 --location-status

Enable GPS

mmcli -m 0 --location-enable-gps-raw --location-enable-gps-nmea

Display location

watch mmcli -m 0 --location-get

Disable GPS

mmcli -m 0 --location-disable-gps-raw --location-disable-gps-nmea

Clients

The gpsd package provides cgps, a simple console-based client for showing the current GPS device status.

Time Synchronization

See Network Time Protocol daemon#Using ntpd with GPS

gollark: People who don't think things could be worse, or talk about how they couldn't be much worse, really underestimate maximal possible badness.
gollark: <@302628368044523520> That... is not talking about 4G/5G the telecommunications standards, but some sort of genetic thing... and I'm pretty sure people are aware that mmWave signals are absorbed by the air well. It doesn't matter.
gollark: <@302628368044523520> There are more coronavirus cases in population centers because that's where people are. There are 5G towers in population centers because that's where high enough densities of people to make 5G "useful" are. It's not complicated.
gollark: <@302628368044523520> I can't tell if you're being serious or not, but the article you linked actually says as much.
gollark: https://xkcd.com/1138

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.