Revision 8622cfc...

Go back to digest for 24th February 2013

Optimization in KDE Base

Oliver Henshaw committed changes in [kde-workspace/KDE/4.10] /daemon/actions/dpms:

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.

REVIEW: 109126

File Changes

Modified 2 files
  • /daemon/actions/dpms
  •   powerdevil/powerdevildpmsaction.cpp
  •   powerdevil/powerdevildpmsaction.h
2 files changed in total