From owner-cvs-all@FreeBSD.ORG Sat Aug 28 00:49:51 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AF1216A4CE; Sat, 28 Aug 2004 00:49:51 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A1B343D48; Sat, 28 Aug 2004 00:49:50 +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 i7S0lRh1019668; Fri, 27 Aug 2004 18:47:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 27 Aug 2004 18:47:26 -0600 (MDT) Message-Id: <20040827.184726.104031839.imp@bsdimp.com> To: andre@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <412FC97D.7A25D5D5@freebsd.org> References: <200408272125.i7RLPG3K076074@repoman.freebsd.org> <20040828003309.2796b8f3@dev.lan.Awfulhak.org> <412FC97D.7A25D5D5@freebsd.org> 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: brian@Awfulhak.org cc: gibbs@FreeBSD.org cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/isa psm.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2004 00:49:51 -0000 In message: <412FC97D.7A25D5D5@freebsd.org> Andre Oppermann writes: : Brian Somers wrote: : > > Large Portions by: Brian Somers : > > Inspired and Frustrated by: Belkin KVMs : > > Reviewed by: njl, philip : > > : > > Revision Changes Path : > > 1.80 +120 -98 src/sys/isa/psm.c : > : > Good stuff - thanks for all your work! : : Do have an idea how to get a PS2 keyboard recognized if none was : connected when the machine booted? The docs say it will reprobe : from time to time if the appropriate flags are set. But it never : worked for me on any machine I tried. It's quite nasty on KVMs : when you boot a machine and it is switched to some other screen : when the kernel probes the keyboard. % egrep sc /boot/device.hints hint.sc.0.at="isa" hint.sc.0.flags="0x100" % man sc ... Driver Flags 0x0100 (AUTODETECT_KBD) This option instructs the syscons driver to periodically scan for a keyboard device if it is not currently attached to one. Other- wise, the driver only probes for a keyboard once during bootup. is supposed to do the trick. However, you also need: Driver Flags The atkbd driver accepts the following driver flags. They can be set either in /boot/device.hints, or else from within the boot loader (see loader(8)). bit 0 (FAIL_IF_NO_KBD) By default the atkbd driver will install even if a keyboard is not actually connected to the system. This option prevents the driver from being installed in this situation. so you must make sure bit 0 isn't set in the hint.atkbd.0.flags hint. For a while it was set in the default hints file. However, it has been a while since I've actually tested this, however. Warner