Subject: can we add a new option NO_KBD_LEDS ?
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Simon J. Gerraty <sjg@zen.void.oz.au>
List: current-users
Date: 02/27/1994 13:27:16
Would it be possible to add a new kernel config option?

Something like NO_KBD_LEDS

then the following hack or similar, could be used by those of us with
crappy hardware that dies in the LED update code...

I never look at the leds and certainly don't miss them, but I
sometimes forget to install this patch in a new kernel...

*** sys/arch/i386/isa/pccons.c~	Thu Feb 10 22:13:42 1994
--- sys/arch/i386/isa/pccons.c	Sun Feb 27 12:09:09 1994
***************
*** 1438,1443 ****
--- 1438,1448 ----
  	int response;
  #endif
+ #ifdef NO_KBD_LEDS  
+ 	/*
+ 	 * <sjg> this kills my system so just skip it
+ 	 */
+ 	return;
+ #endif
  	if (kbd_cmd(KBC_MODEIND) != 0)
  		printf("Timeout for keyboard LED command\n");
  	else if (kbd_cmd(scroll | (num << 1) | (caps << 2)) != 0)

------------------------------------------------------------------------------