Hi Bernd,

TL;DR: modemmanager had /dev/ttyS1 open and gpsd had no access to the
device (was not in the dialout group).

(hopefully google picks this up)

> control: severity 785263 normal
> control: tags 785263 unreproducible moreinfo
> > gpsd in jessie no longer works for serial devices.
> > In /etc/default/gpsd I usually configure /dev/ttyS1 with the -n flag but 
> > since jessie this is ignored.
> > The device is not openend at start, and also not if I explicitly start a 
> > client (e.g. gpsmon).
> > Tried the version of experimental as well but that version doesn't work 
> > either.
> 
> What you are seing is probably a permission issue. You might want to check if
> the user gpsd is able to access that device.

Indeed gpsd was not in the group with access to the tty.
But after changing that it still won't access it:

root@neo:/home/folkert# ls -la /dev/ttyS1 
crw-rw---- 1 root dialout 4, 65 May  7 22:53 /dev/ttyS1
root@neo:/home/folkert# grep gpsd /etc/group
dialout:x:20:nut,gpsd
root@neo:/home/folkert# ps -deaf | grep gpsd
gpsd     14358     1  0 12:53 ?        00:00:00 /usr/sbin/gpsd -N -n /dev/ttyS1
root     14406 13042  0 12:54 pts/2    00:00:00 grep gpsd
root@neo:/home/folkert# lsof -n | grep gpsd | grep tty
root@neo:/home/folkert# 

> Also check if something is being reported in the logs.

Then I did that and:

May 17 12:53:38 neo gpsd[14358]: gpsd:ERROR: /dev/ttyS1 already opened
by another process
May 17 12:53:38 neo gpsd[14358]: gpsd:ERROR: initial GPS device
/dev/ttyS1 open failed
root@neo:/home/folkert# 
root@neo:/home/folkert# lsof -n | grep ttyS
ModemMana  5431               root   11u      CHR               4,65 0t0       
1114 /dev/ttyS1
gmain      5431  5554         root   11u      CHR               4,65 0t0       
1114 /dev/ttyS1
gdbus      5431  5654         root   11u      CHR               4,65 0t0       
1114 /dev/ttyS1

...again this not-so-nice modemmanager has bitten me. This is not the
first time (in other not related (arduino) cases). Sigh.

Problem solved!


Could've figured this out myself probably but I'm still a bit scared of
systemd.


Thanks,

Folkert van Heusden

-- 
MultiTail is a versatile tool for watching logfiles and output of
commands. Filtering, coloring, merging, diff-view, etc.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to