From owner-freebsd-mobile Mon Jan 14 17:29: 5 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from firehouse.net (dsl-64-130-18-61.telocity.com [64.130.18.61]) by hub.freebsd.org (Postfix) with SMTP id 1F1B237B402 for ; Mon, 14 Jan 2002 17:29:01 -0800 (PST) Received: (qmail 31655 invoked by uid 85); 15 Jan 2002 01:28:59 -0000 Date: Mon, 14 Jan 2002 20:28:58 -0500 From: Alan Clegg To: freebsd-mobile@freebsd.org Subject: USB Keyboard auto enable via usbd Message-ID: <20020114202858.C31216@shell.wetworks.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="tqI+Z3u+9OQ7kwn0" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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