493: Undecipherable

-Blog-

-Projects-

-About me-

-RSS-

8Bitdo: udev rules for game controller

Dennis Guse

8bitdo sells some really nice game controllers featuring USB as well as Bluetooth such as SNES30.

At least on Ubuntu, I needed to install custom udev-rules. Otherwise the controller is only recognized as keyboard with four keys.

The following udev-rules were taken from the here.

 1# If applications do NOT detect the 8Bitdo controller when connected via Bluetooth and won't even recognize manual binding, 
 2# fix this by adding these udev rules to force detection - https://github.com/paalfe/mixedcontent/blob/master/udev_rules.d/99-8bitdo-bluetooth-controllers.rules. 
 3# Add the udev rules file to "/etc/udev/rules.d/99-8bitdo-bluetooth-controllers.rules" and reboot. 
 4# Forum thread: http://libretro.com/forums/showthread.php?t=3649 
 5# Useful reading: https://hg.libsdl.org/SDL/file/704a0bfecf75/README-linux.txt
 6
 7# 8Bitdo FC30 1P GamePad Bluetooth mode(START) mode(START+R)
 8SUBSYSTEM=="input", ATTRS{name}=="8Bitdo FC30 GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
 9
10# 8Bitdo FC30 2P GamePad Bluetooth mode(START)
11SUBSYSTEM=="input", ATTRS{name}=="8Bitdo FC30 II", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1" 
12
13# 8Bitdo FC30 2P GamePad Bluetooth mode(START+R)
14SUBSYSTEM=="input", ATTRS{name}=="8Bitdo FC30 II Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
15
16# 8Bitdo SFC30 GamePad Bluetooth mode(START)
17SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SFC30 GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
18
19# 8Bitdo SFC30 GamePad Bluetooth mode(START+R)
20SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SFC30 GamePad Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
21
22# 8Bitdo NES30 GamePad Bluetooth mode(START)
23SUBSYSTEM=="input", ATTRS{name}=="8Bitdo NES30 GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
24
25# 8Bitdo NES30 GamePad Bluetooth mode(START+R)
26SUBSYSTEM=="input", ATTRS{name}=="8Bitdo NES30 GamePad Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
27
28# 8Bitdo SNES30 GamePad Bluetooth mode(START)
29SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SNES30 GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
30
31# 8Bitdo SNES30 GamePad Bluetooth mode(START+R)
32SUBSYSTEM=="input", ATTRS{name}=="8Bitdo SNES30 GamePad Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
33
34# 8Bitdo FC30 Pro GamePad Bluetooth mode(POWER) mode(POWER+R1)
35SUBSYSTEM=="input", ATTRS{name}=="8Bitdo FC30 Pro", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
36
37# 8Bitdo NES30 Pro GamePad Bluetooth mode(POWER)
38SUBSYSTEM=="input", ATTRS{name}=="8Bitdo NES30 Pro", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
39
40# 8Bitdo NES30 Pro GamePad Bluetooth mode(POWER+R1)
41SUBSYSTEM=="input", ATTRS{name}=="8Bitdo NES30 Pro Joystick", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
42
43# 8Bitdo FC30 Arcade Joystick Bluetooth mode(HOME)
44SUBSYSTEM=="input", ATTRS{name}=="8Bitdo Joy", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
45
46# 8Bitdo Zero GamePad Bluetooth mode(START) mode(START+R)
47SUBSYSTEM=="input", ATTRS{name}=="8Bitdo Zero GamePad", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"