Disabling an (/dev/inputX) input device on Ubuntu(/Linux)

6,319

Adding something like this to /etc/X11/xorg.conf should work:

Section "InputClass"
   Identifier         "disable broken device"
   MatchIsTouchscreen "on"
   MatchProduct       "full product name from 'xinput list'"
   Option             "Ignore" "on"
EndSection

For more matches see http://fedoraproject.org/wiki/Input_device_configuration#InputClasses .

Share:
6,319

Related videos on Youtube

Apache
Author by

Apache

Updated on September 18, 2022

Comments

  • Apache
    Apache over 1 year

    My story: I have a laptop with a touchscreen, which is a bit faulty. It jumps the cursor occasionally to one point of the screen. It's annoying, but I managed to find the correct input.

    /dev/input/mouse1 < this is the one I should permanently disable in Linux.

    How can I do it on Ubuntu 11.04? (Saying the version because the correct answer may vary due to hal/evdev/whatevertheychangestuffdownto software.)

  • Apache
    Apache over 12 years
    Nice, gonna try it ASAP!
  • user1686
    user1686 over 12 years
    It's generally not recommended to match on specific device paths, as the ordering may change on reboot. MatchIsTouchscreen "on" possibly along with MatchProduct "full product name from 'xinput list'" would be somewhat better.
  • Apache
    Apache over 12 years
    Strange. @Grawity - Your version works, the "MatchDevicePath" fails for some reason. Thanks, both of you!
  • Ambroz Bizjak
    Ambroz Bizjak over 12 years
    Thanks @grawity, I changed according to to your suggestion.