diff options
author | brooks <brooks@FreeBSD.org> | 2004-09-01 00:08:15 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-09-01 00:08:15 +0000 |
commit | 77972e1ec2ccf47109756cd13b82696e5a5696b3 (patch) | |
tree | c7844688e9b2968a86c0dd3d5cd60f2a0974516f | |
parent | 1ab1efcc56cbca21c0b273c0f3739ed95d1fc444 (diff) | |
download | FreeBSD-src-77972e1ec2ccf47109756cd13b82696e5a5696b3.zip FreeBSD-src-77972e1ec2ccf47109756cd13b82696e5a5696b3.tar.gz |
When an USB keyboard is plugged in to a machine with a builtin keyboard,
cause the USB keyboard to take over from the builtin one. This means my
laptop just works when I'm using it as a desktop.
Reviewed by: imp
-rw-r--r-- | etc/devd.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 70fde5c..a19fee9 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -55,6 +55,16 @@ detach 100 { device-name "ed50"; }; +# When a USB keyboard arrives, attach it as the console keyboard +attach 100 { + device-name "ukbd0"; + action "test -c /dev/kbd1 && kbdcontrol -k /dev/kbd1 < /dev/console"; +}; +detach 100 { + device-name "ukbd0"; + action "kbdcontrol -k /dev/kbd0 < /dev/console"; +}; + # # Rescan scsi device-names on attach, but not detach. # |