[PATCH] bind micmute led to capslock led on thinkpads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux