/etc/udev/rules.d/99gpsd I realized I cannot start gpsd sometimes. Inspecting the logs revealed: Jun 23 16:48:45 vostro kernel: usb 3-2: new full-speed USB device number 8 using xhci_hcd Jun 23 16:48:45 vostro kernel: usb 3-2: New USB device found, idVendor=1546, idProduct=01a8 Jun 23 16:48:45 vostro kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Jun 23 16:48:45 vostro kernel: usb 3-2: Product: u-blox GNSS receiver Jun 23 16:48:45 vostro kernel: usb 3-2: Manufacturer: u-blox AG - www.u-blox.com Jun 23 16:48:46 vostro kernel: cdc_acm 3-2:1.0: ttyACM0: USB ACM device Jun 23 16:48:56 vostro gpsd[11361]: gpsd:INFO: launching (Version 3.18~dev) Jun 23 16:48:56 vostro gpsd[11361]: gpsd:IO: opening IPv4 socket Jun 23 16:48:56 vostro gpsd[11361]: gpsd:INFO: listening on port gpsd Jun 23 16:48:56 vostro gpsd[11361]: gpsd:PROG: successfully connected to the DBUS system bus Jun 23 16:48:56 vostro gpsd[11361]: gpsd:PROG: shmget(0x47505344, 9008, 0666) for SHM export succeeded Jun 23 16:48:56 vostro gpsd[11361]: gpsd:PROG: shmat() for SHM export succeeded, segment 106627116 Jun 23 16:48:56 vostro gpsd[11361]: gpsd:INFO: stashing device /dev/ttyACM0 at slot 0 Jun 23 16:48:56 vostro gpsd[11361]: gpsd:PROG: no /etc/gpsd/device-hook present, skipped running ACTIVATE hook Jun 23 16:48:56 vostro gpsd[11361]: gpsd:INFO: SER: opening GPS data source type 3 at '/dev/ttyACM0' Jun 23 16:48:56 vostro gpsd[11361]: gpsd:ERROR: SER: /dev/ttyACM0 already opened by another process Jun 23 16:48:56 vostro gpsd[11361]: gpsd:ERROR: initial GPS device /dev/ttyACM0 open failed Jun 23 16:48:56 vostro gpsd[11361]: gpsd:ERROR: can't run with neither control socket nor devices open Jun 23 16:49:06 vostro ModemManager[6269]: <info> Creating modem with plugin 'Generic' and '1' ports Jun 23 16:49:06 vostro ModemManager[6269]: <warn> Could not grab port (tty/ttyACM0): 'Cannot add port 'tty/ttyACM0', unhandled serial type' Jun 23 16:49:06 vostro ModemManager[6269]: <warn> Couldn't create modem for device at '/sys/devices/pci0000:00/0000:00:1c.4/0000:0b:00.0/usb3/3 -2': Failed to find primary AT port The solution is: # lsusb [find your USB device ID, create an udev file with correct USB ID, like example below] # cat /etc/udev/rules.d/99gpsd.rules ATTRS{idVendor}=="1546" ATTRS{idProduct}=="01a8", ENV{ID_MM_DEVICE_IGNORE}="1" # udevadm control --reload-rules #
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04f90be30d7dd8beca5fb491dc2a79fd81ed7000 commit 04f90be30d7dd8beca5fb491dc2a79fd81ed7000 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-28 02:47:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-28 02:58:23 +0000 sci-geosciences/gpsd: add 3.24 Closes: https://bugs.gentoo.org/658836 Closes: https://bugs.gentoo.org/796476 Closes: https://bugs.gentoo.org/833128 Signed-off-by: Sam James <sam@gentoo.org> sci-geosciences/gpsd/Manifest | 1 + sci-geosciences/gpsd/gpsd-3.24.ebuild | 227 ++++++++++++++++++++++++++++++++++ sci-geosciences/gpsd/gpsd-9999.ebuild | 23 +++- 3 files changed, 247 insertions(+), 4 deletions(-)