Off-Topic > Off-Topic - Tiny Core Lounge
[Solved] xbox controller not working on TCL16 x86_64
patrikg:
On what group will the udev rules add your device ?
GNUser:
--- Quote from: patrikg on December 30, 2025, 11:04:30 AM ---On what group will the udev rules add your device ?
--- End quote ---
udev creates /dev/input/js0 with root:root ownership in TCL, root:input ownership in Devuan
patrikg:
On modern Linux systems, /dev/input/js0 (joystick devices) should normally belong to the input group.
So that's correct so my advice to you is:
1. Add input group in TC.
2. Change the udev rules to input group.
3. Add user bruno to input group.
Happy hacking :)
Juanito:
Wouldn’t it be better to change it to the staff group?
GNUser:
--- Quote from: patrikg on December 30, 2025, 11:16:05 AM ---On modern Linux systems, /dev/input/js0 (joystick devices) should normally belong to the input group.
So that's correct so my advice to you is:
1. Add input group in TC.
2. Change the udev rules to input group.
3. Add user bruno to input group.
Happy hacking :)
--- End quote ---
Hi patrikg. I followed your advice. I appended this line to /etc/group:
--- Code: ---input:x:103:root,bruno
--- End code ---
and in /etc/udev/rules.d/50-udev-default.rules I changed this line:
--- Code: ---KERNEL=="js[0-9]*", MODE="0644"
--- End code ---
to this:
--- Code: ---KERNEL=="js[0-9]*", MODE="0664", GROUP="input"
--- End code ---
Then I logged out, logged back in, plugged in the gamepad. Everything is as expected:
--- Code: ---$ id
uid=1000(bruno) gid=50(staff) groups=10(wheel),50(staff),103(input),1000(bruno)
$ ls -l /dev/input/js0
crw-rw-r-- 1 root input 13, 0 Dec 30 11:27 /dev/input/js0
--- End code ---
Despite all the above, game still does not respond to gamepad input unless I run the game with sudo.
--- Quote from: Juanito on December 30, 2025, 11:27:28 AM ---Wouldn’t it be better to change it to the staff group?
--- End quote ---
Hi Juanito. I'll give that a try.
EDIT: No luck with your idea, Juanito :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version