From owner-freebsd-current@FreeBSD.ORG Tue Aug 31 22:02:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 103CE16A4CE; Tue, 31 Aug 2004 22:02:57 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FE6543D31; Tue, 31 Aug 2004 22:02:56 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i7VM1ii9071729; Tue, 31 Aug 2004 16:01:45 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 31 Aug 2004 16:01:54 -0600 (MDT) Message-Id: <20040831.160154.100262831.imp@bsdimp.com> To: brooks@one-eyed-alien.net From: "M. Warner Losh" In-Reply-To: <20040831215654.GF25134@odin.ac.hmc.edu> References: <20040827.212912.43023076.imp@bsdimp.com> <200408311655.26332.jhb@FreeBSD.org> <20040831215654.GF25134@odin.ac.hmc.edu> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: apeiron@comcast.net cc: freebsd-current@freebsd.org cc: midian@ihme.org Subject: Re: USB keyboard problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 31 Aug 2004 22:02:57 -0000 In message: <20040831215654.GF25134@odin.ac.hmc.edu> Brooks Davis writes: : On Tue, Aug 31, 2004 at 04:55:26PM -0400, John Baldwin wrote: : > On Friday 27 August 2004 11:29 pm, M. Warner Losh wrote: : > > In message: <20040828025829.GA51618@prophecy.dyndns.org> : > > : > > Christopher Nehren writes: : > > : On Fri, Aug 27, 2004 at 22:41:32 EDT, M. Warner Losh scribbled these : > > : : > > : curious markings: : > > : > I guess it all depends on what you mean by recently. I'd thought that : > > : > some of my recent changes had broken it, but the breakage goes back : > > : > further than that. 5.2 release isn't 'recent', and I fully believe : > > : > that things may have changed since then... I see a major uhid upgrade : > > : > in that time frame, which may be the time of breakage... : > > : : > > : I understand your point, but that doesn't sit well with the fact that my : > > : joypad broke *after* I updated from 5.2-CURRENT of ~ August 15 to : > > : 6.0-CURRENT of ~ August 19. Logically, if it had been busted by the uhid : > > : upgrade in March, then it could not possibly have worked with 5.2-CURRENT : > > : (which it did, just as well as it did with 5.2.1-RELEASE[1]), correct? : > > : : > > : [1] Better, in fact, as the device wasn't detected at boot time in 5.2.1 : > > : but was in 5.2-CURRENT. : > > : > > Then I'm very confused... Time to dig deeper... : > : > Alfred turned the atkbd probing off a while back: : > : > alfred 2004/04/01 13:48:31 PST : > : > FreeBSD src repository : > : > Modified files: : > sys/i386/conf GENERIC.hints : > Log: : > Fix booting with ps2 keyboards. : > : > Revision Changes Path : > 1.13 +0 -1 src/sys/i386/conf/GENERIC.hints : > : > This didn't actually affect booting with a PS/2 keyboard, but only meant that : > you could boot up without a PS/2 keyboard and then plug it in, at the cost of : > breaking all uses of USB keyboards unless you use explicit kbdcontrol : > commands. The instant-MFC was backed out of RELENG_4 at the request of re@ : > due to POLA. : : The following entries in my devd.conf make things much happier on my : laptop. Maybe we should commit something like this to the default file: : : # When a keyboard arrives, attach it as the console keyboard : attach 100 { : device-name "ukbd0"; : action "test -c /dev/kbd1 && kbdcontrol -k /dev/kbd1 < /dev/console"; : } : detach 100 { : device-name "ukbd0"; : action "kbdcontrol -k /dev/kbd0 < /dev/console"; : } : : It has the slightly weird effect that the built in keyboard stops : working for console when you plug a USB keyboard in, but IMO that's less : lame then the current setup. Agreed. The irony is that the keyboard mux in the kernel wouldn't take much to be 'all physical keyboards feed the same logical keyboard' rather than 'ONE keyboard feeds the logical keyboard'. Just no one has gone and done it. Warner