From d52fddefaeb43f15b677eefbea4a288a9948373b Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 3 Apr 2009 13:33:03 -0400 Subject: [PATCH] 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". --- dix/globals.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dix/globals.c b/dix/globals.c index 805621a2c..aa15de962 100644 --- a/dix/globals.c +++ b/dix/globals.c @@ -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 */