From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 14 15:40:23 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 0135716A4CF for ; Tue, 14 Sep 2004 15:40:23 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D5C843D1D for ; Tue, 14 Sep 2004 15:40:15 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i8EFcJuE044518; Tue, 14 Sep 2004 09:38:20 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 14 Sep 2004 09:39:02 -0600 (MDT) Message-Id: <20040914.093902.122063483.imp@bsdimp.com> To: resident@b-o.ru From: "M. Warner Losh" In-Reply-To: <200409141522.14053.resident@b-o.ru> References: <16710.46860.769767.857543@roam.psg.com> <1095154335.986.36.camel@localhost> <200409141522.14053.resident@b-o.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable 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 15:40:23 -0000 In message: <200409141522.14053.resident@b-o.ru> Riabtsev Andrew writes: : On 14 September 2004 13:32, Vladimir Grebenschikov wrote: : > =F7 =D0=CE, 13/09/2004 =D7 23:17 -1000, Randy Bush =D0=C9=DB=C5=D4:= : > > so i boot my thinkpad t40p with normal keyboard and touchpad mous= e. : > > i decide to go to usb mouse and keyboard. it seems to work to mo= ve : > > 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 mo= de 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 so= mehow so = : i can plug any usb keyboards? Or vendor and product is the same for a= ny = : 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