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

Attachment: thinkpad-bind-micmute-led-to-capslock-led.patch
Description: Binary data

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to