From: Matthew Garrett Date: Tue, 14 Jul 2009 16:06:03 +0000 (+0100) Subject: backlight/acpi: Update the backlight state when we change brightness X-Git-Tag: v2.6.32-rc1~11^2~3 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=36342742a3cbd52f7ca0582f23788c99c2ec8256;p=net-next-2.6.git backlight/acpi: Update the backlight state when we change brightness Trigger a status update when we change the brightness in the driver, thus allowing userspace to present appropriate UI. Signed-off-by: Matthew Garrett Signed-off-by: Richard Purdie --- diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 60ea984c84a..5845398479f 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -1960,6 +1960,10 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event) result = acpi_video_device_lcd_set_level(device, level_next); + if (!result) + backlight_force_update(device->backlight, + BACKLIGHT_UPDATE_HOTKEY); + out: if (result) printk(KERN_ERR PREFIX "Failed to switch the brightness\n");