14

I am trying to disable the touchscreen on my Asus S200E laptop. In Ubuntu 16.04, I was able to do so with this:

Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
EndSection

How can this be done on Ubuntu 18.04?

  • you can use this command xinput disable xinput --list | grep -i "touch " | sed 's/id=//g' | cut -f2 – naib khan Feb 21 at 4:02
16

It appears as if you are referring to files located at /usr/share/X11/xorg.conf.d. Perhaps the libinput driver was recently updated to support your touchscreen?

Probably you want to edit /usr/share/X11/xorg.conf.d/10-evdev.conf with:

Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    #Driver "evdev"
    Option "Ignore" "on"
EndSection

And /usr/share/X11/xorg.conf.d/40-libinput.conf with:

Section "InputClass"
    Identifier "libinput touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    #Driver "libinput"
    Option "Ignore" "on"
EndSection

If that does not work, get the name of your touchscreen with xinput, and add one of the following commands to a startup script:

xinput set-prop [touchscreen id] "Device Enabled" 0
xinput disable [touchscreen id]
| improve this answer | |

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