Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with DualShock 4 triggers #57

Open
diogotavc opened this issue May 19, 2024 · 1 comment
Open

Issues with DualShock 4 triggers #57

diogotavc opened this issue May 19, 2024 · 1 comment

Comments

@diogotavc
Copy link

I was playing some games I had through Bottles and had no issues using my DualShock 4's R2 and L2, but once I installed Steam, my whole button layout changed and tapping R2 or L2 would result in a digital input instead. After some investigation, I've found that it's related to the udev rules which are included with Steam in the form of steam-devices.

  • What happens if steam-devices isn't installed:
expected.mp4
  • If steam-devices is installed (note that the game isn't running through Steam, and Steam Input is supposedly disable for all Steam games anyway):
steam-devices.mp4

I just want to be able to configure my controller properly, while keeping R2 and L2 as analogue inputs. Any and all help would be massively appreciated!

@diogotavc
Copy link
Author

diogotavc commented May 20, 2024

In the meantime, I found a way to get around the udev rules without removing them altogether.
The idea is to create a rule with higher priority that resets all changes that steam-devices makes to DualShock 4 controllers when they're connected.

diogo@dingus-pad:~$ cat /etc/udev/rules.d/61-ds4-bypass-steam-input.rules
# DualShock 4 over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="", TAG:=""

# DualShock 4 wireless adapter over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="", TAG:=""

# DualShock 4 Slim over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="", TAG:=""

# DualShock 4 over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="", TAG:=""

# DualShock 4 Slim over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="", TAG:=""
diogo@dingus-pad:~$ sudo udevadm control --reload-rules
diogo@dingus-pad:~$ sudo udevadm trigger

Note that Steam still recognises my inputs just fine in big picture mode, which I don't recall working when the package was absent.

Update: Steam Input detects my controller and works as intended (a few test remaps worked fine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant