Path: utzoo!utgpu!watmath!iuvax!mailrus!cs.utexas.edu!rice!sun-spots-request From: tsunami!barto@ucsd.edu (David Barto) Newsgroups: comp.sys.sun Subject: Re: Type 4 Keyboard LEDs Keywords: Hardware Message-ID: <2263@brazos.Rice.edu> Date: 16 Oct 89 18:25:13 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 31 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 166, message 14 of 26 In article <2092@brazos.Rice.edu> dialogic!gerry@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@net1.ucsd.edu ucsd!