Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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'
share|improve this question
May I ask why you want to accomplish this? – jippie May 30 '12 at 20:51
@jippie some times, some people work with my laptop keyboard and its bad :D i use my keyboard and monitor – Efazati Jun 4 '12 at 2:25
up vote 0 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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