From owner-freebsd-current@FreeBSD.ORG Tue Aug 31 21:56:45 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 00CCB16A4CE; Tue, 31 Aug 2004 21:56:45 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1C5A43D1F; Tue, 31 Aug 2004 21:56:44 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i7VLusil010932; Tue, 31 Aug 2004 14:56:54 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i7VLusuT010931; Tue, 31 Aug 2004 14:56:54 -0700 Date: Tue, 31 Aug 2004 14:56:54 -0700 From: Brooks Davis To: John Baldwin Message-ID: <20040831215654.GF25134@odin.ac.hmc.edu> References: <20040826161900.GA31925@prophecy.dyndns.org> <20040828025829.GA51618@prophecy.dyndns.org> <20040827.212912.43023076.imp@bsdimp.com> <200408311655.26332.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B0nZA57HJSoPbsHY" Content-Disposition: inline In-Reply-To: <200408311655.26332.jhb@FreeBSD.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: apeiron@comcast.net cc: freebsd-current@freebsd.org cc: midian@ihme.org cc: "M. Warner Losh" 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 21:56:45 -0000 --B0nZA57HJSoPbsHY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 t= hat > > : > 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 upgr= ade > > : > 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 u= hid > > : upgrade in March, then it could not possibly have worked with 5.2-CUR= RENT > > : (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... >=20 > Alfred turned the atkbd probing off a while back: >=20 > alfred 2004/04/01 13:48:31 PST >=20 > FreeBSD src repository >=20 > Modified files: > sys/i386/conf GENERIC.hints > Log: > Fix booting with ps2 keyboards. >=20 > Revision Changes Path > 1.13 +0 -1 src/sys/i386/conf/GENERIC.hints >=20 > This didn't actually affect booting with a PS/2 keyboard, but only meant = that=20 > you could boot up without a PS/2 keyboard and then plug it in, at the cos= t of=20 > breaking all uses of USB keyboards unless you use explicit kbdcontrol=20 > commands. The instant-MFC was backed out of RELENG_4 at the request of r= e@=20 > 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. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --B0nZA57HJSoPbsHY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBNPQlXY6L6fI4GtQRAv50AJ0aXJ+vIY5DbzErcXky5qFv5yZ3vwCfTd0t sYxcIZTv+UwrWqF2+VMPOV8= =0jyM -----END PGP SIGNATURE----- --B0nZA57HJSoPbsHY--