[patch 1/2] force enabling output

Hong Liu hong.liu at intel.com
Tue Apr 22 01:41:39 PDT 2008

Some users want to bring up X server without monitors attached to
any outputs. Currently X server will exist with "No valid modes" if no
monitors attached.
This patch uses the enable option to manually enable the output in


diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 8c2b247..9a6aac1 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -1342,7 +1342,8 @@ xf86ProbeOutputModes (ScrnInfoPtr scrn, int maxX, int maxY)
 	output->status = (*output->funcs->detect)(output);
-	if (output->status == XF86OutputStatusDisconnected)
+	if (output->status == XF86OutputStatusDisconnected &&
+	    !xf86ReturnOptValBool(output->options, OPTION_ENABLE, FALSE))
 	    xf86OutputSetEDID (output, NULL);

More information about the xorg mailing list