I have a keyboard External How can I lock the built-in keyboard in the laptop with Manjaro
You want to temporarily disable your internal keyboard?
Use xinput
to get the name or id of the device, you should see something like this:
$ xinput
...
AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
...
Either will work but the id can change and the name doesn’t, so if you put it in a script then use the name.
To disable it:
xinput disable 14
To re-enable:
xinput enable "AT Translated Set 2 keyboard"
This will only last until you logout/reboot.
If you want it to be permanent, you can blacklist it.
echo 'blacklist atkbd' | sudo tee /etc/modprobe.d/kill-atkbd.conf
sudo mkinitcpio -P
After a reboot your internal keyboard will be disabled.
2 Likes
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.