GPSD not working

Getting your soundcard to work, using Debian on non-i386 hardware, etc

GPSD not working

Postby jeffry7 » 2020-04-04 00:21

So if I start gpsd manually with an argument to set the port to 8000, I can connect with cgps or xgps.

If I try to run by just plugging in the USB GPS and start the client nothing happens.

Apparently the USB insertion is detected and systemd does start GPSD, but for some reason I never get a fix. It even looks like there is a network connection as I can do an ss and see that cgps has the same port number as gpsd, i.e. they are connected to each other.

The only clearly odd thing is when I look at systemctl it looks like something is disabled.
Code: Select all
csg2@IronGiant:/etc/default$ systemctl status gpsd
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-04-03 19:57:48 CDT; 11min ago
  Process: 1386 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 1387 (gpsd)
    Tasks: 1 (limit: 4915)
   Memory: 1.2M
   CGroup: /system.slice/gpsd.service
           └─1387 /usr/sbin/gpsd

jeffry7
 
Posts: 24
Joined: 2017-12-03 16:41

Re: GPSD not working

Postby Head_on_a_Stick » 2020-04-04 11:57

jeffry7 wrote:The only clearly odd thing is when I look at systemctl it looks like something is disabled

Is the socket running?
Code: Select all
systemctl status gpsd.socket

I've never used that program so I don't know how it's supposed to work but have you tried enabling it manually?

Check the journal for clues:
Code: Select all
journalctl -u gpsd.service -u gpsd.socket

There's also an instance that's activated on a per-device basis:
Code: Select all
systemctl --all | grep gpsd@

But again, I don't know how that's supposed to work (sorry).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: GPSD not working

Postby arzgi » 2020-04-04 14:45

Don't know if related, I had this issue in the past http://forums.debian.net/viewtopic.php?f=5&t=138762
arzgi
 
Posts: 659
Joined: 2008-02-21 17:03
Location: Finland

Re: GPSD not working

Postby jeffry7 » 2020-04-04 16:08

Head_on_a_Stick wrote:
jeffry7 wrote:The only clearly odd thing is when I look at systemctl it looks like something is disabled

Is the socket running?
Code: Select all
systemctl status gpsd.socket

I've never used that program so I don't know how it's supposed to work but have you tried enabling it manually?

Check the journal for clues:
Code: Select all
journalctl -u gpsd.service -u gpsd.socket

There's also an instance that's activated on a per-device basis:
Code: Select all
systemctl --all | grep gpsd@

But again, I don't know how that's supposed to work (sorry).


gpsd.socket is all enabled

Code: Select all
csg2@IronGiant:/etc/default$ systemctl status gpsd.socket
● gpsd.socket - GPS (Global Positioning System) Daemon Sockets
   Loaded: loaded (/lib/systemd/system/gpsd.socket; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-04-03 19:50:46 CDT; 15h ago
   Listen: /var/run/gpsd.sock (Stream)
           [::1]:2947 (Stream)
           127.0.0.1:2947 (Stream)
    Tasks: 0 (limit: 4915)
   Memory: 44.0K
   CGroup: /system.slice/gpsd.socket


Enabling gpsd via systemctl did not allow the test client to connect.

Nothing special in the journal
Code: Select all
root@IronGiant:/etc/default# journalctl -u gpsd.service -u gpsd.socket
-- Logs begin at Fri 2020-04-03 19:50:36 CDT, end at Sat 2020-04-04 11:46:37 CDT. --
Apr 03 19:50:46 IronGiant systemd[1]: Listening on GPS (Global Positioning System) Daemon Sockets.
Apr 03 19:57:48 IronGiant systemd[1]: Starting GPS (Global Positioning System) Daemon...
Apr 03 19:57:48 IronGiant systemd[1]: Started GPS (Global Positioning System) Daemon.


It looks like everything is enabled now, but still no joy.

Code: Select all
root@IronGiant:/etc/default# systemctl -all | grep gpsd
  gpsd.service                                                                                           loaded    active   running   GPS (Global Positioning System) Daemon                                         
  gpsd.socket                                                                                            loaded    active   running   GPS (Global Positioning System) Daemon Sockets                                 
root@IronGiant:/etc/default#
jeffry7
 
Posts: 24
Joined: 2017-12-03 16:41

Re: GPSD not working

Postby Head_on_a_Stick » 2020-04-05 13:52

Did you check arzgi's link?
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Hardware

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable