Distro and X.org Version Information
I am using Ubuntu 12.10 with xserver-xorg/quantal 1:7.7+1ubuntu4.
Disabling Built-In Keyboard in X11
I have a laptop with a built-in keyboard that no longer recognizes certain letters. I am currently disabling the built-in keyboard by opening a terminal and running the following shell function:
disable_keyboard () {
xinput --set-int-prop $(
xinput --list |
ruby -ane 'if /AT.*keyboard/ then puts $_.match(/(?<==)\d+/) end'
) "Device Enabled" 8 0
}
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.
I tried modifying my X.org configuration as follows:
# /etc/X11/xorg.conf.d/disable_keyboard
Section "InputClass"
Identifier "disable built-in keyboard"
MatchIsKeyboard "on"
MatchProduct "AT Translated Set 2 keyboard"
Option "Ignore" "on"
EndSection
However, either this is not being sourced when X11 starts, or it is not the correct incantation. How can I correctly configure X11 to use only the USB keyboard?