Fedora – How to disable Internal Keyboard on Fedora 26 (Wayland)

fedoragnomewayland

I installed Fedora 26 and noticed that the Internal keyboard is behaving a bit weird. Keys are getting pressed all the time.

I use an external keyboard, so I can do without the built-in one.

P.S : This is not a duplicate of How to disable laptop keyboard on plugging in a USB keyboard? as the answer is for Xorg and not for wayland

Best Answer

I'm not able to try this, but perhaps you can "grab" input from the unwanted device using evtest so that they are not delivered to other processes. Find the device from ls /dev/input/by-id/. For example, I have /dev/input/by-id/usb-05f3_0007-event-kbd which is a symbolic link to ../event2. Presumably for a built-in keyboard there should be a similar non-usb "kbd". You can then try

sudo evtest --grab /dev/input/event2

on the appropriate file or link.

Related Question