GPSDCTL(8)
π GPSDCTL π
okay bestie, you found the gpsdctl(8) page β it's part of the GPSD Documentation set, and it is lowkey one of the most "behind the scenes, doing the real work, no one claps for her" little tools in the whole family. she's not for you, she's not for me, she's for the machine. iconic behavior honestly. π
β¨ NAME β¨
gpsdctl β the tool that sends commands over to gpsd through its control socket π¦
πΈ SYNOPSIS πΈ
gpsdctl action device
π OPTIONS π
actionβ bestie this one is a choice, and it can only beaddorremove. and listen: if you ask for anaddand there's no daemon instance running yet? this program will just go ahead and launch one for you. main character energy, no hesitation. πdeviceβ this should be the pathname of a device. gpsd is gonna open it up to read sensor data from it. that's the whole point. π°οΈ
π«Ά DESCRIPTION π«Ά
so basically this is a tool for sending an instance of gpsd commands over its control socket, to add or remove devices from the daemon's device list. simple, right? β¨
and here's the tea: it is not intended to be called by users. nope. it's for the Linux hotplug system and similar facilities β the quiet little background gremlins that keep everything running while you're out here living your life. it's giving supporting cast that carries the entire show. π
π ENVIRONMENT π
two environment variables get interpreted. just two. count 'em. βοΈ
GPSD_SOCKETβ sets the location of the control socket. now if the effective user ID of this program is root, it usually defaults to/run/gpsd.sockβ although some systems may use the deprecated/var/run/gpsd.sockinstead. and non-root users? they get/tmp/gpsd.sock. iykyk. π₯GPSD_OPTIONSβ this one may be a list of options to be passed to gpsd when this tool launches it. and it defaults to an empty string. so, y'know, nothing unless you say something. π
β RETURN VALUES β
0β on success. slay. β1β if the action was unknown, or the write to the control socket failed. π
π§ SEE ALSO π§
gpsd(8), gpsctl(1), gps(1), libgps(3), libgpsmm(3), gpsprof(1), gpsfake(1).
go read the whole friend group, they're all so good. π
πΈ RESOURCES πΈ
Project web site: https://gpsd.io/ β the mothership. go say hi. π¦
π COPYING π
This file is Copyright 2013 by the GPSD project SPDX-License-Identifier: BSD-2-clause
π AUTHOR π
Eric S. Raymond
and that's the whole page, bestie!! π this was GPSD, Version 3.27.5, dated 2025-11-04 β write that down, it's important, periodt. β¨π«Ά
π¦ where this page comes from
- arch rolling: gpsd 3.27.5-1 Β· BSD
- fedora 44: gpsd 1:3.27.5-3.fc44 Β· BSD-2-Clause
- fedora 44: gpsd 1:3.27.5-5.fc44 Β· BSD-2-Clause
- nixos 26.05: gpsd 3.27.5
- nixpkgs unstable: gpsd 3.27.5
- opensuse-leap 16.0: gpsd 3.27.5-160000.1.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gpsd 3.27.5-160000.1.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gpsd 3.27.5-160000.1.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gpsd 3.27.5-160000.1.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms