DS4 Touchpad emulating mouse screws up bindings over steam link
-
I have RetroPie installed and Steam Link too. I have a DualShock 4 (PS4) controller that the touchpad on it emulates a mouse when Steam Link is launched, and it screws up bindings in games. I found posts on this forum and Reddit, but none of them worked. How do I prevent it from emulating a mouse with the DS4 touchpad?
-
You can add an
udev
rule to remove the Touchpad device from being created. Something like:SUBSYSTEM=="input", ATTRS{name}=="*Touchpad", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}=""
-
@mitu sorry for being stupid, but where do I put this?
EDIT: Nevermind, it goes in
/etc/udev/rules.d/
a Google search can go a long way. -
You need to create a
udev
configuration file under/etc/udev/rules.d
.
Run from the command line (or a SSH) session:echo 'SUBSYSTEM=="input", ATTRS{name}=="*Touchpad", RUN+="/bin/rm %E{DEVNAME}", ENV{ID_INPUT_JOYSTICK}=""' | sudo tee /etc/udev/rules.d/99-disable-touchpad.rules
then reboot. See if the touchpad still functions after this.
To get back the touchpad, you can remove the file with
sudo rm /etc/udev/rules.d/99-disable-touchpad.rules
followed by a reboot.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.