summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Init.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/common/xf86Init.c')
-rw-r--r--hw/xfree86/common/xf86Init.c29
1 files changed, 22 insertions, 7 deletions
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index f507753fe..20249102a 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -96,6 +96,7 @@ extern int xtest_command_key;
#ifdef DPMSExtension
#define DPMS_SERVER
#include "extensions/dpms.h"
+#include "dpmsproc.h"
#endif
@@ -1244,7 +1245,7 @@ AbortDDX()
/*
* try to deinitialize all input devices
*/
- if (xf86Info.pKeyboard)
+ if (xf86Info.kbdProc && xf86Info.pKeyboard)
(xf86Info.kbdProc)(xf86Info.pKeyboard, DEVICE_CLOSE);
/*
@@ -1254,6 +1255,10 @@ AbortDDX()
/* Need the sleep when starting X from within another X session */
sleep(1);
#endif
+#ifdef DPMSExtension /* Turn screens back on */
+ if (DPMSPowerLevel != DPMSModeOn)
+ DPMSSet(DPMSModeOn);
+#endif
if (xf86Screens) {
if (xf86Screens[0]->vtSema)
xf86EnterServerState(SETUP);
@@ -1265,10 +1270,6 @@ AbortDDX()
* screen explicitely.
*/
xf86EnableAccess(xf86Screens[i]);
-#ifdef DPMSExtension
- if (xf86Screens[i]->DPMSSet)
- xf86Screens[i]->DPMSSet(xf86Screens[i],DPMSModeOn,0);
-#endif
(xf86Screens[i]->LeaveVT)(i, 0);
}
}
@@ -1763,8 +1764,22 @@ xf86PrintBanner()
#endif
#if XORG_VERSION_SNAP >= 900
- ErrorF(" (%d.%d.0 RC %d)", XORG_VERSION_MAJOR, XORG_VERSION_MINOR + 1,
- XORG_VERSION_SNAP - 900);
+ /* When the patch number is 99, that signifies that the we are making
+ * a release candidate for a major version; however, if the patch
+ * number is < 99, then we are making a release candidate for the next
+ * point release.
+ */
+ if (XORG_VERSION_PATCH == 99)
+ ErrorF(" (%d.%d.0 RC %d)",
+ XORG_VERSION_MAJOR,
+ XORG_VERSION_MINOR + 1,
+ XORG_VERSION_SNAP - 900);
+ else
+ ErrorF(" (%d.%d.%d RC %d)",
+ XORG_VERSION_MAJOR,
+ XORG_VERSION_MINOR,
+ XORG_VERSION_PATCH + 1,
+ XORG_VERSION_SNAP - 900);
#endif
#ifdef XORG_CUSTOM_VERSION