From owner-freebsd-mobile@FreeBSD.ORG Wed Sep 15 07:01:16 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 9B31216A4CE for ; Wed, 15 Sep 2004 07:01:16 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70C1543D54 for ; Wed, 15 Sep 2004 07:01:15 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1C7INu-0000Mp-B3; Tue, 14 Sep 2004 22:50:34 +0400 From: Vladimir Grebenschikov To: Riabtsev Andrew In-Reply-To: <200409141522.14053.resident@b-o.ru> References: <16710.46860.769767.857543@roam.psg.com> <200409141522.14053.resident@b-o.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Tue, 14 Sep 2004 22:50:33 +0400 Message-Id: <1095187833.1034.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-mobile Subject: Re: switching to usb kbd and mouse X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2004 07:01:16 -0000 =F7 =D7=D4, 14/09/2004 =D7 15:22 +0400, Riabtsev Andrew =D0=C9=DB=C5=D4: > 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 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 s= hows=20 > me that on detach event usbd did not receive devname. So i had to add str= ings=20 > vendor and product in "Keyboard" section. Is it possible to fix it someho= w so=20 > i can plug any usb keyboards? Or vendor and product is the same for any=20 > keyboard? What FreeBSD version are you use ? There was such bug some time ago (about no detach event for USB keyboard, see my PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D46488) In past I have workaround it with detecting detach event on USB hub, but anyway bug fixed in both RELENG_5 and CURRENT (not sure about RELENG_4) --=20 Vladimir B. Grebenchikov vova@fbsd.ru