public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* possible bug in 2.4.x pc_keyb.c
@ 2001-10-22 15:36 Walter Harms
  2001-10-22 14:50 ` Keith Owens
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Walter Harms @ 2001-10-22 15:36 UTC (permalink / raw)
  To: linux-kernel

hi list,

keyboard disappears with 2.4.x kernel on notebook (compaq amarda)

After some time the keyboard from my amarda notebook does not respond to anything. The only hint is that 
"keyboard: Timeout - AT keyboard not present?" appears
quit often in the syslog before the kbd stops working.

Comparing the 2.2.x code (no problems) with the 2.4.x code i found pckbd_leds() as prime suspect.
as you can see it sets kbd_exists = 0 (FALSE) after sending an ENABLE. I am not sure if this is my probleme (read: no time to check if this fix works) but i guess its wrong. 

Note: 
1. the error isnt easy reproduceable but appears only with the 2.4.x 
2. send_data returns 1 for  acknowledge  else 0 
3. kann sombody please document kbd_exists ?

	walter



org:

void pckbd_leds(unsigned char leds)
{
        if (kbd_exists && (!send_data(KBD_CMD_SET_LEDS) || !send_data(leds))) {
                send_data(KBD_CMD_ENABLE);      /* re-enable kbd if any errors *
/
                kbd_exists = 0;
        }
}


my idea:

 if () {
	   if (send_data(KBD_CMD_ENABLE)){
        printk(KERN_WARNING "Keyboard off-line ?!\n");
		kbd_exists = FALSE;
		}
	}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-22 22:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-22 15:36 possible bug in 2.4.x pc_keyb.c Walter Harms
2001-10-22 14:50 ` Keith Owens
2001-10-22 15:07 ` Len Sorensen
2001-10-22 22:39 ` Fabbione

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox