Bug 210231 - joydev detects keyboard as joystick and drifts on up-left position
Summary: joydev detects keyboard as joystick and drifts on up-left position
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-17 00:13 UTC by Germano Massullo
Modified: 2020-12-13 22:08 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.9.13
Subsystem:
Regression: No
Bisected commit-id:


Attachments
KDE Plasma joystick settings (73.53 KB, image/jpeg)
2020-11-17 00:13 UTC, Germano Massullo
Details

Description Germano Massullo 2020-11-17 00:13:24 UTC
Created attachment 293695 [details]
KDE Plasma joystick settings

This bugreport is about two joydev problems:
1) joydev detects Corsair K70R Gaming Keyboard as /dev/input/js0, but the keyboard is not a joystick/joypad
2) this /dev/input/js0 device, drifts on up-left position, so even if I connect a real USB joypad/joystick (/dev/input/js1), the game experience will be ruined because the game will detect a up-left position provided by /dev/input/js0

Fedora 33 - 5.9.8-200.fc33.x86_64

# udevadm info /dev/input/js0
P: /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-10/1-10:1.0/0003:1B1C:1B09.0003/input/input11/js0
N: input/js0
L: 0
S: input/by-id/usb-Corsair_Corsair_K70R_Gaming_Keyboard-joystick
S: input/by-path/pci-0000:01:00.0-usb-0:10:1.0-joystick
E: DEVPATH=/devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-10/1-10:1.0/0003:1B1C:1B09.0003/input/input11/js0
E: DEVNAME=/dev/input/js0
E: MAJOR=13
E: MINOR=0
E: SUBSYSTEM=input
E: USEC_INITIALIZED=22035523
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_VENDOR=Corsair
E: ID_VENDOR_ENC=Corsair
E: ID_VENDOR_ID=1b1c
E: ID_MODEL=Corsair_K70R_Gaming_Keyboard
E: ID_MODEL_ENC=Corsair\x20K70R\x20Gaming\x20Keyboard
E: ID_MODEL_ID=1b09
E: ID_REVISION=0109
E: ID_SERIAL=Corsair_Corsair_K70R_Gaming_Keyboard
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0000:01:00.0-usb-0:10:1.0
E: ID_PATH_TAG=pci-0000_01_00_0-usb-0_10_1_0
E: ID_FOR_SEAT=input-pci-0000_01_00_0-usb-0_10_1_0
E: DEVLINKS=/dev/input/by-id/usb-Corsair_Corsair_K70R_Gaming_Keyboard-joystick /dev/input/by-path/pci-0000:01:00.0-usb-0:10:1.0-joystick
E: TAGS=:uaccess:seat:


== hexdump of output provided by /dev/input/js0 ==
$ hexdump -C asd
00000000  5d f8 a1 00 00 00 81 00  5e f8 a1 00 00 00 81 01  |].......^.......|
00000010  5e f8 a1 00 00 00 81 02  5e f8 a1 00 00 00 81 03  |^.......^.......|
00000020  5e f8 a1 00 00 00 81 04  5e f8 a1 00 00 00 81 05  |^.......^.......|
00000030  5e f8 a1 00 00 00 81 06  5e f8 a1 00 00 00 81 07  |^.......^.......|
00000040  5e f8 a1 00 00 00 81 08  5e f8 a1 00 00 00 81 09  |^.......^.......|
00000050  5e f8 a1 00 00 00 81 0a  5e f8 a1 00 00 00 81 0b  |^.......^.......|
00000060  5e f8 a1 00 00 00 81 0c  5e f8 a1 00 00 00 81 0d  |^.......^.......|
00000070  5e f8 a1 00 00 00 81 0e  5e f8 a1 00 00 00 81 0f  |^.......^.......|
00000080  5e f8 a1 00 00 00 81 10  5e f8 a1 00 00 00 81 11  |^.......^.......|
00000090  5e f8 a1 00 00 00 81 12  5e f8 a1 00 00 00 81 13  |^.......^.......|
000000a0  5e f8 a1 00 00 00 81 14  5e f8 a1 00 00 00 81 15  |^.......^.......|
000000b0  5e f8 a1 00 00 00 81 16                           |^.......|
000000b8

Note You need to log in before you can comment on or make changes to this bug.