O joystick Usb detectado… e removido

0

Eu tenho um problema estranho, onde meu joystick usb é detectado corretamente e, em seguida, bem removido pelo kernel.

saída dmesg ao inserir o conector usb:

[ 2319.770016] usb 1-1.5: new full-speed USB device number 7 using ehci-pci
[ 2319.880607] usb 1-1.5: New USB device found, idVendor=0483, idProduct=5750
[ 2319.880609] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2319.880611] usb 1-1.5: Product: FALENCI
[ 2319.880613] usb 1-1.5: Manufacturer: FALENCI
[ 2319.880615] usb 1-1.5: SerialNumber: 206739655233
[ 2319.882481] input: FALENCI FALENCI as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.0009/input/input26
[ 2319.942381] hid-generic 0003:0483:5750.0009: input,hiddev0,hidraw0: USB HID v1.11 Gamepad [FALENCI FALENCI] on usb-0000:00:1a.0-1.5/input0

No entanto, no syslog eu acho:

Oct 17 23:25:51 Axe kernel: [ 2319.770016] usb 1-1.5: new full-speed USB device number 7 using ehci-pci
Oct 17 23:25:51 Axe kernel: [ 2319.880607] usb 1-1.5: New USB device found, idVendor=0483, idProduct=5750
Oct 17 23:25:51 Axe kernel: [ 2319.880609] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 17 23:25:51 Axe kernel: [ 2319.880611] usb 1-1.5: Product: FALENCI
Oct 17 23:25:51 Axe kernel: [ 2319.880613] usb 1-1.5: Manufacturer: FALENCI
Oct 17 23:25:51 Axe kernel: [ 2319.880615] usb 1-1.5: SerialNumber: 206739655233
Oct 17 23:25:51 Axe kernel: [ 2319.882481] input: FALENCI FALENCI as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.0009/input/input26
Oct 17 23:25:51 Axe kernel: [ 2319.942381] hid-generic 0003:0483:5750.0009: input,hiddev0,hidraw0: USB HID v1.11 Gamepad [FALENCI FALENCI] on usb-0000:00:1a.0-1.5/input0
Oct 17 23:25:51 Axe mtp-probe: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5"
Oct 17 23:25:51 Axe mtp-probe: bus: 1, device: 7 was not an MTP device
Oct 17 23:25:51 Axe acpid: input device has been disconnected, fd 16

e usando udevadm monitor eu recebo:

KERNEL[2849.850516] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5 (usb)
KERNEL[2849.850688] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0 (usb)
KERNEL[2849.851478] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A (hid)
KERNEL[2849.852165] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27 (input)
KERNEL[2849.912343] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/event2 (input)
KERNEL[2849.912420] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/js0 (input)
KERNEL[2849.912565] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/usbmisc/hiddev0 (usbmisc)
KERNEL[2849.912616] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/hidraw/hidraw0 (hidraw)
UDEV  [2849.934209] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5 (usb)
UDEV  [2849.936100] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0 (usb)
UDEV  [2849.937515] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A (hid)
UDEV  [2849.938171] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/usbmisc/hiddev0 (usbmisc)
UDEV  [2849.940255] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/hidraw/hidraw0 (hidraw)
KERNEL[2849.992217] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/event2 (input)
KERNEL[2850.008233] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/js0 (input)
KERNEL[2850.032209] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27 (input)
KERNEL[2850.032252] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/usbmisc/hiddev0 (usbmisc)
KERNEL[2850.032317] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/hidraw/hidraw0 (hidraw)
KERNEL[2850.032347] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A (hid)
UDEV  [2850.033024] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/hidraw/hidraw0 (hidraw)
UDEV  [2850.033116] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/usbmisc/hiddev0 (usbmisc)
UDEV  [2850.033273] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27 (input)
UDEV  [2850.034723] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/event2 (input)
UDEV  [2850.035337] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/event2 (input)
UDEV  [2850.036645] add      /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/js0 (input)
UDEV  [2850.037334] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27/js0 (input)
UDEV  [2850.037954] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A/input/input27 (input)
UDEV  [2850.038398] remove   /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/0003:0483:5750.000A (hid)

Eu aprecio o sistema de limpeza depois de si mesmo, mas eu gostaria de usá-lo um pouco entre: - (

A configuração funcionou anteriormente sem problemas, pensava que isso era durante a execução de 16.04 em vez de 17.04

Alguém tem uma sugestão de o que poderia estar dando errado ou qual caminho seguir para depurar esse problema?

EDITAR: Eu depurei um pouco mais e encontrei uma causa provável da minha miséria / mistério. Ao exportar o banco de dados do udev usando udevadm info -e , encontro o seguinte sobre o meu dispositivo:

P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5
N: bus/usb/001/011
E: BUSNUM=001
E: DEVNAME=/dev/bus/usb/001/011
E: DEVNUM=011
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_MODEL=FALENCI
E: ID_MODEL_ENC=FALENCI
E: ID_MODEL_ID=5750
E: ID_REVISION=0200
E: ID_SERIAL=FALENCI_FALENCI_206739655233
E: ID_SERIAL_SHORT=206739655233
E: ID_USB_INTERFACES=:030000:
E: ID_VENDOR=FALENCI
E: ID_VENDOR_ENC=FALENCI
E: ID_VENDOR_FROM_DATABASE=STMicroelectronics
E: ID_VENDOR_ID=0483
E: MAJOR=189
E: MINOR=10
E: PRODUCT=483/5750/200
E: SUBSYSTEM=usb
E: TYPE=0/0/0
E: USEC_INITIALIZED=8384101306

P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0
E: DEVTYPE=usb_interface
E: DRIVER=usbfs
E: ID_VENDOR_FROM_DATABASE=STMicroelectronics
E: INTERFACE=3/0/0
E: MODALIAS=usb:v0483p5750d0200dc00dsc00dp00ic03isc00ip00in00
E: PRODUCT=483/5750/200
E: SUBSYSTEM=usb
E: TYPE=0/0/0
E: USEC_INITIALIZED=8384114545

No entanto, usbfs é um driver obsoleto que não é um módulo no meu sistema. Porque o driver não existe, não pode ser colocado na lista negra. Eu verifiquei se havia alguma menção a este driver nas regras do udev existentes no lib e etc, mas não há. Limpar o banco de dados usando udevadm info -c o remove da lista, mas ele está lá no momento em que eu repito para conectar o dispositivo.

Então, de onde vem esse usbfs e, mais importante, como removê-lo do hwdb?

    
por Requist 17.10.2017 / 23:49

1 resposta

0

Pensei que isso parece um pouco uma solução alternativa, vou postar minha solução (temporária?) de qualquer maneira, já que, por enquanto, ela corrige meu problema.

Eu uso usb_modeswitch para desanexar o driver não funcional e redefinir o usb:

% bl0ck_qu0te%

troque VID e PID pelos valores fornecidos por lsusb . Os números após o ID são VID:PID

    
por Requist 18.10.2017 / 23:52