Log enabling of DPMS even when it's not set in xorg.conf
This commit is contained in:
parent
7e76221659
commit
260505e3c5
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user