From owner-freebsd-mobile@FreeBSD.ORG Wed Sep 15 07:04:45 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 6301716A4EE for ; Wed, 15 Sep 2004 07:04:44 +0000 (GMT) Received: from postman.ksi.ru (postman.ksi.ru [195.68.167.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAEE043D45 for ; Wed, 15 Sep 2004 07:04:43 +0000 (GMT) (envelope-from resident@b-o.ru) Received: by postman.ksi.ru (CommuniGate Pro PIPE 4.1.8) with PIPE id 1638813; Wed, 15 Sep 2004 11:05:07 +0400 Received: from [195.68.167.123] (HELO [172.16.20.54]) by postman.ksi.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1638808 for freebsd-mobile@freebsd.org; Wed, 15 Sep 2004 11:05:03 +0400 From: Riabtsev Andrew To: freebsd-mobile@freebsd.org Date: Wed, 15 Sep 2004 11:04:56 +0400 User-Agent: KMail/1.7 References: <16710.46860.769767.857543@roam.psg.com> <200409141522.14053.resident@b-o.ru> <1095187833.1034.4.camel@localhost> In-Reply-To: <1095187833.1034.4.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200409151104.57150.resident@b-o.ru> X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-Proceed_240578_by_spamtest: 1 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: Wed, 15 Sep 2004 07:04:46 -0000 On 14 September 2004 22:50, Vladimir Grebenschikov wrote: > =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 > > 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? > > 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) I'm using FreeBSD5.3BETA3 and here is 'usbd -dv' output: usbd: device-attach event at 1095230771.569802000, product 0x3002, Alcor=20 Micro: vndr=3D0x0566 prdct=3D0x3002 rlse=3D0x0100 clss=3D0x0000 subclss=3D0x0000= prtcl=3D0x0000 device names: ukbd0 usbd: Found action 'Keybord' for product 0x3002, Alcor Micro at ukbd0 usbd: Executing '/usr/sbin/kbdcontrol -k /dev/${DEVNAME} < /dev/console' kbd1 ukbd0, type:generic (0) usbd: device-detach event at 1095230790.016759000, product 0x3002, Alcor=20 Micro: vndr=3D0x0566 prdct=3D0x3002 rlse=3D0x0100 clss=3D0x0000 subclss=3D0x0000= prtcl=3D0x0000 usbd: Found action 'USB device' for product 0x3002, Alcor Micro =2E...