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


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.

  • Sorry for the late reply, but when I run ls /dev/input/by-id the following devices are shown. usb-SIGMACHIP_Usb_Mouse-event-mouse@ usb-_USB_Keyboard-event-if01@ usb-Vimicro_corp._Lenovo_EasyCamera-event-if00@ usb-SIGMACHIP_Usb_Mouse-mouse@ usb-_USB_Keyboard-event-kbd@ If I disable kdb keyboard the external keyboard stops working, and when I try to disable the if01 nothing happens, and both keyboards work like magic. – Aswin Mohan Jul 30 '17 at 2:04
  • Sorry for the late reply, but – Aswin Mohan Jul 30 '17 at 2:09
  • Your other keyboard might be listed as /dev/input/by-path/platform*kbd. – meuh Jul 30 '17 at 12:53
  • Nop, still does not work, – Aswin Mohan Jul 31 '17 at 3:39

I have the same problem. Wayland compositor creates an abstract for the keyboard so all client couldn't see the hardware keyboard. I tried as below and it works:

sudo libinput list-devices

In my case, in my case, it leads to /dev/input/event6. Then you can use evtest as meuh's answer.

  • BTW, you can also just run evtest, and it will list all event devices. – dirkt Aug 10 '17 at 5:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.