[PATCH] ibm-acpi: handle power calls from backlight class Don't ignore the power-related calls from backlight class driver and always adjust the brightness accordingly. Signed-off-by: Jiri Kosina --- drivers/acpi/ibm_acpi.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c index 7c1b418..4cfa5f8 100644 --- a/drivers/acpi/ibm_acpi.c +++ b/drivers/acpi/ibm_acpi.c @@ -87,6 +87,7 @@ #include #include #include +#include #include #include @@ -1701,7 +1702,12 @@ static int brightness_write(char *buf) static int brightness_update_status(struct backlight_device *bd) { - return brightness_set(bd->props.brightness); + int brightness = 0; + + if (bd->props.fb_blank == FB_BLANK_UNBLANK && bd->props.power == FB_BLANK_UNBLANK) + brightness = bd->props.brightness; + return brightness_set(brightness); + } static struct backlight_ops ibm_backlight_data = {