Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 4 down vote accepted

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"

For more matches see .

share|improve this answer
Nice, gonna try it ASAP! – Shiki Sep 14 '11 at 22:45
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. – grawity Sep 14 '11 at 22:45
Strange. @Grawity - Your version works, the "MatchDevicePath" fails for some reason. Thanks, both of you! – Shiki Sep 14 '11 at 23:17
Thanks @grawity, I changed according to to your suggestion. – Ambroz Bizjak Sep 15 '11 at 8:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.