[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Making the Scroll Lock LED Blink (Was : What is...)
From: Stefan Taferner <taferner () salzburg ! co ! at>
Date: 1999-10-03 16:37:29
[Download RAW message or body]
On Sun, 03 Oct 1999, Markus Goetz wrote:
> Hi
>
> >>Are there any functions for modifying the Num/Caps/Scroll lock lights on
> >>keyboards. I'm guessing I'd have to go down to the Xlib level, but I'm
> >>not seeing anything that rings a bell in the header files...
>
> >man XChangeKeyboardControl
>
> I am also interested in this thing. I took a look at the XCKC Man Page but it
> is explained were ... hmmm.... good.
>
> void MainWindow::setKeyboardLED(bool on)
> {
> XKeyboardControl kbd;
> kbd.led = 3;
> if (on) kbd.led_mode = LedModeOn; else kbd.led_mode = LedModeOff;
> cerr << XChangeKeyboardControl(kapp->getDisplay(), KBLed | KBLedMode, &kbd) << endl;
> }
>
> I really don't know how to use this thing ! It just does nothing !
> Can anyone help me ?
In XFree, you have to enable application control of the keyboard leds in
XF86Config.
You can also play with "xset led ..."
--Stefan
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic