|
I have more computers than I do keyboards and monitors. So the box I built doesn't have a keyboard
attached most of the time. But I found that if I did attach a keyboard to the box, I couldn't use it.
That is, I couldn't use the keyboard if it was attached after the box was booted. Please note that I'm
using a PS/2 keyboard not a USB keyboard.
The solution is fairly easy. Look in your kernel configuration file for this entry:
device atkbd0 at atkbdc? irq 1 flags 0x1
Change the above to this:
device atkbd0 at atkbdc? irq 1
The reason you want to remove the flag is found in man atkbd:
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.
I was confused by the above description. I was thinking in terms of the kernel, not the driver.
In the man page, "by default" refers to the driver, not the kernel. By default, the driver will
always install, even if the keyboard is not present. The GENERIC kernel, on the other hand, uses
flags 0x1, which unloads the driver if a keyboard is not found
After making the above changes and
building a custom kernel,
I rebooted without the keyboard attached. After the system started up, I reattached the keyboard and tried it.
It worked!
|