Scroll Lock LED will not glow (automatically)
Hello,
I am not using any particular distribution of linux. I have built my own linux rootfs for an embedded hardware. The filesystem of the system relies primarily on busybox-1.15.2 and runs the busybox sh shell.
One problem i am facing is that the scroll lock led will not toggle when the scroll lock key is pressed.
If the key events are read via the event interface the scroll lock keypress and release events are received. The LED however does not glow and neither are the EV_LED type events are received for the scroll lock key presses.
I am able to turn the LED on and off manually via the event interface using the code:
<pre>
struct input_event ev;
ev.type = EV_LED;
ev.code = LED_SCROLLL;
ev.value = 1; /* 1 to turn on, 0 otherwise */
write (fd &ev, sizeof (struct input_event));
</pre>
I am trying to figure out how to get the scroll lock leds to glow normally (like the caps lock and num lock led behaviour)
Numerous google searches on the matter bring up some bug in XServer. However i am not using the Xserver. This is a plain console terminal.
Another thing i have noticed is that if i programatically turn on the scroll lock led and then press the numlock or capslock key, the scroll lock led is automatically turned off.
Please help
Thanks and Regards
~Sameer
|