udev는 hidraw를 추가하고 즉시 제거합니다.

udev는 hidraw를 추가하고 즉시 제거합니다.

Ubuntu 17.10에서 자체 제작한 숨겨진 장치를 사용하는 데 문제가 있습니다. Windows에서는 잘 작동하고 Kubuntu 18.04가 설치된 다른 컴퓨터에서도 잘 작동합니다.

이미 모든 udev 규칙을 제거하고 udev를 다시 시작하고 PC를 재부팅했지만 아무것도 변경되지 않았습니다.

장치를 연결할 때마다 장치가 추가되고 즉시 제거됩니다.

출력 은 다음과 같습니다 udevadm monitor.

KERNEL[6204.330291] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4 (usb)
KERNEL[6204.332824] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0 (usb)
KERNEL[6204.337649] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006 (hid)
KERNEL[6204.337676] add      /class/usbmisc (class)
KERNEL[6204.337781] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/usbmisc/hiddev0 (usbmisc)
KERNEL[6204.337902] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006/hidraw/hidraw3 (hidraw)
UDEV  [6204.339176] add      /class/usbmisc (class)
UDEV  [6204.342657] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4 (usb)
KERNEL[6204.343301] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/usbmisc/hiddev0 (usbmisc)
KERNEL[6204.343321] remove   /usbmisc (class)
KERNEL[6204.343441] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006/hidraw/hidraw3 (hidraw)
KERNEL[6204.343467] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006 (hid)
UDEV  [6204.344076] remove   /usbmisc (class)
UDEV  [6204.349535] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0 (usb)
UDEV  [6204.353769] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006 (hid)
UDEV  [6204.353793] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/usbmisc/hiddev0 (usbmisc)
UDEV  [6204.353805] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/usbmisc/hiddev0 (usbmisc)
UDEV  [6204.353819] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006/hidraw/hidraw3 (hidraw)
UDEV  [6204.354254] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006/hidraw/hidraw3 (hidraw)
UDEV  [6204.355106] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006 (hid)
KERNEL[6204.921022] add      /devices/parport0/ppdev0.0 (parport)
KERNEL[6204.921041] remove   /devices/parport0/ppdev0.0 (parport)
UDEV  [6204.922874] add      /devices/parport0/ppdev0.0 (parport)
UDEV  [6204.923290] remove   /devices/parport0/ppdev0.0 (parport)
KERNEL[6209.296515] add      /devices/parport0/ppdev0.0 (parport)
UDEV  [6209.298376] add      /devices/parport0/ppdev0.0 (parport)
KERNEL[6209.348220] remove   /devices/parport0/ppdev0.0 (parport)
UDEV  [6209.349800] remove   /devices/parport0/ppdev0.0 (parport)

나에게 가장 이상한 것은 이 2줄이다:

UDEV  [6204.353819] add      /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006/hidraw/hidraw3 (hidraw)
UDEV  [6204.354254] remove   /devices/pci0000:00/0000:00:1c.5/0000:06:00.0/usb5/5-1/5-1.4/5-1.4:1.0/0003:0483:5750.0006/hidraw/hidraw3 (hidraw)

결과적으로 /dev에 파일이 hidraw3없습니다 .hiddev0

이 동작의 이유를 확인하기 위해 시도할 수 있는 것을 제안해 주세요.

감사합니다.

업데이트dmesg 출력은 다음과 같습니다.

[ 1897.305402] usb 3-6: new full-speed USB device number 13 using xhci_hcd
[ 1897.446811] usb 3-6: New USB device found, idVendor=0483, idProduct=5750
[ 1897.446820] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1897.446825] usb 3-6: Product: Smart Display
[ 1897.446829] usb 3-6: Manufacturer: QS
[ 1897.446832] usb 3-6: SerialNumber: 00000000001A
[ 1897.448254] hid-generic 0003:0483:5750.0008: hiddev0,hidraw3: USB HID v1.01 Device [QS Smart Display] on usb-0000:00:14.0-6/input0

답변1

바코드 스캐너를 연결했을 때 Ubuntu Xenial에서도 동일한 문제가 발생했습니다.

fwupd에서 이 버그가 발생했음을 확인하기 위해 /var/log/syslog와 lsof의 출력도 확인했습니다. https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1717009

fwupd를 중지하고 바코드를 스캔할 수 있었습니다.

이게 도움이 되길 바란다.

관련 정보