Re: switching to usb kbd and mouse
Brooks Davis <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.mobile |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 14, 2004 at 09:39:02AM -0600, M. Warner Losh wrote: > In message: <[email protected]> > Riabtsev Andrew <[email protected]> writes: > : On 14 September 2004 13:32, Vladimir Grebenschikov wrote: > : > ? ??, 13/09/2004 ? 23:17 -1000, Randy Bush ?????: > : > > so i boot my thinkpad t40p with normal keyboard and touchpad mouse. > : > > i decide to go to usb mouse and keyboard. it seems to work to move > : > > the mouse by just killing moused and restarting it as > : > > > : > > moused -p /dev/ums0 -t auto > : > > > : > > but how to i move the keyboard to usb? > : > > : > You need something like this: > : > > : > /etc/usbd.conf: > : > ... > : > # Keyboard > : > device "Keyboard" > : > devname "ukbd[0-9]+" > : > attach "/usr/sbin/kbdcontrol -k /dev/kbd1 < /dev/ttyv0" > : > detach "/usr/sbin/kbdcontrol -k /dev/kbd0 < /dev/ttyv0" > : btw this solution not working for me: usbd runned in debug verbose mode shows > : me that on detach event usbd did not receive devname. So i had to add strings > : vendor and product in "Keyboard" section. Is it possible to fix it somehow so > : i can plug any usb keyboards? Or vendor and product is the same for any > : keyboard? > > I've been using devd to get around such deficiencies. However, on > detach, it seems that I don't need to run kbdcontrol at all. Warner already know this but code to deal with this is in the default devd.conf in HEAD and RELENG_5. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBRyK4XY6L6fI4GtQRAhyAAKCLjqF8t9Ep9aeHosnCA1n9CwUsmACbBnq9 +jNFMtwWPkfsGQmcc5t7Hjg= =9ZQJ -----END PGP SIGNATURE-----