Skip to content

Commit

Permalink
sony-laptop: restore the last user requested brightness level on resume.
Browse files Browse the repository at this point in the history
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Mattia Dongili authored and Len Brown committed Aug 3, 2007
1 parent 7a883ea commit e84a02b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/misc/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e84a02b

Please sign in to comment.