RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    DS4 Touchpad emulating mouse screws up bindings over steam link

    Scheduled Pinned Locked Moved Help and Support
    dualshock 4steam link
    4 Posts 2 Posters 633 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JohnBDev
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        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}=""
        
        J 1 Reply Last reply Reply Quote 0
        • J
          JohnBDev @mitu
          last edited by JohnBDev

          @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.

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by mitu

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.