Other

Using udev to disable the built in keyboard on your laptop

🇳🇴 · Hackeriet · eilefsen

The built in keyboard on my laptop is annoying to use, everything is wrong about it (Dell XPS Plus). To make matters worse, it is also a european layout that i am not used to. I type at perhaps half my usual speed using the built in keyboard, so i wish to place my regular mechanical keyboard on top and disable the built in keyboard (so i dont accidentally hit the built in keys) How to First you must determine the name of your bluetooth keyboard and the device path of your laptop keyboard. cat /proc/bus/input/devices | less The name of the bluetooth keyboard in my case is “BT Keyboard”, this is probably going to be the same as appears in your DE’s bluetooth settings My laptops built in keyboard is named “AT Translated Set 2 keyboard”, you can verify this using something like evtest. You want the device path for this, located beside the “Sysfs” key (in the output of the above cat command), in my case it is /devices/platform/i8042/serio0/input/input2/ . We can inhibit the device by writing a 1 to the file located at /sys/<your device path>/inhibited , you can dis-inhibit the dev