Subject: kern/12095: pckbd not working if it is not the console
To: None <>
From: Martin Husemann <>
List: netbsd-bugs
Date: 02/01/2001 04:04:26
>Number:         12095
>Category:       kern
>Synopsis:       pckbd does not work when it is not the console
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 01 04:07:01 PST 2001
>Originator:     Martin Husemann
>Release:        1.5R, cvs updated Jan 28, 2001
Generic i386 running current, with serial console.


In sys/dev/pckbc/pckbd.c:pckbdattach ther is a check if this is part of
the console. If not, the keyboard controller is disabled:

                /* no interrupts until enabled */
                cmd[0] = KBC_DISABLE;
                (void) pckbc_poll_cmd(sc->id->t_kbctag, sc->id->t_kbcslot,
                                      cmd, 1, 0, 0, 0);
                sc->sc_enabled = 0;

This should be fixed later in pckbd_enable, but somehow this is not called.


Install serial bootblocks, use a GENERIC kernel. Enable a getty on ttyE0
and configure wscons appropriately. Notice you can't type anything on 
the keyboard.


Call pckbd_enable when opening the wscons device and it is not yet anabled?