How do I disable the touchscreen drivers?
I have a touchscreen, but the drivers are not working properly and interfere with my mouse. Is it possible to disable my touchscreen , so that I can work again properly?
I have the same problem although the touchscreen is working perfectly, but the reason is my old year old touching on the screen while I try to work 🙂
Related: I added an answer to disable the trackpad on Ubuntu 22.04 from the command-line here: How to enable/disable the touchpad in Ubuntu 22.04 from the command-line
8 Answers 8
You can try disabling the input device with the xinput command. First see what input devices you have, just type:
And you should see a list like:
$ xinput ⎡ Virtual core pointer [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer [slave pointer (2)] ⎜ ↳ Atmel Atmel maXTouch Digitizer [slave pointer (2)] ⎜ ↳ TPPS/2 IBM TrackPoint [slave pointer (2)] ⎜ ↳ SynPS/2 Synaptics TouchPad [slave pointer (2)] .
Then you can disable the input device you want with this command:
Where 9 is the id of the device you want to disable. You can also use the device name between quotes.
In xinput version 1.5.99.1 , you need to do xinput set-prop 9 ‘Device Enabled’ 0 instead. Oddly on xinput v1.6.2 the first way work.
Works on Dell XPS 13 running Ubuntu 16.04. I also added this to ~/.profile to auto apply after reboots: xinput | grep ‘ELAN Touchscreen’ | grep -Po ‘id=\d+’ | cut -d= -f2 | xargs xinput disable
Atmel also seems pretty common, an alternative way as @TalkLittle: xinput enable `xinput | grep Atmel | sed «s/^.*id=\(7*\).*$/\1/»` . Command inside What does backticks return the id.
The xinput solution did not work for me. I instead followed the instructions in this thread. This will disable it at boot time.
- Edit /usr/share/X11/xorg.conf.d/10-evdev.conf
- Add Option «Ignore» «on» to the end of the section with the touchscreen identifier
- Reboot
- For the record (Google), I have a Samsung Series 7 and my touch screen was listed as ELAN Touchscreen in xinput .
- JFTR too, in this question says the power consumption difference is mostly negligible.
I did that on a Dell XPS and it disabled the screen completely. After booting the screen is just black. Booted in recovery mode, removed the line and everything went back to normal.
This prevented my laptop for rebooting into X windows. Not a big deal to remove that setting, but something newbies want to check they can do before trying it.
Also disabled the touchpad on my Sony Vaio. Setting the driver value to «libinput» did the trick though
On Ubuntu 17.10, I couldn’t find the file you listed but there was /usr/share/X11/xorg.conf.d/40-libinput.conf . I changed a similar block in this file and at next restart I guess I’ll find out how it went!
sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf
Change MatchIsTouchscreen from «on» to «off» in the Touchscreen section so it looks like this:
Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "off" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection
Touchscreen is disabled and no longer detected in xinput list.
This worked for Dell XPS 15 and Linux Mint 18. I think this is safer than using Option = ignore from the answer, as it doesn’t disable the device just not doesn’t treat it as a touch screen.
This isn’t working anymore. I updated to Ubuntu 18.04, and the 10-evdev.conf file is gone. I tried recreating it, but it didn’t work.
@Merlin04 Did you check the libinput file? There is an answer that mentions this: askubuntu.com/a/1038259/167115
As id for xinput changes on reboot, I added a simple one-line screen on session load:
#!/bin/bash xinput --list | awk '/Atmel Atmel maXTouch Digitizer/ ' | awk 'xinput --list
for device name).