Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e84a02ba authored by Mattia Dongili's avatar Mattia Dongili Committed by Len Brown
Browse files

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

parent 7a883eaf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);