> after each byte, downloaded from the internet, the CAPS LOCK led blinks.
[poor you - you must have a slow connection]
Two possibilities: (i) blink from user space,
(ii) blink from kernel space.
There is a program setleds in the kbd distribution that sets the leds.
Source fragment:
int setleds(char leds) {
if (ioctl(0, KDSETLED, leds)) {
perror("KDSETLED");
return -1;
}
return 0;
}
There is also a kernel routine that accepts kernel calls:
See keyboard.c, routines register_leds(), setledstate().
In ancient times people used this for "blinkenlights".
Have not checked recently whether this still works.
Andries
cc'd to l-k -- no doubt there are people that'll want to play
with the lights again
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:20 EST