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: It seems like AMD could have done a much better job than they did, though.
gollark: DRAM is what regular RAM sticks use: it uses a lot of capacitors to store data, which is cheap but high-latency to do anything with, and requires refreshing constantly. SRAM is just a bunch of transistors arranged to store data: it is very fast and low-power, but expensive because you need much more room for all the transistors.
gollark: They say they have 200 MB of SRAM on each (16nm) chip. That sounds hilariously expensive.
gollark: It's cool that they have a Vulkan-based version instead of just supporting CUDA only.
gollark: Swap on TPU *when*?

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.