I use my USB keyboard in home and now I want disable the laptop keyboard on plug of this keyboard.

How could I achieve this?

I use ArchLinux and DWM.

ps: i found my device and in udev disable it

xinput disable 'AT Translated Set 2 keyboard'
  • May I ask why you want to accomplish this?
    – jippie
    May 30, 2012 at 20:51
  • @jippie some times, some people work with my laptop keyboard and its bad :D i use my keyboard and monitor Jun 4, 2012 at 2:25

1 Answer 1


Write a udev script that floats the built-in keyboard using xinput.

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.