summaryrefslogtreecommitdiffstats
path: root/etc/devd.conf
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-09-01 00:08:15 +0000
committerbrooks <brooks@FreeBSD.org>2004-09-01 00:08:15 +0000
commit77972e1ec2ccf47109756cd13b82696e5a5696b3 (patch)
treec7844688e9b2968a86c0dd3d5cd60f2a0974516f /etc/devd.conf
parent1ab1efcc56cbca21c0b273c0f3739ed95d1fc444 (diff)
downloadFreeBSD-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
Diffstat (limited to 'etc/devd.conf')
-rw-r--r--etc/devd.conf10
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.
#
OpenPOWER on IntegriCloud