Gamepad not recognized as joystick
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I recently brought out my old bluetooth HID gamepad (iPEGA PG-9053) and was surprised to find that I didn't get any input in SDL games, though I know it used to work with older versions of Ubuntu (approximately 14.04 I think). KDE's "input devices" configuration would be able to perfectly read from /dev/input/js0 but many games failed to get any input from the gamepad.
It turns out that the reason for this is that the event devices (/dev/input/event*) were not readable for the default Ubuntu user (crw-rw----, group=input).
It seems that only devices that are marked as Joysticks will have global read permission set for them. This means that apparently my humble gamepad was not detected as such. The following is the udev info for my gamepad:
$ udevadm info --name=
P: /devices/
N: input/event21
E: BACKSPACE=guess
E: DEVNAME=
E: DEVPATH=
E: ID_BUS=bluetooth
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_INPUT_MOUSE=1
E: LIBINPUT_
E: MAJOR=13
E: MINOR=85
E: SUBSYSTEM=input
E: USEC_INITIALIZE
E: XKBLAYOUT=us,il
E: XKBMODEL=pc105
E: XKBOPTIONS=
E: XKBVARIANT=,
$ udevadm test-builtin input_id /devices/
calling: test-builtin
=== trie on-disk ===
tool version: 231
file size: 7291492 bytes
header size 80 bytes
strings 1819268 bytes
nodes 5472144 bytes
Load module index
Found container virtualization none
timestamp of '/etc/systemd/
timestamp of '/lib/systemd/
Parsed configuration file /lib/systemd/
Created link configuration context.
ID_INPUT=1
capabilities/ev raw kernel attribute: 12001f
capabilities/ev decoded bit map:
bit 0: 000000000012001F
capabilities/abs raw kernel attribute: 30627
capabilities/abs decoded bit map:
bit 0: 0000000000030627
capabilities/rel raw kernel attribute: 103
capabilities/rel decoded bit map:
bit 0: 0000000000000103
capabilities/key raw kernel attribute: 7fff000000070000 1000000000007 ff9f307ac1405fff febeffdfffefffff fffffffffffffffe
capabilities/key decoded bit map:
bit 0: FFFFFFFFFFFFFFFE
bit 64: FEBEFFDFFFEFFFFF
bit 128: FF9F307AC1405FFF
bit 192: 0001000000000007
bit 256: 7FFF000000070000
properties raw kernel attribute: 0
properties decoded bit map:
ID_INPUT_MOUSE=1
test_key: checking bit block 0 for any keys; found=1
test_key: checking bit block 64 for any keys; found=1
test_key: checking bit block 128 for any keys; found=1
test_key: checking bit block 192 for any keys; found=1
ID_INPUT_KEY=1
ID_INPUT_KEYBOARD=1
Unload module index
Unloaded link configuration context.
There is a similar bug for a different peripheral here: https:/
Changed in systemd (Ubuntu): | |
status: | New → Won't Fix |