Skip to content

Instantly share code, notes, and snippets.

@nardhar
Last active December 16, 2019 20:42
Show Gist options
  • Save nardhar/25f435f1b42c9a9f25555b76dfc9654d to your computer and use it in GitHub Desktop.
Save nardhar/25f435f1b42c9a9f25555b76dfc9654d to your computer and use it in GitHub Desktop.
Disable Touch display functionality from DELL XPS laptop for Debian 9

First install xinput

$ sudo apt-get install xinput

Find the touchscreen display

$ xinput --list
# output
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer            id=4	[slave  pointer  (2)]
⎜   ↳ DLL075B:01 06CB:76AF Touchpad         id=12	[slave  pointer  (2)]
⎜   ↳ ELAN Touchscreen                      id=10	[slave  pointer  (2)] # HERE!!!
⎣ 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)]
    ↳ Power Button                          id=8	[slave  keyboard (3)]
    ↳ Sleep Button                          id=9	[slave  keyboard (3)]
    ↳ Integrated_Webcam_HD                  id=11	[slave  keyboard (3)]
    ↳ Intel Virtual Button driver           id=13	[slave  keyboard (3)]
    ↳ Intel HID events                      id=14	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard          id=15	[slave  keyboard (3)]
    ↳ Dell WMI hotkeys                      id=17	[slave  keyboard (3)]

So we disable it

$ xinput disable 10

Making it permanent across reboots

$ sudo nano ~/.profile

And add

xinput | grep 'ELAN Touchscreen' | grep -Po 'id=d+' | cut -d= -f2 | xargs xinput disable

Note: ELAN Touchscreen is the name of the device to be disabled

Acknowledgements

https://phpocean.com/tutorials/computer-skills/how-to-disable-the-touchscreen-drivers-permanently-on-ubuntu-17-10/63

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment