Optimization in KDE Base
Cache whether screen powersaving is inhibited
DPMSAction disables or enables DPMS (and sets timeouts) as appropriate
when inhibition policy changes. As setting DPMS timeouts resets the
timer this will delay the time at which DPMS activates. But this is only
necessary if the ChangeScreenSettings inhibition changed.
Chrome sets short-lived InterruptSession inhibitions while uploading
data. This has the effect of indefinitely delaying DPMS activation.
So cache the current screen inhibition state and only decide whether to
enable or disable DPMS if the new state is different.