LED: inform userspace about brightness change

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

 



Hello!

What is preferred way from kernel driver to inform userspace 
about LED device brightness change? In /sys/class/leds/<device>/ 
is file brightness which can be used to read current brightness 
or set write new value. But sometimes also firmware (or device) 
can change value on its own and thus userspace software which 
provides slider for setting brightness will be incorrect.

For example on Dell laptops there is driver which support setting 
and reading keyboard backlight (via leds kernel interface). But 
firmware/BIOS can change brightness (when something happen) and 
it can inform running system about this change via ACPI/WMI event 
interface. But how to use kernel led interface to inform userpace 
about this change? It is possible?

-- 
Pali Rohár
pali.rohar@xxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux