Sample Header Ad - 728x90

Disable laptop touchpad on Wayland

10 votes
4 answers
13259 views
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.
Asked by piegames (967 rep)
Feb 23, 2020, 07:11 PM
Last activity: Dec 22, 2024, 01:27 PM