I need to disable the touchpad of my laptop. I am using Gnome on Wayland.
libinputshould provide this functionality, but apparently it doesn't.
xinputdoesn'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?
xinput is NOT a solution!
Its man page has a whole section on Wayland (emphasis mine):
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.