I need to disable the touchpad of my laptop. I am using Gnome on Wayland.
libinput
should provide this functionality, but apparently it doesn't.xinput
doesn't work because I'm on Wayland.- I think Gnome offered some switch to do so in the input settings, but it isn't there anymore (Gnome shell 3.34 — maybe this is an Xorg exclusive feature?).
Is it really asked too much if I want do disable an input device?
Edit: xinput
is NOT a solution!
Its man page has a whole section on Wayland (emphasis mine):
XWAYLAND
Xwayland is an X server that uses a Wayland Compositor as backend. Xwayland acts as translation layer between the X protocol and the Wayland protocol but does not have direct access to the hardware. The X Input Extension devices created by Xwayland ("xwayland-pointer", "xwayland-keyboard", etc.) map to the Wayland protocol devices, not to physical devices. These X Input Extension devices are only visible to other X clients connected to the same Xwayland process. Changing properties on Xwayland devices only affects the behavior of those clients. For example, disabling an Xwayland device with xinput does not disable the device in Wayland-native applications. Other changes may not have any effect at all. In most instances, using xinput with an Xwayland device is indicative of a bug in a shell script and xinput will print a warning. Use the Wayland Compositor's native device configuration methods instead.
TL;DR: If I disable the touchpad using xinput
, it will still continue working as before, but XWayland applications won't see the cursor move anymore.
xinput list
work (it may still work under Wayland I believe) and show a touchpad (like "SynPS/2 Synaptics TouchPad" or similar? (You may have to install thexinput
package.)xwayland-pointer:16
andxwayland-relative-pointer:16
, among a few other similar entries (probably for mouse and graphics tablet, but I can't really tell them apart)xinput list
and we will have a look together.