Skip to content

Instantly share code, notes, and snippets.

@johnv-valve
johnv-valve / 51-these-are-not-joysticks.rules
Last active January 26, 2016 22:38 — forked from denilsonsa/51-these-are-not-joysticks.rules
Fix for Microsoft keyboard being detected as joystick in Linux
# /etc/udev/rules.d/51-these-are-not-joysticks.rules
# https://gist.github.com/denilsonsa/978f1d842cf5430f57f6
#
# These are devices that, although recognized by kernel as joysticks, are not
# joysticks. These rules will prevent the non-functional /dev/input/js* devices
# from being used, by removing read/write permissions from them.
#
# This is just a blacklist, which will always be incomplete (until the actual
# bug gets fixed). Feel free to add more devices to this list.
#