Skip to contentSkip to conversation

acer-wmi: Respect current backlight level when loading

PATCH Applied Carlos Corbacho 2 participants 2 messages Dec 26, 2009 – Feb 19, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Set the backlight to use the current brightness when loaded, rather than always resetting the backlight to maximum brightness.

Fixes kernel bugzilla #14207

---
Len,

This is one floating about locally that seems to have fallen down the back of the sofa.

Should be safe to apply even in -rc3, as it's just a minor bug fix. If not, it can wait until 2.6.34

 drivers/platform/x86/acer-wmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/acer-wmi.c +1 -1
index 07d14df..226b3e9 100644
@@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev)
 	acer_backlight_device = bd;
 
 	bd->props.power = FB_BLANK_UNBLANK;
-	bd->props.brightness = max_brightness;
+	bd->props.brightness = read_brightness(bd);
 	bd->props.max_brightness = max_brightness;
 	backlight_update_status(bd);
 	return 0;
reviewer Applied
#1 lore raw

applied

thanks,
Len Brown, Intel Open Source Technology Center