RE: [SLE] Does X control the CapsLock light?
xset allows pass commands to control keyboard leds. Try man xset ;-) On Monday, September 25, 2000 3:42 PM, Paul W. Abrahams [SMTP:abrahams@valinet.com] wrote:
Does anyone here know how X controls the CapsLock light on the keyboard? Since it's possible for the key and the light to be out of sync (in a dead system, you press CapsLock and the light doesn't change), I assume that it requires active intervention by X to update the state of the light when the key is pressed.
Here's the context of the question. I have a Logitech Internet Keyboard, and I finally discovered what the trick is to get Linux and X to respond to the special keys. It seems that the special keys issue scan codes that the kernel doesn't recognize, but it's possible to change the mapping table without recompiling the kernel. (I have yet to do that, though.) So I think I'm on the road to getting those keys to do under Linux what they do under Windows. However, I'd also like to be able to turn on the WWW light on the keyboard. I assume the mechanism for doing that is very similar to the mechanism for turning on the caps light.
Paul Abrahams
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Kester Clegg wrote:
xset allows pass commands to control keyboard leds. Try man xset ;-)
On Monday, September 25, 2000 3:42 PM, Paul W. Abrahams [SMTP:abrahams@valinet.com] wrote:
Does anyone here know how X controls the CapsLock light on the keyboard? Since it's possible for the key and the light to be out of sync (in a dead system, you press CapsLock and the light doesn't change), I assume that it requires active intervention by X to update the state of the light when the key is pressed.
Here's the context of the question. I have a Logitech Internet Keyboard, and I finally discovered what the trick is to get Linux and X to respond to the special keys. It seems that the special keys issue scan codes that the kernel doesn't recognize, but it's possible to change the mapping table without recompiling the kernel. (I have yet to do that, though.) So I think I'm on the road to getting those keys to do under Linux what they do under Windows. However, I'd also like to be able to turn on the WWW light on the keyboard. I assume the mechanism for doing that is very similar to the mechanism for turning on the caps light.
I tried xset with various led options. The behavior was interesting. "xset led on", contrary to the man page, doesn't turn the leds on. But it does change their state: if I then press the capslock key, the scroll lock led also goes on and then stays on even if I press capslock again. I guess all of the keyboard/led behavior is built into some kind of replaceable module within XFree86. Perhaps, if I could find it, I could modify and rebuild it (and the commentary might help also). Any idea how I could locate that information? Thanks - Paul Abrahams -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (2)
-
abrahams@valinet.com
-
kester.clegg@comreco-rail.co.uk