Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Feb 2001 14:25:07 +0900
From:      Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To:        Matt Dillon <dillon@earth.backplane.com>
Cc:        Warner Losh <imp@harmony.village.org>, Jesper Skriver <jesper@skriver.dk>, Robert <robert@chalmers.com.au>, freebsd-stable@FreeBSD.ORG, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject:   Re: uh oh - after 4 -> 4.2 cvsup, no keyboard. any ideas? 
Message-ID:  <200102110525.OAA06084@zodiac.mech.utsunomiya-u.ac.jp>
In-Reply-To: Your message of "Sat, 10 Feb 2001 20:46:54 PST." <200102110446.f1B4ksR29654@earth.backplane.com> 
References:  <20010204112503.E71706@skriver.dk> <EJEPLCEELLLLAMPNEJMHIECHCLAA.robert@chalmers.com.au> <200102110424.f1B4OVW18984@harmony.village.org>  <200102110446.f1B4ksR29654@earth.backplane.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>     It's probably the stupid USB keyboard mod, which disables the standard
>     keyboard when no keyboard is attached during boot, unless you specify
>     flags 0x1 for the keyboard controller, even if no USB keyboard is found.

No, this is not true. Syscons uses whatever keyboard that is available
at boot.  If both the AT keyboard and the USB keyboard are attached
and detected, the one which are detected first will be used; and 
that is the AT keyboard.  

Without the flags 0x1, the AT keyboard driver will ALWAYS install,
even if an AT keyboard is not attached.  This has been the default
behavior since FreeBSD 1.X, because there are systems (mostly servers)
to which people want to attach the keyboard only when necessary.
(I still don't recommend hot plugging the AT keyboard. But, many people
want it...)

This behavior creats problems for those who wants to use the USB
keyboard which is fully capable of hot plugging/unplugging, because
syscons will always use the AT keyboard driver even when the AT
keyboard is not present.  The flags 0x1 will instruct the AT
keyboard driver to fail when an AT keyboard is not available.

This way, together with the flags 0x100 for syscons, syscons will
detect and use the USB keyboard when it's plugged.  If no keyboard is
attached to the system at boot time, syscons will have no input
device. 

And this is creating another problem for those who 
wants to hot-plug the AT keyboard... Because the keyboard 
is not attached at boot time, the AT keyboard driver 
Those people should REMOVE the flags 0x1 from the AT keyboard
driver.

This flag have been in existance for a long time, but it only made
default since 4.1-RELEASE (see GENERIC rev 1.245.2.5).

>     I don't mind having USB keyboard detection in there, but it should not go
>     and disable the main keyboard if the main keyboard doesn't happen to be
>     plugged in.

No, as I wrote the above, the USB keyboard driver does not disable
the AT keyboard driver.

Kazu

>     This is like the fifth person who has gotten smacked by that.  It's
>     *really* annoying to have all of one's rack mount machines suddenly
>     stop accepting a keyboard being plugged in after an upgrade.
>
>						-Matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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