Off-Topic > Off-Topic - Tiny Core Lounge

[Solved] xbox controller not working on TCL16 x86_64

<< < (19/19)

GNUser:
Turns out these more limited permissions are enough:

--- Code: ---$ sudo chown root:staff /dev/input/*
$ sudo chmod 660 /dev/input/*
--- End code ---

Juanito, devices in /dev/input/ are created with  root:root  ownership and  640  permissions:


--- Code: ---$ ls -l /dev/input
total 0
drwxr-xr-x    2 root     root           160 Dec 30 15:32 by-path/
crw-r-----    1 root     root       13,  64 Dec 30 15:32 event0
crw-r-----    1 root     root       13,  65 Dec 30 15:32 event1
crw-r-----    1 root     root       13,  74 Dec 30 15:32 event10
crw-r-----    1 root     root       13,  75 Dec 30 15:32 event11
crw-r-----    1 root     root       13,  76 Dec 30 15:32 event12
crw-r-----    1 root     root       13,  77 Dec 30 15:32 event13
crw-r-----    1 root     root       13,  78 Dec 30 15:32 event14
...
--- End code ---

I'd like to suggest that we change this to  root:staff  ownership and  660  permissions, please (I tried root:staff and 640 but that's not enough for gamepad to work--it needs to be root:staff and 660).

This change would have saved me a lot of time and pain, and is sure to help users in the future.

I think it's just a matter of changing this part of /etc/udev/rules.d/50-udev-default.rules from this:


--- Code: ---# input                                                                         
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
KERNEL=="mouse*|mice|event*",   MODE="0640"                     
KERNEL=="ts[0-9]*|uinput",      MODE="0644",    GROUP="staff"   
KERNEL=="js[0-9]*",             MODE="0644"                   
--- End code ---

to this


--- Code: ---# input                                                                         
SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
KERNEL=="mouse*|mice|event*",   MODE="0660",    GROUP="staff"                     
KERNEL=="ts[0-9]*|uinput",      MODE="0660",    GROUP="staff"   
KERNEL=="js[0-9]*",             MODE="0660",    GROUP="staff"                   
--- End code ---

EDIT: I see that /etc/udev/rules.d/50-udev-default.rules is part of the base system. I'll put in a pull request on Github.

Rich:
Hi GNUser

--- Quote from: GNUser on December 30, 2025, 03:04:51 PM --- ... Thread may be marked as Solved! ;D
--- End quote ---
Done. :)

aus9:
Although GNUser has already confirmed his original post is now solved. At least one of my games now detects and uses gamepad in root mode. Thanks for solving it.

OFFTOPIC
abe mentions the wrong K version. Correct K version is loaded but no settings for gamepad seen.
neverputt has no gamepad settings.
neverball....gamepad in mode either xinput or Dinput digital...gamepad can navigate to settings but game borks if I attempt to play in  root mode

unsubmitted game I built to run a free doom wad...in root mode controller is working. Now all I need to do is get timidity or some soundfont friendly TCE to play the sound wads. I should have that licked by the time 17x is ready

thanks for reading

Navigation

[0] Message Index

[*] Previous page

Go to full version