Type 4 Keyboard LEDs

David Barto tsunami!barto at ucsd.edu
Tue Oct 17 04:25:13 AEST 1989


In article <2092 at brazos.Rice.edu> dialogic!gerry at uunet.uu.net (Gerry Lachac) writes:
>Does anyone know how to make the LEDs (Numlock, Capslock, etc) work
>properly on a type 4 keyboard attached to a 3/60?  
>
>When numlock or capslock is on, the corresponding LEDs should light.  They
>don't.  They only time they every light is when Sunview start up, and they
>all light up like a Xmas tree.
>
>Is this a keyboard driver problem or a hardware problem?

This exists in the keyboard driver in some ways, mostly in the application.

There exists commands which can be sent to the driver which will turn the
leds on and off (labeled KBD_CMD_LED1 KBD_CMD_NOLED1, KBD_CMD_LED2,
KBD_CMD_NOLED2).  These can be passed down to the keyboard using the
command

	var = KBD_CMD_LED1;
	ioctl(fd, KIOCCMD, &var);

and similar for other 'LED' commands.

The leds will be supported in 4.1.  (I suspect that they will be supported
in the kernel in 4.1, as the driver can recognize the CAPS LOCK key being
pressed and released.  [expect 4.1 to be a MUCH larger kernel...])

The reason you see them 'light up like a Xtmas tree' is that the keyboard
has been sent a 'KBD_CMD_RESET'.

David Barto                           uunet!megatek!barto
barto at net1.ucsd.edu                    ucsd!



More information about the Comp.sys.sun mailing list