1
0
Fork 0

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

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
wifi-calibration
Mattia Dongili 2007-08-04 00:22:30 +09:00 committed by Len Brown
parent 7a883eaf62
commit e84a02ba0b
1 changed files with 5 additions and 0 deletions

View File

@ -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);