From 4d449fccfe111bd51d782da3fc7a6eb58146d69a Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 3 Feb 2014 02:53:04 +0000 Subject: [PATCH] radeon_hd: Fix superfluous DPMS hook calls * The DPMS hook would be called on all possible displays causing lots of link training on incomplete connector structures that may be not attached / connected. --- src/add-ons/accelerants/radeon_hd/mode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/accelerants/radeon_hd/mode.cpp b/src/add-ons/accelerants/radeon_hd/mode.cpp index bab9bf4c18..7bd1cda5fb 100644 --- a/src/add-ons/accelerants/radeon_hd/mode.cpp +++ b/src/add-ons/accelerants/radeon_hd/mode.cpp @@ -168,6 +168,8 @@ radeon_dpms_set_hook(int mode) // As the accelerant hook doesn't pass crtc id for (uint8 id = 0; id < MAX_DISPLAY; id++) { + if (gDisplay[id]->attached == false) + continue; radeon_dpms_set(id, mode); } }