From: Andries.Brouwer@cwi.nl
To: danko@danko.isten.vagy.hu
Cc: linux-kernel@vger.kernel.org
Subject: Re: setleds source and ppp
Date: Tue, 6 Mar 2001 23:09:23 +0100 (MET) [thread overview]
Message-ID: <UTC200103062209.XAA112274.aeb@vlet.cwi.nl> (raw)
> 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
reply other threads:[~2001-03-06 22:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=UTC200103062209.XAA112274.aeb@vlet.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=danko@danko.isten.vagy.hu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®