From owner-freebsd-questions@FreeBSD.ORG Thu Feb 21 19:48:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCB3216A400 for ; Thu, 21 Feb 2008 19:48:47 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id B74CE13C448 for ; Thu, 21 Feb 2008 19:48:47 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 4ADBB654F2 for ; Thu, 21 Feb 2008 13:48:47 -0600 (CST) Date: Thu, 21 Feb 2008 13:48:46 -0600 From: Paul Schmehl To: FreeBSD Questions Message-ID: <3E6E8DF90F5BC59E01E992E1@utd59514.utdallas.edu> In-Reply-To: <47BDD407.6080009@diamondbox.dk> References: <9922D43C5E8BF58214D7434E@utd59514.utdallas.edu> <47BDD407.6080009@diamondbox.dk> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: 7.0 RC2 usb keyboard and mouse problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 19:48:47 -0000 --On Thursday, February 21, 2008 20:41:59 +0100 Nikolaj Thygesen wrote: > Paul Schmehl wrote: >> I just installed 7.0 RC2 on a brand new Dell - dual processor dual >> core Intel (so four processors), and I'm losing the keyboard and mouse >> after taking certain actions. For example, I started setting up X >> (Xorg --configure) and then launched it (X -config >> /root/xorg.conf-new), and when I get to the GUI the mouse and keyboard >> are gone. Sometimes I can restore functionality by unplugging the >> devices and then plugging them back in. This is happening in the >> console as well, not just in the GUI. >> >> I've fetched the latest sources using cvsup. Will rebuilding the >> kernel solve this problem? Is this a known issue? >> >> usbhidctl shows ums0, ums1, ukbd0 and ukbd1 to be busy. >> >> [root@utd65257 ~]# usbhidctl -a -f /dev/ums0 >> usbhidctl: /dev/ums0: Device busy >> [root@utd65257 ~]# usbhidctl -a -f /dev/ums1 >> usbhidctl: /dev/ums1: Device busy >> [root@utd65257 ~]# usbhidctl -a -f /dev/ukbd >> ukbd0 ukbd1 >> [root@utd65257 ~]# usbhidctl -a -f /dev/ukbd0 >> usbhidctl: /dev/ukbd0: Device busy >> [root@utd65257 ~]# usbhidctl -a -f /dev/ukbd1 >> usbhidctl: /dev/ukbd1: Device busy >> >> This is what I see after unplugging both devices and plugging them in >> to different usb receptacles. >> >> usbdevs >> addr 1: UHCI root hub, Intel >> addr 2: product 0x2105, vendor 0x413c >> addr 3: product 0x4d15, vendor 0x0461 >> addr 1: UHCI root hub, Intel >> addr 1: EHCI root hub, Intel >> addr 1: UHCI root hub, Intel >> addr 1: UHCI root hub, Intel >> addr 1: UHCI root hub, Intel >> addr 3: product 0x2105, vendor 0x413c >> addr 2: product 0x4d15, vendor 0x0461 >> addr 1: EHCI root hub, Intel >> >> FreeBSD utd65257.utdallas.edu 7.0-RC2-p1 FreeBSD 7.0-RC2-p1 #0: Tue >> Feb 12 22:23:33 UTC 2008 >> root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >> >> grep usb /var/run/dmesg.boot >> usb0: on uhci0 >> usb0: USB revision 1.0 >> uhub0: on usb0 >> usb1: on uhci1 >> usb1: USB revision 1.0 >> uhub1: on usb1 >> usb2: waiting for BIOS to give up control >> usb2: EHCI version 1.0 >> usb2: wrong number of companions (3 != 2) >> usb2: companion controllers, 2 ports each: usb0 usb1 >> usb2: on ehci0 >> usb2: USB revision 2.0 >> uhub2: on usb2 >> usb3: on uhci2 >> usb3: USB revision 1.0 >> uhub3: on usb3 >> usb4: on uhci3 >> usb4: USB revision 1.0 >> uhub4: on usb4 >> usb5: on uhci4 >> usb5: USB revision 1.0 >> uhub5: on usb5 >> usb6: waiting for BIOS to give up control >> usb6: timed out waiting for BIOS >> usb6: EHCI version 1.0 >> usb6: companion controllers, 2 ports each: usb3 usb4 usb5 >> usb6: on ehci1 >> usb6: USB revision 2.0 >> uhub6: on usb6 >> >> Any clues or help would be appreciated. >> > > Hi Paul > > I just spent about a week solving that very same issue. The thing is that in > order for the usb mouse and keyboard to work during the initial boot > sequence, ps/2 style devices are needed, so your bios is probably configured > for simulating ps/2 (legacy) devices on usb. Keep it that way! > As the kernel boots, usb devices are suddenly supported, but present ps/2 > devices (even the simulated legacy ones) will hide the usb devices from the > kernel, so in order to get access to these the following lines must be added > to "/boot/device.hints": > > hint.atkbd.0.disable="1" > hint.atkbdc.0.disable="1" > > > I understand that only one of them is needed, but I have no idea which one. > It supposedly differs from machine to machine. > The last crucial point (and the one I really fought with) is the fact that > not all usb ports are created equal! If the above doesn't work, try switching > usb ports. It seems some usb ports/hubs are preferred over others. On my > machine the two front ports work, but the six ports on the rear of the > machine don't :o( > At least it works now, and I no longer need to have two keyboards attached. > > br - N :o) > I found a post in stable describing the exact same issue. The OP "solved" it by connecting a hub to a port on the back of the machine and then connecting the keyboard and mouse to the hub. So, I plugged in one of my monitors and then connected the keyboard and mouse to the monitor, and they work fine. I joined the stable list so I can report this and possibly help troubleshoot it. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/