mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Log enabling of DPMS even when it's not set in xorg.conf
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user