提交 6f6ef82c 编写于 作者: C Carlos Corbacho 提交者: Len Brown

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: NCarlos Corbacho <carlos@strangeworlds.co.uk>
Reported-by: NDenis Mukhin <denis_mukhin@yahoo.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 f8b55f25
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册