Gamepad registering wrong number of buttons

asked 2018-10-26 02:04:26 -0600

I have a USB to SNES adapter that only registers 4 buttons when using kernel 4.18.16-200.fc28.x86_64, but works properly (registers 8 buttons) using kernel 4.16.3-301.fc28.x86_64.

With 4.16.3:

$ uname -a
Linux localhost 4.16.3-301.fc28.x86_64 #1 SMP Mon Apr 23 21:59:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ jstest /dev/input/js0 
Driver version is 2.1.0.
Joystick (RetroUSB.com SNES RetroPort) has 2 axes (X, Y)
and 8 buttons (BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ, BtnTL, BtnTR).

$ dmesg
...
usb 1-1: new low-speed USB device number 6 using xhci_hcd
usb 1-1: New USB device found, idVendor=f000, idProduct=00f1, bcdDevice= 0.00
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: SNES RetroPort
usb 1-1: Manufacturer: RetroUSB.com
input: RetroUSB.com SNES RetroPort as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:F000:00F1.0002/input/input12
hid-generic 0003:F000:00F1.0002: input,hidraw1: USB HID v1.00 Gamepad [RetroUSB.com SNES RetroPort] on usb-0000:00:14.0-1/input0
...

With 4.18.16:

$ uname -a
Linux localhost 4.18.16-200.fc28.x86_64 #1 SMP Sat Oct 20 23:53:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (RetroUSB.com SNES RetroPort) has 2 axes (X, Y)
and 4 buttons (BtnA, BtnB, BtnC, BtnX).

$ dmesg
...
usb 1-1: new low-speed USB device number 7 using xhci_hcd
usb 1-1: New USB device found, idVendor=f000, idProduct=00f1
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: SNES RetroPort
usb 1-1: Manufacturer: RetroUSB.com
input: RetroUSB.com SNES RetroPort as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:F000:00F1.0003/input/input13
hid-generic 0003:F000:00F1.0003: input,hidraw0: USB HID v1.00 Gamepad [RetroUSB.com SNES RetroPort] on usb-0000:00:14.0-1/input0
...

I'm not sure where to look to fix this, any help is appreciated
Thanks

edit retag flag offensive close merge delete