WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] xbox controller not working on TCL16 x86_64  (Read 2621 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1772
Re: xbox controller not working on TCL16 x86_64
« Reply #90 on: December 30, 2025, 03:38:41 PM »
Turns out these more limited permissions are enough:
Code: [Select]
$ sudo chown root:staff /dev/input/*
$ sudo chmod 660 /dev/input/*

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

Code: [Select]
$ 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
...

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: [Select]
# 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"                   

to this

Code: [Select]
# 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"                   

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.
« Last Edit: December 30, 2025, 03:55:55 PM by GNUser »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12431
Re: [Solved] xbox controller not working on TCL16 x86_64
« Reply #91 on: December 30, 2025, 04:28:35 PM »
Hi GNUser
... Thread may be marked as Solved! ;D
Done. :)

Offline aus9

  • Newbie
  • *
  • Posts: 44
Re: [Solved] xbox controller not working on TCL16 x86_64
« Reply #92 on: December 30, 2025, 08:44:18 PM »
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