WARNING: Please run as root WARNING: Running under sudo confuses the results. + id uid=0(root) gid=0(root) groups=0(root),117(lpadmin) + uname -a Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux + cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" + command -v gpsd /usr/sbin/gpsd + gpsd -V gpsd: 3.22 (revision 3.22) + gpsd -h + grep ^#.*enabled # Socket export enabled. # Shared memory export enabled. # DBUS export enabled # Control socket for hotplug notifications enabled # Magic Hat enabled # systemd socket activation enabled + command -v python /usr/bin/python + python -c import gps; print(gps.__version__) 3.22 + command -v sockstat + command -v lsof /usr/bin/lsof + lsof -iTCP:2947 -s TCP:LISTEN COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME systemd 1 root 58u IPv6 13632 0t0 TCP localhost:gpsd (LISTEN) systemd 1 root 59u IPv4 11708 0t0 TCP *:gpsd (LISTEN) gpsd 586 gpsd 4u IPv6 13632 0t0 TCP localhost:gpsd (LISTEN) gpsd 586 gpsd 5u IPv4 11708 0t0 TCP *:gpsd (LISTEN) + + lsofsed -c -nE gpsd 1p;/CHR|LISTEN/p lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME gpsd 586 gpsd 0u CHR 1,3 0t0 4 /dev/null gpsd 586 gpsd 1u CHR 1,3 0t0 4 /dev/null gpsd 586 gpsd 2u CHR 1,3 0t0 4 /dev/null gpsd 586 gpsd 4u IPv6 13632 0t0 TCP localhost:gpsd (LISTEN) gpsd 586 gpsd 5u IPv4 11708 0t0 TCP *:gpsd (LISTEN) gpsd 586 gpsd 8u CHR 188,0 0t0 272 /dev/ttyUSB0 gpsdebugi 1258 root 0u CHR 136,0 0t0 3 /dev/pts/0 + ps ax PID TTY STAT TIME COMMAND 1 ? Ss 0:03 /sbin/init splash 2 ? S 0:00 [kthreadd] 3 ? I< 0:00 [rcu_gp] 4 ? I< 0:00 [rcu_par_gp] 5 ? I< 0:00 [slub_flushwq] 6 ? I< 0:00 [netns] 7 ? I 0:00 [kworker/0:0-events] 8 ? I< 0:00 [kworker/0:0H-mmc_complete] 9 ? I 0:01 [kworker/u8:0-events_unbound] 10 ? I< 0:00 [mm_percpu_wq] 11 ? I 0:00 [rcu_tasks_rude_kthread] 12 ? I 0:00 [rcu_tasks_trace_kthread] 13 ? S 0:00 [ksoftirqd/0] 14 ? I 0:00 [rcu_sched] 15 ? S 0:00 [migration/0] 16 ? S 0:00 [cpuhp/0] 17 ? S 0:00 [cpuhp/1] 18 ? S 0:01 [migration/1] 19 ? S 0:00 [ksoftirqd/1] 20 ? I 0:00 [kworker/1:0-events] 21 ? I< 0:00 [kworker/1:0H-kblockd] 22 ? S 0:00 [cpuhp/2] 23 ? S 0:01 [migration/2] 24 ? S 0:00 [ksoftirqd/2] 25 ? I 0:00 [kworker/2:0-events] 26 ? I< 0:00 [kworker/2:0H-events_highpri] 27 ? S 0:00 [cpuhp/3] 28 ? S 0:01 [migration/3] 29 ? S 0:00 [ksoftirqd/3] 30 ? I 0:00 [kworker/3:0-events] 31 ? I< 0:00 [kworker/3:0H-kblockd] 32 ? S 0:00 [kdevtmpfs] 33 ? I< 0:00 [inet_frag_wq] 34 ? I 0:00 [kworker/0:1-events] 35 ? S 0:00 [kauditd] 36 ? S 0:00 [khungtaskd] 37 ? I 0:00 [kworker/u8:1-events_unbound] 38 ? S 0:00 [oom_reaper] 39 ? I< 0:00 [writeback] 40 ? S 0:00 [kcompactd0] 41 ? I< 0:00 [kintegrityd] 42 ? I< 0:00 [kblockd] 43 ? I< 0:00 [blkcg_punt_bio] 44 ? S 0:00 [watchdogd] 45 ? I 0:00 [kworker/u8:2-events_unbound] 46 ? I 0:00 [kworker/1:1-events_freezable] 47 ? I 0:00 [kworker/3:1-cgroup_destroy] 48 ? I 0:00 [kworker/2:1-events] 49 ? I< 0:00 [kworker/2:1H-kblockd] 50 ? I< 0:00 [rpciod] 51 ? I< 0:00 [xprtiod] 52 ? S 0:00 [kswapd0] 53 ? I< 0:00 [nfsiod] 55 ? I 0:00 [kworker/0:2-events] 58 ? S 0:00 [hwrng] 59 ? I< 0:00 [iscsi_conn_clea] 60 ? I< 0:00 [dwc_otg] 61 ? I< 0:00 [DWC Notificatio] 62 ? S< 0:00 [vchiq-slot/0] 63 ? S< 0:00 [vchiq-recy/0] 64 ? S< 0:00 [vchiq-sync/0] 65 ? I< 0:00 [zswap-shrink] 66 ? I< 0:00 [kworker/u9:0-hci0] 86 ? I 0:00 [kworker/1:2-events] 87 ? I 0:00 [kworker/1:3-events] 88 ? I< 0:00 [mmc_complete] 89 ? I< 0:00 [kworker/1:1H-kblockd] 90 ? I< 0:00 [kworker/0:1H-mmc_complete] 91 ? I< 0:00 [kworker/2:2H-kblockd] 92 ? S 0:00 [jbd2/mmcblk0p2-8] 93 ? I< 0:00 [ext4-rsv-conver] 94 ? I< 0:00 [mld] 95 ? I< 0:00 [ipv6_addrconf] 96 ? I 0:00 [kworker/2:2-cgroup_destroy] 98 ? I< 0:00 [kworker/3:1H-kblockd] 100 ? S 0:00 [irq/199-usb-001:003:01] 102 ? I< 0:00 [kworker/0:2H-mmc_complete] 113 ? I< 0:00 [kworker/1:2H-kblockd] 116 ? S 0:00 [scsi_eh_0] 117 ? I< 0:00 [scsi_tmf_0] 118 ? S 0:00 [usb-storage] 123 ? I< 0:00 [kworker/3:2H-kblockd] 135 ? Ss 0:01 /lib/systemd/systemd-journald 156 ? I 0:00 [kworker/2:3-mm_percpu_wq] 163 ? I 0:00 [kworker/0:3-cgroup_destroy] 168 ? Ss 0:01 /lib/systemd/systemd-udevd 185 ? I 0:00 [kworker/3:2-events] 200 ? S 0:00 [vchiq-keep/0] 201 ? S< 0:00 [SMIO] 233 ? I< 0:00 [mmal-vchiq] 235 ? I< 0:00 [mmal-vchiq] 239 ? I< 0:00 [mmal-vchiq] 240 ? I< 0:00 [mmal-vchiq] 241 ? I< 0:00 [mmal-vchiq] 242 ? I< 0:00 [mmal-vchiq] 243 ? I< 0:00 [mmal-vchiq] 257 ? I< 0:00 [uas] 280 ? I 0:00 [kworker/u8:3-events_unbound] 308 ? I< 0:00 [cfg80211] 312 ? Ssl 0:00 /lib/systemd/systemd-timesyncd 317 ? I 0:00 [kworker/3:3-cgroup_destroy] 321 ? S 0:00 [cec-vc4-hdmi] 322 ? S 0:00 [irq/97-vc4 hdmi cec] 341 ? I< 0:00 [brcmf_wq/mmc1:0] 343 ? S 0:00 [brcmf_wdog/mmc1:0001:1] 348 ? S 0:00 [card0-crtc0] 349 ? S 0:00 [card0-crtc1] 350 ? S 0:00 [card0-crtc2] 351 ? S 0:00 [card0-crtc3] 365 ? I< 0:00 [kworker/u9:1-hci0] 375 ? Ss 0:00 avahi-daemon: running [raspberrypi.local] 376 ? Ss 0:00 /usr/sbin/cron -f 377 ? Ss 0:01 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only 379 ? S 0:00 avahi-daemon: chroot helper 388 ? Ssl 0:00 /usr/libexec/polkitd --no-debug 398 ? Ssl 0:00 /usr/sbin/rsyslogd -n -iNONE 414 ? Ss 0:00 /lib/systemd/systemd-logind 416 ? Ss 0:00 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event* 430 ? Ssl 0:00 /usr/libexec/udisks2/udisksd 431 ? Ss 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant 456 ? Ss 0:00 /usr/sbin/dhcpcd -b -q 506 ? SLsl 0:00 /usr/sbin/rngd -r /dev/hwrng 515 ? Ssl 0:00 /usr/sbin/ModemManager 520 ? I 0:00 [kworker/1:4-events] 523 ? Ss 0:00 /usr/sbin/cupsd -l 530 ? Ssl 0:00 /usr/sbin/lightdm 580 ? S 0:00 /usr/lib/cups/notifier/dbus dbus:// 581 ? S 0:00 /usr/lib/cups/notifier/dbus dbus:// 586 ? S ttyUSB0 crw------- 1 root root 250, 0 Mar 29 07:12 /dev/pps0 crw-rw---- 1 root dialout 204, 64 Mar 29 07:12 /dev/ttyAMA0 crw-rw---- 1 root dialout 188, 0 Mar 29 07:12 /dev/ttyUSB0 + command -v lsusb /usr/bin/lsusb + lsusb Bus 001 Device 007: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse Bus 001 Device 006: ID 413c:2003 Dell Computer Corp. Keyboard SK-8115 Bus 001 Device 005: ID 10c4:ea60 Silicon Labs CP210x UART Bridge Bus 001 Device 004: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB / GXT 64MB Flash Drive Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + echo PYTHONPATH PYTHONPATH + command -v gpscat /usr/bin/gpscat + command -v gpscat + head -n 1 /usr/bin/gpscat #! /usr/bin/python3 + command -v python /usr/bin/python + python -V Python 3.9.2 + python -c import gps;print(gps.__version__) 3.22 + command -v python3 /usr/bin/python3 + python3 -V Python 3.9.2 + python3 -c import gps;print(gps.__version__) 3.22 + command -v systemctl /usr/bin/systemctl + 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. DEVICES="" # Other options you want to pass to gpsd #GPSD_OPTIONS="" GPSD_OPTIONS="-Gn" # Automatically hot add/remove USB GPS devices via gpsdctl USBAUTO="true" + systemctl cat gpsd.service # /lib/systemd/system/gpsd.service [Unit] Description=GPS (Global Positioning System) Daemon Requires=gpsd.socket # Needed with chrony SOCK refclock After=chronyd.service [Service] Type=forking EnvironmentFile=-/etc/default/gpsd ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES [Install] WantedBy=multi-user.target Also=gpsd.socket + systemctl cat gpsd.socket # /etc/systemd/system/gpsd.socket [Unit] Description=GPS (Global Positioning System) Daemon Sockets [Socket] ListenStream=/run/gpsd.sock ListenStream=[::1]:2947 #ListenStream=127.0.0.1:2947 # To allow gpsd remote access, start gpsd with the -G option and # uncomment the next two lines: #ListenStream=[::]:2947 ListenStream=0.0.0.0:2947 SocketMode=0600 BindIPv6Only=yes [Install] WantedBy=sockets.target + systemctl status gpsd.service ● gpsd.service - GPS (Global Positioning System) Daemon Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor preset: enabled) Active: active (running) since Fri 2024-03-29 07:12:37 AWST; 1min 14s ago TriggeredBy: ● gpsd.socket Process: 575 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS) Main PID: 586 (gpsd) Tasks: 1 (limit: 1595) CPU: 4.169s CGroup: /system.slice/gpsd.service └─586 /usr/sbin/gpsd -Gn Mar 29 07:12:37 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Mar 29 07:12:37 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. + systemctl status gpsd.socket ● gpsd.socket - GPS (Global Positioning System) Daemon Sockets Loaded: loaded (/etc/systemd/system/gpsd.socket; enabled; vendor preset: enabled) Active: active (running) since Fri 2024-03-29 07:12:35 AWST; 1min 17s ago Triggers: ● gpsd.service Listen: /run/gpsd.sock (Stream) [::1]:2947 (Stream) 0.0.0.0:2947 (Stream) Tasks: 0 (limit: 1595) CPU: 5ms CGroup: /system.slice/gpsd.socket Mar 29 07:12:35 raspberrypi systemd[1]: Listening on GPS (Global Positioning System) Daemon Sockets. + journalctl -u gpsd.service --since today -- Journal begins at Tue 2024-03-12 09:16:45 AWST, ends at Fri 2024-03-29 07:13:46 AWST. -- Mar 29 01:04:20 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon... Mar 29 01:04:26 raspberrypi systemd[1]: gpsd.service: Succeeded. Mar 29 01:04:26 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon. Mar 29 01:04:26 raspberrypi systemd[1]: gpsd.service: Consumed 3min 53.299s CPU time. -- Boot 6e47c03d0d9e4890afa4fa4d0bf71bb6 -- Mar 29 01:04:33 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Mar 29 01:04:33 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. -- Boot d7696f69a29c4f8cb79d6a7aa23bf9a7 -- Mar 29 01:17:08 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Mar 29 01:17:08 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. Mar 29 01:21:00 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon... Mar 29 01:21:01 raspberrypi systemd[1]: gpsd.service: Succeeded. Mar 29 01:21:01 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon. Mar 29 01:21:01 raspberrypi systemd[1]: gpsd.service: Consumed 6.628s CPU time. -- Boot 0e68d3596bde4b84a5cff9997adf0534 -- Mar 29 01:21:08 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Mar 29 01:21:08 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. -- Boot d22f0b44f8e84a1a829b5ee9631b78ca -- Mar 29 06:55:25 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Mar 29 06:55:25 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. Mar 29 07:12:28 raspberrypi systemd[1]: Stopping GPS (Global Positioning System) Daemon... Mar 29 07:12:28 raspberrypi systemd[1]: gpsd.service: Succeeded. Mar 29 07:12:28 raspberrypi systemd[1]: Stopped GPS (Global Positioning System) Daemon. Mar 29 07:12:28 raspberrypi systemd[1]: gpsd.service: Consumed 1min 3.781s CPU time. -- Boot 5b8aa8602fca4ab8a8da401fcff4ed52 -- Mar 29 07:12:37 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Mar 29 07:12:37 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. + command -v aa-status + command -v apparmor_status + set +x Please send the entire, untouched output.