[patch 1/2] force enabling output by xorg.conf (resent)

Hong Liu hong.liu at intel.com
Sat May 3 22:57:19 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
xorg.conf.

Thanks,
Hong

diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 8c2b247..6805057 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);
 	    continue;





More information about the xorg mailing list