This question already has an answer here:

I am using external usb keyboard. I want to disable laptop's internal keyboard using software.

I know that i can just remove the internal keyboards wire and disconnect it physically, but i wanted to disable it using software so that later I can enable it by just executing a command in terminal easily. I am talking about disabling the keyboard and NOT the keyboard layout.

I am having Hp-Compaq Presario A965 TU Laptop Intel Centrino Core 2 Duo(Freq. 2 GHz). I am using 64 bit Ubuntu Lucid Lynx.

marked as duplicate by stephenmyall, Seth, psusi, Eric Carvalho, Alaa Ali Aug 30 '13 at 4:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


You can disable the keyboard via boot options:

  1. Open /boot/grub/grub.cfg as sudo with your favourite text editor.
  2. Add i8042.nokbd, preferably to the end of the file, and save.

Source: Ubuntu Forums Thread

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