Commit ba6d8f5
committed
backlight: track brightness changes for accurate restore_on_exit
Keep the bls map in sync with actual backlight levels so that
restore_on_exit restores the last user-set brightness rather than
the level recorded at startup. Skip updates during dimmed/dpms
states to avoid restoring a dimmed brightness on exit.
Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>1 parent 987a0c4 commit ba6d8f5
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
774 | 784 | | |
775 | 785 | | |
776 | 786 | | |
| |||
0 commit comments