summaryrefslogtreecommitdiff
path: root/src/radeon_output.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.(none)>2008-02-13 12:53:46 -0500
committerAlex Deucher <alex@botch2.(none)>2008-02-13 12:53:46 -0500
commited87f367ddab7366f84917b43b31d76df4ce1110 (patch)
tree44790fb01ff882af0477e1ddb9fdba597dd34cc9 /src/radeon_output.c
parent422d7f441fdbb318d22d44db661ac9bd61387bd2 (diff)
RADEON: disable LVDS if panel size is 0x0
if we can't get the panel size from the bios or edid or a user specified option, assume it's not connected.
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r--src/radeon_output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c
index 50bceba7..aceb3d8e 100644
--- a/src/radeon_output.c
+++ b/src/radeon_output.c
@@ -390,6 +390,11 @@ void RADEONConnectorFindMonitor(ScrnInfoPtr pScrn, xf86OutputPtr output)
if (radeon_output->MonType == MT_LCD || radeon_output->MonType == MT_DFP)
RADEONUpdatePanelSize(output);
+ /* panel is probably busted or not connected */
+ if ((radeon_output->MonType == MT_LCD) &&
+ ((radeon_output->PanelXRes == 0) || (radeon_output->PanelYRes == 0)))
+ radeon_output->MonType == MT_NONE;
+
if (output->MonInfo) {
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "EDID data from the display on output: %s ----------------------\n",
output->name);