Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[display] Retry failing brightness adjustments. Fixes JB#47450
Display brightness control logic has been written with framebuffer interface in mind and consequently devices utilizing drm/dri are suffering from diagnostic logging noise from incorrectly timed adjustment attempts and outright failures to set desired brightness. Store desired and successfully activated brightness levels separately to ease adjustment failure handling and avoiding unwanted brightness pumping for example during compositor switchovers. Adjust display state machine so that it performs brightness level checkups during unblank also in states relevant for drm/dri logic. If brightness adjustment fails after unblank, retry periodically. Reduce amount of repetitive diagnostic noise caused by differing timing requirements between framebuffer and drm/dri interfaces. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
3 changed files
with
153 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters