Skip to content

Commit

Permalink
Trying to add Nvidia Shield Controller. See issue #9.
Browse files Browse the repository at this point in the history
  • Loading branch information
denilsonsa committed Feb 2, 2016
1 parent e3d2201 commit 750fc39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 51-these-are-not-joysticks-rm.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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}=""
Expand Down
3 changes: 3 additions & 0 deletions 51-these-are-not-joysticks.rules
Original file line number Diff line number Diff line change
Expand Up @@ -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}=""
Expand Down
3 changes: 3 additions & 0 deletions generate_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 750fc39

Please sign in to comment.