Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2004 18:47:26 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        andre@FreeBSD.org
Cc:        cvs-src@FreeBSD.org
Subject:   Re: cvs commit: src/sys/isa psm.c
Message-ID:  <20040827.184726.104031839.imp@bsdimp.com>
In-Reply-To: <412FC97D.7A25D5D5@freebsd.org>
References:  <200408272125.i7RLPG3K076074@repoman.freebsd.org> <20040828003309.2796b8f3@dev.lan.Awfulhak.org> <412FC97D.7A25D5D5@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <412FC97D.7A25D5D5@freebsd.org>
            Andre Oppermann <andre@FreeBSD.org> writes:
: Brian Somers wrote:
: > >   Large Portions by: Brian Somers <brian@Awfulhak.org>
: > >   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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040827.184726.104031839.imp>