Date: Mon, 14 Jan 2002 20:28:58 -0500 From: Alan Clegg <alan@clegg.com> To: freebsd-mobile@freebsd.org Subject: USB Keyboard auto enable via usbd Message-ID: <20020114202858.C31216@shell.wetworks.org>
next in thread | raw e-mail | index | archive | help
--tqI+Z3u+9OQ7kwn0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've added the following section to my /etc/usbd.conf: device "USB Keyboard" devname "ukbd0" attach "kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null" detach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null" To take notice of the attachment (and detachment) of a USB keyboard. Any pro/con to getting this submitted to the code maintainers to include in the default config? My one issue is that I'd like to use ${DEVNAME} in the attach kbdcontrol, but, as you can see, the device is ukbd0 and the entry in /dev is kbd1. Now, my PictureBook shows: abc@bitsy:/home/abc% usbdevs -v Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 0= x0100 port 1 addr 2: power 64 mA, config 1, product 0x001c(0x001c), Microsoft(0x= 045e), rev 0x0500 port 1 addr 3: low speed, power 100 mA, config 1, Microsoft Natural Keybo= ard Pro(0x001d), Microsoft(0x045e), rev 0x0114 port 2 addr 4: low speed, power 100 mA, config 1, Microsoft IntelliMouse= =AE Optical(0x0039), Microsoft(0x045e), rev 0x0121 port 3 powered port 2 addr 5: self powered, config 1, USB Memory Stick Slot(0x0032), Sony= (0x054c), rev 0x0131 and automagically switches to the USB keyboard when it is attached.. AlanC --tqI+Z3u+9OQ7kwn0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8Q4XayJP8xSfQVdsRAk/JAKCTqwI3F4aphIgaSkAn4KJZntgb7ACgsNj0 qTAUI1Oxr89ayDhkDBMqE4o= =tGy/ -----END PGP SIGNATURE----- --tqI+Z3u+9OQ7kwn0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020114202858.C31216>