0

I have a laptop (Dell Inspiron) with a touch display. Is there a way to turn the touch functionality of this display off and on with the touch of a button or a key combination?

I am running Kubuntu 18.04

  • The same switch that worked in Windows is likely to work in Ubuntu. – user692175 Nov 13 '17 at 19:07
  • @MichaelBay This does not really help. The laptop came preinstalled with Ubuntu. I don`t use Windows. I am searching for a software button since as far as I can tell there is no hardware button. – Bruni Nov 13 '17 at 20:04
  • I use ` xinput --disable 'ELAN Touchscreen'` to disable mine, since I never use the touch capabilities. – John Anderson Aug 22 '18 at 14:55
  • @JohnAnderson stupid question, before I try: Will xinput --enable 'ELAN Touchscreen' reenable it? – Bruni Aug 22 '18 at 14:59
  • @JohnAnderson Ok, I tested. This works. Please add it as an answer. – Bruni Aug 22 '18 at 15:01
2

The xinput utility provides a utility to configure and test X input devices. Do a man xinput for details. You can use xinput list to get a list of the devices on your system. xinput --disable 'ELAN Touchscreen' will disable an ELAN Touchscreen and xinput --enable 'ELAN Touchscreen' will re-enable the same device.

To actually create a toggle button you can adjust the answer to this question and put the resulting script in a .desktop file.

  • Since I never use the touch capabilities, I put the disable command as a startup program. – John Anderson Aug 22 '18 at 16:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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