DPMS: Align the default timeouts with the default screensaver timeout.

On a typical LCD, a black screensaver is actually worse for power
consumption than a normal screen, because it takes more energy to turn
the crystals opaque.  Also, the intermediate DPMS states are essentially
useless and most monitors alias them to the 'off' state, so we may as
well do the same.

As a pleasant side effect, this brings the default DPMS timeouts in line
with the EnergyStar Program Requirements for Computers:

http://www.energystar.gov/index.cfm?c=revisions.computer_spec

which state that products must be "shipped with the display's Sleep mode
set to activate within 15 minutes of user inactivity".
This commit is contained in:
Adam Jackson 2009-04-03 13:33:03 -04:00
parent 38576dc3ae
commit d52fddefae

View File

@ -95,9 +95,9 @@ int ScreenSaverBlanking;
int ScreenSaverAllowExposures;
#ifdef DPMSExtension
CARD32 defaultDPMSStandbyTime = DEFAULT_SCREEN_SAVER_TIME * 2;
CARD32 defaultDPMSSuspendTime = DEFAULT_SCREEN_SAVER_TIME * 3;
CARD32 defaultDPMSOffTime = DEFAULT_SCREEN_SAVER_TIME * 4;
CARD32 defaultDPMSStandbyTime = DEFAULT_SCREEN_SAVER_TIME;
CARD32 defaultDPMSSuspendTime = DEFAULT_SCREEN_SAVER_TIME;
CARD32 defaultDPMSOffTime = DEFAULT_SCREEN_SAVER_TIME;
CARD16 DPMSPowerLevel = 0;
Bool defaultDPMSEnabled = TRUE;
Bool DPMSEnabledSwitch = FALSE; /* these denote the DPMS command */