Re: question on LEDs on keyboards

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

 



On Tue, 14 Oct 2008, Oliver Neukum wrote:

> I found an error in the hid autosuspend patches. Keyboards can have more 
> than one LED. Is there a way to query the HID layer about active LEDs?

Hi Oliver,

you can either get the information from the underlying input device, or 
you can use hidinput_find_field() to find the fields of EV_LED type, and 
obtain the value from the offset that this function gives you.

Hope this helps,

-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux