提交 e84a02ba 编写于 作者: M Mattia Dongili 提交者: Len Brown

sony-laptop: restore the last user requested brightness level on resume.

Signed-off-by: NMattia Dongili <malattia@linux.it>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 7a883eaf
......@@ -942,6 +942,11 @@ static int sony_nc_resume(struct acpi_device *device)
}
}
/* set the last requested brightness level */
if (sony_backlight_device &&
!sony_backlight_update_status(sony_backlight_device))
printk(KERN_WARNING DRV_PFX "unable to restore brightness level");
/* re-initialize models with specific requirements */
dmi_check_system(sony_nc_ids);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册