From 260505e3c5a18044e97d31ea3bcc0955e46335c8 Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Sun, 6 Jan 2008 16:37:13 -0500 Subject: Log enabling of DPMS even when it's not set in xorg.conf --- hw/xfree86/common/xf86DPMS.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hw/xfree86/common/xf86DPMS.c') diff --git a/hw/xfree86/common/xf86DPMS.c b/hw/xfree86/common/xf86DPMS.c index 43efb8ed4..a23d81d3f 100644 --- a/hw/xfree86/common/xf86DPMS.c +++ b/hw/xfree86/common/xf86DPMS.c @@ -79,7 +79,6 @@ xf86DPMSInit(ScreenPtr pScreen, DPMSSetProcPtr set, int flags) && !DPMSDisabledSwitch) DPMSEnabled = TRUE; xf86MarkOptionUsed(DPMSOpt); - xf86DrvMsg(pScreen->myNum, X_CONFIG, "DPMS enabled\n"); } else if (DPMSEnabledSwitch) { if (!DPMSDisabledSwitch) DPMSEnabled = TRUE; @@ -88,6 +87,8 @@ xf86DPMSInit(ScreenPtr pScreen, DPMSSetProcPtr set, int flags) else { pDPMS->Enabled = defaultDPMSEnabled; } + if (pDPMS->Enabled) + xf86DrvMsg(pScreen->myNum, X_CONFIG, "DPMS enabled\n"); pDPMS->CloseScreen = pScreen->CloseScreen; pScreen->CloseScreen = DPMSClose; DPMSCount++; -- cgit v1.2.3