[PATCH] bind micmute led to capslock led on thinkpads

Jason A. Donenfeld Jason at zx2c4.com
Mon Feb 11 09:06:51 EST 2013


Hi folks,

The attached patch binds the capslock light to the micmute light on my
Thinkpad. It works really well.

But it's definitely the wrong way to be doing things. There are two
problems I'd like to solve a better way:

1) How do I find a pointer to the led_device struct for that led, so
that I can call brightness_set on it?
2) How do I hook the kbd_set_leds functions without having to patch atkbd.c?

I'm more interested in (1) than (2), but insights on either would be welcome.

Thanks!

Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thinkpad-bind-micmute-led-to-capslock-led.patch
Type: application/octet-stream
Size: 1157 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130211/51fa61ef/attachment.obj 


More information about the Kernelnewbies mailing list