* Re: setleds source and ppp
@ 2001-03-06 22:09 Andries.Brouwer
0 siblings, 0 replies; only message in thread
From: Andries.Brouwer @ 2001-03-06 22:09 UTC (permalink / raw)
To: danko; +Cc: linux-kernel
> 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-03-06 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-06 22:09 setleds source and ppp Andries.Brouwer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®