diff --git a/src/i830_crt.c b/src/i830_crt.c index 536d63d..1148a23 100644 --- a/src/i830_crt.c +++ b/src/i830_crt.c @@ -183,6 +183,7 @@ i830_crt_detect_hotplug(xf86OutputPtr output) else tries = 1; + OUTREG(ADPA, INREG(ADPA) | ADPA_DAC_ENABLE); hotplug_en = INREG(PORT_HOTPLUG_EN); hotplug_en &= CRT_FORCE_HOTPLUG_MASK; @@ -217,6 +218,8 @@ i830_crt_detect_hotplug(xf86OutputPtr output) /* Check the status to see if both blue and green are on now */ temp = INREG(PORT_HOTPLUG_STAT); + + OUTREG(ADPA, INREG(ADPA) & ~ADPA_DAC_ENABLE); return ((temp & CRT_HOTPLUG_MONITOR_MASK) == CRT_HOTPLUG_MONITOR_COLOR); }