diff --git a/src/i830_crt.c b/src/i830_crt.c index 8274c0c..9b31f1a 100644 --- a/src/i830_crt.c +++ b/src/i830_crt.c @@ -162,6 +162,9 @@ i830_crt_detect_hotplug(xf86OutputPtr output) const int timeout_ms = 1000; int starttime, curtime; + /* clear hotplug status first */ + OUTREG(PORT_HOTPLUG_STAT, CRT_HOTPLUG_MONITOR_COLOR); + temp = INREG(PORT_HOTPLUG_EN); OUTREG(PORT_HOTPLUG_EN, temp | CRT_HOTPLUG_FORCE_DETECT | (1 << 5));