flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
335 stars 70 forks source link

PS4 Controller Controller Support #1226

Open disney163 opened 6 months ago

disney163 commented 6 months ago

I am totally frustrated with this issue and have spent way too many hours trying to resolve by reading various posts on git as well as doing various Google searches. I consider myself fairly technical and certainly not a novice linux user.

First I know PS4 controller support works in Steam as I have successfully installed in naive Steam as well as the Snap package. However, I can not get to fully install/work in flatpak which I think is very odd since I know flatpak steam is widely used and the ps4 controller is very popular. The controller seems to work in big picture mode and some games, but something is not quite right. A symptom of the problem occurs when I try to do a text based search in big picture mode with the virtual keyboard. The screen will freeze up and make the controller non responsive.

Here is what I have done to troubleshoot the issue:

  1. I am using a recent kernel version that supports the ps4 contoller
  2. The ps4 contoller is recognized using lsusb
  3. The evtest works under /dev/input
  4. I have installed Steam devices package for udev support
  5. I have enabled devices all in flatseal for correct access to /dev/input and /dev/uinput
  6. I have run steam using -dev and can see that uinput is writable

What other troubleshooting steps can I take?

Could my problem be related to my Lenovo P520 workstation?

Does anyone know how steam works under the hood to provide controller support?

With all my testing with naive steam I have seen what I believe is a virtual Xbox controller being created under /dev/input/js1

Is this normal behavior needed for steam input to work?

Thanks and would appreciate any guidance.

Sturmlocke86 commented 5 months ago

I'm seeing issues with the PS4 controller with Steam Flatpak as well, and reading up on this ppl have said that it might be due to something Valve changed on their side and it is recommended to use the Beta version of Steam in order to sort things out. I haven't tested Steam Beta yet, but I can confirm that disabling Steam's built in PS4 controller support per game and letting the games detect and configure it themselves works for me. Not sure if you can do the same for the Steam big picture mode, but it works in games that had trouble finding the controller before.