• spiiroin's avatar
    [display] Retry failing brightness adjustments. Fixes JB#47450 · 2783a90d
    spiiroin authored
    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: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
mce-io.h 5.59 KB