Commit b5a981e
drm/amd/display: fix default brightness
[Why]
To avoid flickering during boot default brightness level set by BIOS
should be maintained for as much of the boot as feasible.
commit 2fe87f5 ("drm/amd/display: Set default brightness according
to ACPI") attempted to set the right levels for AC vs DC, but brightness
still got reset to maximum level in initialization code for
setup_backlight_device().
[How]
Remove the hardcoded initialization in setup_backlight_device() and
instead program brightness value to match BIOS (AC or DC). This avoids a
brightness flicker from kernel changing the value. Userspace may however
still change it during boot.
Fixes: 2fe87f5 ("drm/amd/display: Set default brightness according to ACPI")
Acked-by: Wayne Lin <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Tom Chung <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 0747acf)
Cc: [email protected]1 parent 40b8c14 commit b5a981e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4911 | 4911 | | |
4912 | 4912 | | |
4913 | 4913 | | |
| 4914 | + | |
4914 | 4915 | | |
4915 | 4916 | | |
4916 | 4917 | | |
| |||
4978 | 4979 | | |
4979 | 4980 | | |
4980 | 4981 | | |
4981 | | - | |
4982 | 4982 | | |
4983 | 4983 | | |
4984 | 4984 | | |
| |||
0 commit comments