KDE - Disable Netbook's Touchscreen?

Hi,

Running openSUSE Tumbleweed KDE 64Bit on a netbook.
How would I disable the touchscreen of the netbook?
Let me know, thanks!

Jesse

Never had one on a netbook but I would start with System settings>Input devices

Hi,

Don’t see any settings there to disable touchscreen.
Anyone else know?

Jesse

Hi,

Tried the following in KDE terminal:

su
zypper install xinput
xinput
xinput disable [ID]

but get error below:

No protocol specified
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  21
  Current serial number in output stream:  22

Any ideas?
Thanks!

Jesse

Hi
And as your user? Are you running Xorg or Wayland session?

Hi,

I don’t know…
…I am running default that KDE installs.

Jesse

Hi
So run xinput as your user, run the following command as your user;


echo $XDG_SESSION_TYPE

If it’s wayland… then not sure xinput would work…

echo $XDG_SESSION_TYPE

shows:

x11
new-host:/home/jlp # xinput
No protocol specified
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ USBest Technology SiS HID Touch Controller        id=11   [slave  pointer  (2)]
⎜   ↳ ETPS/2 Elantech Touchpad                  id=15   [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)]
    ↳ Asus Wireless Radio Control               id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Power Button                              id=9    [slave  keyboard (3)]
    ↳ Sleep Button                              id=10   [slave  keyboard (3)]
    ↳ USB2.0 HD UVC WebCam: USB2.0 HD           id=12   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=13   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
new-host:/home/jlp # echo $XDG_SESSION_TYPE
x11

Hi,

I got it working:

xinput disable 11

Thanks!

Jesse

Uggg…

Does not survive a reboot?
Any idea how to disable the touchscreen permanently?

Jesse

  1. Since you’re using Xorg, you can disable globally by creating a custom .conf file under /etc/X11/xorg.conf.d/ (eg 85-touchscreen.conf)

Make sure the identifier name matches your device name from ‘xinput list’, so something like the following…

Section "InputClass"
   Identifier    "USBest Technology SiS HID Touch Controller"
   MatchIsTouchscreen   "true"
   Option    "Ignore"   "true"
EndSection

It will take effect next time that Xorg starts.

  1. Alternatively, you can disable it as a user by adding the appropriate command to KDE autostart

System Settings > Workspace > Startup and Shutdown > Autostart > ‘Add Program…’, Add the 'xinput disable 11 ’ command, and make sure to enable ‘Run in terminal’ under ‘Terminal options’. That should take effect the next time your user desktop is started.

PS Using

xinput disable "USBest Technology SiS HID Touch Controller"

may be better than the numeric ID as that may change if other input devices are added etc.

That worked perfectly, thanks!