Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xbox One Controller not working out of the box
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Lemon-Lime
n00b
n00b


Joined: 27 Apr 2023
Posts: 58

PostPosted: Fri May 05, 2023 4:02 am    Post subject: Xbox One Controller not working out of the box Reply with quote

Hello Gentoo,

I recently tried using a Xbox One Controller on my Gentoo box. The controller was recognized by the kernel (it showed up on lsmod), but it was not being picked up by my machine (moving did nothing).
Steam didn't recognize it either, it was if nothing was plugged in. I read this (https://forums.gentoo.org/viewtopic-p-8546110.html?sid=85224a9888dda34906bf91057336260c) post and it said
Quote:
Check permissions on /dev/uinput, your user needs rw access to it for steam's controller-remapping stuff to work. That's the most common problem.


Then I checked Arch's wiki, where it said on https://wiki.archlinux.org/title/Gamepad#Device_permissions that:
Quote:
Any gamepad device, regardless of whether it is over USB or Bluetooth, is handled by the "input" subsystem of the kernel, corresponding with /dev/input



Arch's wiki and that gentoo forum post seemed to be referring to the same thing, so I checked those files. I have two of them (by id):

    - usb-Microsoft_Controller_...-event-joystick
    - usb-Microsoft_Controller_...-joystick


joystick I could cat perfectly fine, however I did not have permission to read event-joystick. So I followed this (https://unix.stackexchange.com/a/401217/531949) article to give my user group read access to said file. After that, the controller worked like a charm

Thing is, as soon as I unplug it's permissions get reset. Is there a way for me to automate this? Maybe a udev rule I could assign? Thanks in advance
_________________
Crazy frog is the artist, not the song
Back to top
View user's profile Send private message
Lemon-Lime
n00b
n00b


Joined: 27 Apr 2023
Posts: 58

PostPosted: Sat May 06, 2023 7:37 pm    Post subject: Re: Xbox One Controller not working out of the box Reply with quote

Update: I wrote a udev rule to bypass this error. It is not perfect by any means, but maybe it helps others with this same issue

Said PR: https://github.com/gentoo/gentoo/pull/30902
_________________
Crazy frog is the artist, not the song
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum