[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GPSD 3.23~rc1 connection to GPS

From: Aranza Shaccid Leon
Subject: Re: GPSD 3.23~rc1 connection to GPS
Date: Fri, 6 Aug 2021 20:57:28 -0700

Hello and good afternoon!

I've attempted to open the file /etc/default/gpsd, but I'm afraid I don't have this.

root@clover-9676:~# cat /etc/default/gpsd
cat: /etc/default/gpsd: No such file or directory

I've also attempted the command gpsd -nND 4 /dev/gps0 which resulted in:

root@clover-9676:~#  gpsd -nND 4 /dev/gps0
gpsd:WARN: This system has a 32-bit time_t.  This gpsd will fail at 2038-01-19T03:14:07Z.
gpsd:INFO: launching (Version 3.23~rc1)
gpsd:ERROR: can't bind to IPv4 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!  Or systemd has the port?
gpsd:ERROR: can't bind to IPv6 port gpsd, Address already in use
gpsd:ERROR: maybe gpsd is already running!  Or systemd has the port?
gpsd:ERROR: command sockets creation failed, netlib errors -1, -1

Any I have also attempted the ps ax | sed -nE '1p;/gpsd/p' to check if gpsd is running.

root@clover-9676:~# ps ax | sed -nE '1p;/gpsd/p'
  912 ?        S<s    0:00 /usr/local/sbin/gpsd
  995 pts/0    S+     0:00 sed -nE 1p;/gpsd/p

Outside of still gpsd not being connected to the port /dev/gps0 is there any irregularity in how this program is running from these responses?

Thank you for your time and consideration. 

On Thu, Aug 5, 2021 at 12:31 PM Charles Curley <> wrote:
CAUTION: This email originated from outside of the PNW environment. Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Thu, 5 Aug 2021 13:08:52 -0700
Aranza Shaccid Leon <> wrote:

> If I may ask, I'm having a connection issue with my gps. I currently
> have it set up as /dev/gps0, but when I attempt either to set the
> DEVICES:"/dev/gps0" in the  /gpsd/gpsd3.23~rc1/packaging/dev
> directory (and open file or attempt gpsd
> -n /dev/gps0 in root or normal user, the gpsd does not connect to the
> port.

Don't set DEVICES in or /etc/default/gpsd. udev will
figure that out for you when you plug the beastie in, and provide it to
gpsd. Unless you are trying to get away from systemd.

My working /etc/default/gpsd looks like:

root@orca:~# cat /etc/default/gpsd
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.

# Other options you want to pass to gpsd

# Automatically hot add/remove USB GPS devices via gpsdctl

I have gpsd 3.22-4 on Debian 11 (Bullseye).

> + systemctl status gpsd.socket
> ● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
>    Loaded: loaded (/lib/systemd/system/gpsd.socket; disabled; vendor
> preset: enabled)
>    Active: active (running) since Thu 2021-08-05 06:44:57 BST; 12min
> ago

If I read this correctly, gpsd is already running from systemd. It
appears to be disabled, but loaded (i.e. running). You can confirm this
with "ps aux | grep gpsd". So it has already grabbed the port, which
prevents you from running another instance of gpsd. You should be able
to shut it down with:

systemctl stop gpsd.socket gpsd;systemctl disable gpsd.socket gpsd

You may also need to reboot to make that effective.

Does anybody read signatures any more?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]