From owner-freebsd-current@FreeBSD.ORG Fri Nov 7 09:07:22 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB17E1065673 for ; Fri, 7 Nov 2008 09:07:22 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by mx1.freebsd.org (Postfix) with ESMTP id 83A4A8FC18 for ; Fri, 7 Nov 2008 09:07:22 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA02.westchester.pa.mail.comcast.net with comcast id c96k1a0050EZKEL5297BiB; Fri, 07 Nov 2008 09:07:11 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.westchester.pa.mail.comcast.net with comcast id c97L1a0062P6wsM3M97MxW; Fri, 07 Nov 2008 09:07:21 +0000 X-Authority-Analysis: v=1.0 c=1 a=BsiE5UjOb94A:10 a=vvzDfkpqIs0A:10 a=QycZ5dHgAAAA:8 a=D9INzaOjT7FV8m1QOa4A:9 a=HsPoNmINfnQ6G92AJtEA:7 a=WIUgZdrq2VJaW21I_Z0Jkb32Ol8A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 0228D5C19; Fri, 7 Nov 2008 01:07:19 -0800 (PST) Date: Fri, 7 Nov 2008 01:07:19 -0800 From: Jeremy Chadwick To: Eygene Ryabinkin Message-ID: <20081107090719.GA1287@icarus.home.lan> References: <20081107075232.GA1608@icarus.home.lan> <4bSZ78p2klKnbZ/rhiyIIUK0VNE@qm7gbYKMPO53E/nl+D5eD8YyL1A> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4bSZ78p2klKnbZ/rhiyIIUK0VNE@qm7gbYKMPO53E/nl+D5eD8YyL1A> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-current@freebsd.org Subject: Re: USB4BSD (USB2): Microsoft 4000 keyboard unusable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 09:07:22 -0000 On Fri, Nov 07, 2008 at 11:38:49AM +0300, Eygene Ryabinkin wrote: > Thu, Nov 06, 2008 at 11:52:32PM -0800, Jeremy Chadwick wrote: > [...] > > Everything built (csup date: 2008/11/06 ~2200 PST) fine, no issues -- > > until I noticed my USB keyboard didn't function any longer. > > > > During boot0/boot2/loader, the keyboard functions (as expected, re: USB > > Legacy option is enabled in my BIOS), and the keyboard LEDs are lit as > > expected. The kernel loads, some drivers initialise, and the LEDs go > > off. Once the USB2 stack loads, the keyboard LEDs turn back up, but as > > stated, no keypresses are registered. I was forced to hook up a PS/2 > > keyboard. > [...] > > The keyboard in question is a Microsoft Natural Ergonomic 4000. This > > keyboard is known for being a real pain in the ass, since some of the > > multimedia keys, and the infamous F-Lock key, are HID-controlled, while > > alphanumeric are USB keyboard class controlled. > > I used to have this beast. I had simular problems with it, but I had > managed to overcome them by switching the keyboard to the legacy boot > protocol. I am attaching two old patches, one for the stock USB stack > and one for the HPS stack (the old one, more than a year ago). So, they > can be worthless now, but you can give it a shot. > > I had quickly ported my old patch to the current usb20 ukbd2.c, this > patch is attached too, but I have no such keyboard at hand just now, so > I can't test the patches in question. If you will succeed with them -- > please, report back. Eygene, Thanks for providing the patches in question. I applied the third one: > --- sys/dev/usb2/input/ukbd2.c 4 Nov 2008 02:31:03 -0000 1.1 > +++ sys/dev/usb2/input/ukbd2.c 7 Nov 2008 08:32:41 -0000 Sadly it made no difference. I *did not* see any "set protocol failed" messages during boot, so I believe the set worked correctly. Since this box is more or less a server, and I spend very little time at its console (sans recent events :-) ), I think an easier option would be for me to go with a different (simpler) model of USB keyboard, or dig up an old PS/2 Dell keyboard for permanent use. If you'd like me to test any other patches or want me to make code modifications and try things out, I'll be more than happy to test. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |