This works (albeit manually) by disabling the built-in AT Translated Set 2 keyboard while allowing my external Chicony USB Keyboard to continue working. However, I'd really like this to happen automatically during X11 sessions.

Maybe you just write an udev rule that will run your script on connect of USB keyboard?
–
Eddy_EmFeb 1 '13 at 20:42

@Eddy_Em that probably won't work, since the USB keyboard is probably connected all the time - the rule would fire way before the X would start. Plus it might need to take care of possible multiple X servers.
–
peterphFeb 3 '13 at 22:13

1 Answer
1

Disable Built-In Keyboard and Trackpad with InputClass

One can disable the built-in devices by setting the Ignore option in an input class to true or on. The necessary information to match the devices can usually be gathered from /var/log/Xorg.0.log.

I chose to place my disabling sections in the evdev configuration file that was already present, since on my system both devices use the evdev driver. The sections could just as easily go somewhere else, but I'm unsure about the precedence of the matching rules and decided to play it safe by placing the rules in the same file above other devices that contain a Driver "evdev" line.