I've implemented HAL support for the linux kernel leds (light-emitting diode) subsystem some days ago. The new namespace provides these information for leds devices:
- leds.device_name: The name of the related led device.
- leds.colour: The colour of the LED. (e.g. green, orange)
- leds.function: The function of the LED. (e.g. radio, power, standby, batt)
The new leds devices offer via a singleton addon also a DBus interface to set the brightness of the LED. It works the same way as e.g. the org.freedesktop.Hal.Device.LaptopPanel interface by providing a GetBrightness() and a SetBrightness() method. The values for the brightness depends on the kernel driver and should be normally between 0 and 255 (0 normally deactivates the LED, any other value > 0 activates the LED again).
You can get the patches from my git repo [1] [2] [3].
You can get the patches from my git repo [1] [2] [3].