[apologies for the wide lines]
Theo <
theom+news@chiark.greenend.org.uk> wrote:
Depending on what kind of device it appears as (serial, keyboard, mass storage, network, ...) see if you can work out what other app might have grabbed it. ('sudo lsof' is handy here, if it appears as a device node that you can grep for)
Sudo lsof is loquatious, but not obviously informative. These tests were
on a Pi5 running up-to-date Bookworm, but the behavior is outwardly the
same as Trixie on Pi2.
With the 'scope connected but the application not running the status light
slow flashes red and sudo lsof | grep owon reports:
bob@raspberrypi:~/Downloads/owon/OWON-VDS1022-1.1.5-cf19$ sudo lsof | grep -i owon
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
Output information may be incomplete.
bash 835101 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
bash 835909 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
sudo 835956 root cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
grep 835957 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
sudo 835958 root cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
lsof 835959 root cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
lsof 835960 root cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
bob@raspberrypi:~/Downloads/owon/OWON-VDS1022-1.1.5-cf19$
If I run
own-vds-tiny on the command line, the 'scope reports no available usb and I see:
bob@raspberrypi:~/Downloads/owon/OWON-VDS1022-1.1.5-cf19$ sudo lsof | grep -i owon
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
lsof: WARNING: can't stat() fuse.portal file system /run/user/1000/doc
Output information may be incomplete.
bash 835101 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
bash 835909 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
owon-vds- 836040 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
owon-vds- 836040 bob rtd DIR 8,2 4096 2 /
owon-vds- 836040 bob txt REG 8,2 1346480 131065 /usr/bin/bash
owon-vds- 836040 bob mem REG 8,2 3048928 131563 /usr/lib/locale/locale-archive
owon-vds- 836040 bob mem REG 8,2 1651408 132074 /usr/lib/aarch64-linux-gnu/libc.so.6
owon-vds- 836040 bob mem REG 8,2 199896 137511 /usr/lib/aarch64-linux-gnu/libtinfo.so.6.4
owon-vds- 836040 bob mem REG 8,2 27028 145279 /usr/lib/aarch64-linux-gnu/gconv/gconv-modules.cache
owon-vds- 836040 bob mem REG 8,2 202912 131471 /usr/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1
owon-vds- 836040 bob 0u CHR 136,19 0t0 22 /dev/pts/19
owon-vds- 836040 bob 1u CHR 136,19 0t0 22 /dev/pts/19
owon-vds- 836040 bob 2u CHR 136,19 0t0 22 /dev/pts/19
owon-vds- 836040 bob 255r REG 8,2 71 1831442 /opt/owon-vds-tiny/launch
java 836041 bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
java 836041 bob mem REG 8,2 22296 1831447 /opt/owon-vds-tiny/lib/libusb-0.1.so.4
java 836041 bob mem REG 8,2 52136 1831448 /opt/owon-vds-tiny/lib/libusbJava.so
java 836041 bob 4r REG 8,2 2622148 1831449 /opt/owon-vds-tiny/lib/owon-vds-tiny-1.1.5-cf19.jar
java 836041 bob 6r REG 8,2 58910 1831444 /opt/owon-vds-tiny/lib/ch.ntb.usb-0.5.9.jar
java 836041 bob 7r REG 8,2 259083 1831445 /opt/owon-vds-tiny/lib/gson-2.7.0.jar
java 836041 bob 8r REG 8,2 720702 1831446 /opt/owon-vds-tiny/lib/jxl-2.6.6.jar
java 836041 836042 java bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
java 836041 836042 java bob mem REG 8,2 22296 1831447 /opt/owon-vds-tiny/lib/libusb-0.1.so.4
java 836041 836042 java bob mem REG 8,2 52136 1831448 /opt/owon-vds-tiny/lib/libusbJava.so
java 836041 836042 java bob 4r REG 8,2 2622148 1831449 /opt/owon-vds-tiny/lib/owon-vds-tiny-1.1.5-cf19.jar
java 836041 836042 java bob 6r REG 8,2 58910 1831444 /opt/owon-vds-tiny/lib/ch.ntb.usb-0.5.9.jar
java 836041 836042 java bob 7r REG 8,2 259083 1831445 /opt/owon-vds-tiny/lib/gson-2.7.0.jar
java 836041 836042 java bob 8r REG 8,2 720702 1831446 /opt/owon-vds-tiny/lib/jxl-2.6.6.jar
java 836041 836043 GC\x20Thr bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
java 836041 836043 GC\x20Thr bob mem REG 8,2 22296 1831447 /opt/owon-vds-tiny/lib/libusb-0.1.so.4
java 836041 836043 GC\x20Thr bob mem REG 8,2 52136 1831448 /opt/owon-vds-tiny/lib/libusbJava.so
java 836041 836043 GC\x20Thr bob 4r REG 8,2 2622148 1831449 /opt/owon-vds-tiny/lib/owon-vds-tiny-1.1.5-cf19.jar
java 836041 836043 GC\x20Thr bob 6r REG 8,2 58910 1831444 /opt/owon-vds-tiny/lib/ch.ntb.usb-0.5.9.jar
java 836041 836043 GC\x20Thr bob 7r REG 8,2 259083 1831445 /opt/owon-vds-tiny/lib/gson-2.7.0.jar
java 836041 836043 GC\x20Thr bob 8r REG 8,2 720702 1831446 /opt/owon-vds-tiny/lib/jxl-2.6.6.jar
java 836041 836044 G1\x20Mai bob cwd DIR 8,2 4096 774245 /home/bob/Downloads/owon/OWON-VDS1022-1.1.5-cf19
....
The output appears to be looping, but I'm not sure it's repeating exactly.
I'll admit this makes no sense to me, if you see a clue please point it out.
The man page for lsof notes support for x86-based Linux 2.1.72 and up; I'd guess
that's been extended to ARM, but if not lsof might not be the right diagnostic.
Thanks for writing!
bob prohaska
--- PyGate Linux v1.5.1
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)