If the built-in keyboard of your laptop is short-circuited, for example, it is desirable that it is disabled even before the Display Manager, for it might cause trouble on the user/password input.
- You use the linux kernel.
- You use grub.
These instructions will help disabling the driver of the built-in keyboard directly on the kernel, via grub.
Usually, the built-in keyboard is managed by the i8042
module, which manages PS/2 keyboards and mice.
Sometimes, the built-in keyboard is wired as an internal USB device, so it is managed by the module usbhid
.
In lucky cases, the module is proprietary. Here be dragons.
-
Edit
/etc/default/grub
. Root privileges needed. -
Find the
GRUB_CMDLINE_LINUX_DEFAULT
variable. -
Add the parameter
i8024.nokdb
.
For example:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8024.nokdb"
Check the kernel documentation for more information on parameters: https://docs.kernel.org/admin-guide/kernel-parameters.html
Mind that i8042.nokbd
does not affect USB keyboards nor other PS/2 devices, only the PS/2 keyboard.
-
Make sure to save the changes.
-
Reboot.
soon
Do you have a laptop with proprietary modules for the built-in keyboard? It may happen on MacBooks, ThinkPads or gamer laptops. Help me feeding this section with specific information.