From 750fc3938851c3a72e61251ccc12143043dd7a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denilson=20S=C3=A1?= Date: Mon, 1 Feb 2016 23:38:07 -0200 Subject: [PATCH] Trying to add Nvidia Shield Controller. See issue #9. https://github.com/denilsonsa/udev-joystick-blacklist/issues/9 --- 51-these-are-not-joysticks-rm.rules | 3 +++ 51-these-are-not-joysticks.rules | 3 +++ generate_rules.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/51-these-are-not-joysticks-rm.rules b/51-these-are-not-joysticks-rm.rules index 35522af..408de39 100644 --- a/51-these-are-not-joysticks-rm.rules +++ b/51-these-are-not-joysticks-rm.rules @@ -3,6 +3,9 @@ # This file is auto-generated. For more information: # https://github.com/denilsonsa/udev-joystick-blacklist +# NVIDIA Shield Controller, see: https://github.com/denilsonsa/udev-joystick-blacklist/issues/9 +SUBSYSTEM=="input", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7210", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1", ENV{ID_INPUT_MOUSE}="" + SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="009d", ENV{ID_INPUT_JOYSTICK}=="?*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="009d", KERNEL=="js[0-9]*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="00b0", ENV{ID_INPUT_JOYSTICK}=="?*", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}="" diff --git a/51-these-are-not-joysticks.rules b/51-these-are-not-joysticks.rules index e17a563..9babce7 100644 --- a/51-these-are-not-joysticks.rules +++ b/51-these-are-not-joysticks.rules @@ -3,6 +3,9 @@ # This file is auto-generated. For more information: # https://github.com/denilsonsa/udev-joystick-blacklist +# NVIDIA Shield Controller, see: https://github.com/denilsonsa/udev-joystick-blacklist/issues/9 +SUBSYSTEM=="input", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7210", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1", ENV{ID_INPUT_MOUSE}="" + SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="009d", ENV{ID_INPUT_JOYSTICK}=="?*", MODE="0000", ENV{ID_INPUT_JOYSTICK}="" SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="009d", KERNEL=="js[0-9]*", MODE="0000", ENV{ID_INPUT_JOYSTICK}="" SUBSYSTEM=="input", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="00b0", ENV{ID_INPUT_JOYSTICK}=="?*", MODE="0000", ENV{ID_INPUT_JOYSTICK}="" diff --git a/generate_rules.py b/generate_rules.py index d8950c0..767f514 100755 --- a/generate_rules.py +++ b/generate_rules.py @@ -95,6 +95,9 @@ def main(): # This file is auto-generated. For more information: # https://github.com/denilsonsa/udev-joystick-blacklist + # NVIDIA Shield Controller, see: https://github.com/denilsonsa/udev-joystick-blacklist/issues/9 + SUBSYSTEM=="input", ATTRS{idVendor}=="0955", ATTRS{idProduct}=="7210", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1", ENV{ID_INPUT_MOUSE}="" + ''') filename = '51-these-are-not-joysticks.rules'