udev adicione hidraw e remova imediatamente

0

Eu tenho problemas em usar o dispositivo hid self-made no meu Ubuntu 17.10. Ele funciona bem no Windows e funciona bem em outra máquina com o Kubuntu 18.04.

Eu já removi todas as minhas regras do udev, reiniciei o udev, reiniciei o PC, mas nada mudou.

Sempre que conecto o dispositivo, ele é adicionado e imediatamente removido.

Aqui está o udevadm monitor output:

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)

O mais estranho para mim é de 2 linhas:

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)

Como resultado, não há hidraw3 no hiddev0 arquivos em / dev

Por favor, sugira algo que eu possa tentar ver o motivo desse comportamento.

Obrigado.

Atualizar Aqui está a saída do 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
    
por johngull 06.04.2018 / 10:01

1 resposta

2

Eu tive o mesmo problema no Ubuntu Xenial quando eu conectei meu scanner de código de barras.

Eu verifiquei / var / log / syslog e também a saída do lsof para descobrir que eu estava tendo esse bug do fwupd: link

Parei o fwupd e consegui digitalizar códigos de barras.

Espero que isso ajude.

    
por 20.04.2018 / 05:10