Thursday, December 11, 2008

HAL: support for linux leds kernel subsystem

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].
Tech Tags:

1 comment:

Anonymous said...

hi danny,
what's with devicekit? tought that dk is going to replace hal? what's your position concerning this topic?
best regards Anonymous