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.
This commit is contained in:
Alex Deucher
2008-02-13 12:53:46 -05:00
parent 422d7f441f
commit ed87f367dd

View File

@@ -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);