diff --git a/src/i830_crt.c b/src/i830_crt.c index 536d63d..09b3ffd 100644 --- a/src/i830_crt.c +++ b/src/i830_crt.c @@ -398,6 +398,19 @@ i830_crt_detect(xf86OutputPtr output) xf86OutputStatus status; Bool connected; + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "DEBUG:Hardware state before LoadDetect:\n"); + i830DumpRegs (pScrn); + /* + * DDC is next best, no flicker + */ + crtc = i830GetLoadDetectPipe (output, NULL, &dpms_mode); + if (!crtc) + return XF86OutputStatusUnknown; + + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "DEBUG:Hardware state after LoadDetect:\n"); + i830DumpRegs (pScrn); /* * Try hotplug detection where supported */ @@ -411,13 +424,6 @@ i830_crt_detect(xf86OutputPtr output) goto done; } - /* - * DDC is next best, no flicker - */ - crtc = i830GetLoadDetectPipe (output, NULL, &dpms_mode); - if (!crtc) - return XF86OutputStatusUnknown; - if (i830_crt_detect_ddc(output)) { status = XF86OutputStatusConnected; goto out_release_pipe;