Messages in this thread | | | From | Rodolfo Giometti <> | Date | Tue, 7 Oct 2008 12:10:29 +0200 | Subject | [PATCH V3] led: Backlight trigger for led subsystem |
| |
This patch set adds a new led trigger which emulates the backlight behaviour: the leds are turned off and on each time the display blanks and unblacks.
Since backlights are usually implemented with leds this patch set is useful for those drivers whose manage leds controller used as backlight controller.
The driver simply registers itself into the led subsystem and then the user may get backlight emulation by setting the "backlight" trigger. Moreover a driver, which usually manages more than one led, can use some leds as "led" and the others as "backlights" at user request.
Rodolfo
---
CHANGELOG:
V2 ---> V3:
* Avoid that two consecutive blank commands as follow:
echo 1 > /sys/class/graphics/fb0/blank echo 1 > /sys/class/graphics/fb0/blank
may vanish unblank led intensity status.
| |