[PATCH] dix: Default DPMS timeout values to match screensaver values

Keith Packard keithp at keithp.com
Thu Apr 22 09:04:33 PDT 2010


On Mon, 15 Feb 2010 16:54:35 -0500, Adam Jackson <ajax at redhat.com> wrote:
> These have the same default, but if you specify something different with
> -s on the command line, only the screensaver time is changed.  As DPMS
> is usually what's desired, change it to match.
> 
> Signed-off-by: Adam Jackson <ajax at redhat.com>

Seems reasonable to me.

Reviewed-by: Keith Packard <keithp at keithp.com>

> ---
>  dix/main.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/dix/main.c b/dix/main.c
> index f023536..b500ad7 100644
> --- a/dix/main.c
> +++ b/dix/main.c
> @@ -161,9 +161,7 @@ int main(int argc, char *argv[], char *envp[])
>  	ScreenSaverBlanking = defaultScreenSaverBlanking;
>  	ScreenSaverAllowExposures = defaultScreenSaverAllowExposures;
>  #ifdef DPMSExtension
> -	DPMSStandbyTime = DEFAULT_SCREEN_SAVER_TIME;
> -	DPMSSuspendTime = DEFAULT_SCREEN_SAVER_TIME;
> -	DPMSOffTime = DEFAULT_SCREEN_SAVER_TIME;
> +	DPMSStandbyTime = DPMSSuspendTime = DPMSOffTime = ScreenSaverTime;
>  	DPMSEnabled = TRUE;
>  	DPMSPowerLevel = 0;
>  #endif
> -- 
> 1.6.5.2
> 
> _______________________________________________
> xorg-devel mailing list
> xorg-devel at lists.x.org
> http://lists.x.org/mailman/listinfo/xorg-devel

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100422/b19e59b9/attachment.pgp>


More information about the xorg-devel mailing list