How do I disable the touch screen on my laptop?
Besides uninstalling the appropriate drivers (which might fail to work since some devices act as usual mouse devices and only need specific drivers for more sophisticated features and your list of installed drivers suggests this) you can also disable the device via the xinput
tool or by explicitly matching in xorg.conf
.
To disable the device using xinput
, you'll have to determine the devices XInput id:
$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=10 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=11 [slave pointer (2)]
⎜ ↳ My annoying touchscreen id=14 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=9 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=12 [slave keyboard (3)]
↳ HID 0430:0005 id=13 [slave keyboard (3)]
In this example, »My annoying touchscreen« has the id 14
. So to disable it, simply type
$ xinput disable 14
To disable it via xorg.conf
, you simply create a file under the /etc/X11/xorg.conf.d
directory, for example 99-no-touchscreen.conf
with the following content:
Section "InputClass"
Identifier "Touchscreen catchall"
MatchIsTouchscreen "on"
Option "Ignore" "on"
EndSection
This would ignore all touchscreen devices. In case you have more than one and want to use one or several of them, you could specify the match more exactly with one of the other Match
directives. See the xorg.conf
manpage for more details on this (simply search for »Match« and you should find what you're looking for).