Commit 7875afa
drm/amd/display: Fix brightness level not retained over reboot
[Why]
During boot up and resume the DC layer will reset the panel
brightness to fix a flicker issue.
It will cause the dm->actual_brightness is not the current panel
brightness level. (the dm->brightness is the correct panel level)
[How]
Set the backlight level after do the set mode.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Fixes: d9e8658 ("drm/amd/display: Simplify brightness initialization")
Reported-by: Mark Herbert <mark.herbert42@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3655
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 9626890 commit 7875afa
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9442 | 9442 | | |
9443 | 9443 | | |
9444 | 9444 | | |
| 9445 | + | |
9445 | 9446 | | |
9446 | 9447 | | |
9447 | 9448 | | |
| |||
9561 | 9562 | | |
9562 | 9563 | | |
9563 | 9564 | | |
| 9565 | + | |
9564 | 9566 | | |
9565 | 9567 | | |
9566 | 9568 | | |
| |||
9612 | 9614 | | |
9613 | 9615 | | |
9614 | 9616 | | |
| 9617 | + | |
| 9618 | + | |
| 9619 | + | |
| 9620 | + | |
| 9621 | + | |
| 9622 | + | |
| 9623 | + | |
| 9624 | + | |
| 9625 | + | |
| 9626 | + | |
| 9627 | + | |
| 9628 | + | |
| 9629 | + | |
9615 | 9630 | | |
9616 | 9631 | | |
9617 | 9632 | | |
| |||
0 commit comments