diff --git a/src/i830_crt.c b/src/i830_crt.c index d7762a0..4145f53 100644 --- a/src/i830_crt.c +++ b/src/i830_crt.c @@ -350,8 +350,14 @@ i830_crt_detect(xf86OutputPtr output) xf86CrtcPtr crtc; int dpms_mode; + + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "i830_crt_detect: Trying to detetect\n"); + if (IS_I945G(pI830) || IS_I945GM(pI830) || IS_I965G(pI830) || IS_G33CLASS(pI830)) { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "i830_crt_detect: 855GM not detected another(--this shouldn't happen--)\n"); if (i830_crt_detect_hotplug(output)) return XF86OutputStatusConnected; else @@ -359,7 +365,11 @@ i830_crt_detect(xf86OutputPtr output) } if (i830_crt_detect_ddc(output)) - return XF86OutputStatusConnected; + { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "i830_crt_detect: Detected by DDC\n"); + return XF86OutputStatusConnected; + } /* Use the load-detect method if we have no other way of telling. */ crtc = i830GetLoadDetectPipe (output, NULL, &dpms_mode); @@ -371,11 +381,22 @@ i830_crt_detect(xf86OutputPtr output) connected = i830_crt_detect_load (crtc, output); i830ReleaseLoadDetectPipe (output, dpms_mode); if (connected) + { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "i830_crt_detect: Detected by i830_crt_detect_load\n"); return XF86OutputStatusConnected; + } else - return XF86OutputStatusDisconnected; + { + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "i830_crt_detect: NOT detected by i830_crt_detect_load\ + \n Sendinf XF86OutputStatusConnected\n"); + return XF86OutputStatusConnected; +/* return XF86OutputStatusDisconnected;*/ + } } - + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "i830_crt_detect: UNKNOWN\n"); return XF86OutputStatusUnknown; }