mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
acer-wmi: Respect current backlight level when loading
Set the backlight to use the current brightness when loaded, rather than always resetting the backlight to maximum brightness. Fixes kernel bugzilla #14207 Signed-off-by: Carlos Corbacho <carlos@strangeworlds.co.uk> Reported-by: Denis Mukhin <denis_mukhin@yahoo.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
f8b55f2510
commit
6f6ef82cc9
1 changed files with 1 additions and 1 deletions
|
@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev)
|
||||||
acer_backlight_device = bd;
|
acer_backlight_device = bd;
|
||||||
|
|
||||||
bd->props.power = FB_BLANK_UNBLANK;
|
bd->props.power = FB_BLANK_UNBLANK;
|
||||||
bd->props.brightness = max_brightness;
|
bd->props.brightness = read_brightness(bd);
|
||||||
bd->props.max_brightness = max_brightness;
|
bd->props.max_brightness = max_brightness;
|
||||||
backlight_update_status(bd);
|
backlight_update_status(bd);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue