From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 14 16:55:41 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE63016A4CF for ; Tue, 14 Sep 2004 16:55:41 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEF3F43D2D for ; Tue, 14 Sep 2004 16:55:41 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i8EGuPTu021214; Tue, 14 Sep 2004 09:56:25 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i8EGuPiY021213; Tue, 14 Sep 2004 09:56:25 -0700 Date: Tue, 14 Sep 2004 09:56:25 -0700 From: Brooks Davis To: "M. Warner Losh" Message-ID: <20040914165625.GA18338@odin.ac.hmc.edu> References: <16710.46860.769767.857543@roam.psg.com> <1095154335.986.36.camel@localhost> <200409141522.14053.resident@b-o.ru> <20040914.093902.122063483.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <20040914.093902.122063483.imp@bsdimp.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: resident@b-o.ru cc: freebsd-mobile@freebsd.org Subject: Re: switching to usb kbd and mouse X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 16:55:42 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 14, 2004 at 09:39:02AM -0600, M. Warner Losh wrote: > In message: <200409141522.14053.resident@b-o.ru> > Riabtsev Andrew 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=20 > : me that on detach event usbd did not receive devname. So i had to add s= trings=20 > : vendor and product in "Keyboard" section. Is it possible to fix it some= how so=20 > : i can plug any usb keyboards? Or vendor and product is the same for any= =20 > : keyboard? >=20 > 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 --=20 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 --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBRyK4XY6L6fI4GtQRAhyAAKCLjqF8t9Ep9aeHosnCA1n9CwUsmACbBnq9 +jNFMtwWPkfsGQmcc5t7Hjg= =9ZQJ -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--