ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.17k stars 173 forks source link

Xbox controller works only in BPM (does not work in games) and with steam-overlay enabled. #7787

Open TheGreatDeadOne opened 3 years ago

TheGreatDeadOne commented 3 years ago

Your system information

Please describe your issue in as much detail as possible:

When Steam (both native and flatpak versions) starts, my Xbox one S controller is detected as expected and can be configured, but when I start games, the controller is inoperable within the game, but I can open it Steam-overlay without problems (which also has something wrong, I'll explain later). Evaluating the program outputs when I execute via terminal, the following information appears:

Couldn't initialize virtual gamepad: Couldn't open /dev/uinput for writing

So, the first thing I did was to load the uinput module and give the appropriate permissions (my user is in the input group) :

sudo modprobe -v uinput sudo chmod +0666 / dev / uinput

After executing these commands, I tried again, and saw that the problem persisted, but out of curiosity I started to tweak my settings and saw that Steam-Overlay was disabled, so I enabled it and restarted steam and ran the BroForce game, and the controller worked normally (but it was still necessary to load the uinput module and give the permissions). I repeated the same steps a few times and got the same result.

here the terminal outputs with Steam-overlay enabled + uinput and chmod and here Steam-overlay disabled + uinput and chmod

Steps for reproducing this issue:

  1. Open Steam
  2. Start the game
  3. Try to use the controller in the game, executing some commands
DanMan commented 3 years ago

Do you have multiple gamepads plugged in? If so, make sure the one you're trying to use is the primary one in the Steam controller options ("re-order…").

I'm currently playing Darksiders 3 and it likes to choose my other gamepad.

TheGreatDeadOne commented 3 years ago

Do you have multiple gamepads plugged in? If so, make sure the one you're trying to use is the primary one in the Steam controller options ("re-order…").

I'm currently playing Darksiders 3 and it likes to choose my other gamepad.

No, I only have one.