cvs commit: src/sys/isa psm.c
M. Warner Losh
imp at bsdimp.com
Fri Aug 27 17:49:51 PDT 2004
In message: <412FC97D.7A25D5D5 at freebsd.org>
Andre Oppermann <andre at FreeBSD.org> writes:
: Brian Somers wrote:
: > > Large Portions by: Brian Somers <brian at 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
More information about the cvs-src
mailing list