On Jan 30, 08 19:41:08 +0100, Thomas Meyer wrote:
Report PANEL as disconnected when no modes are available
Hm. Interesting. Why do you need this? In which case can this actually happen?
diff --git a/src/rhd_randr.c b/src/rhd_randr.c index 8a6d643..1bbc0e7 100644 --- a/src/rhd_randr.c +++ b/src/rhd_randr.c @@ -749,8 +749,12 @@ rhdRROutputDetect(xf86OutputPtr output) RHDDebug(rhdPtr->scrnIndex, "%s: Output %s\n", __func__, rout->Name); /* Assume that a panel is always connected */ - if (rout->Connector->Type == RHD_CONNECTOR_PANEL) - return XF86OutputStatusConnected; + if (rout->Connector->Type == RHD_CONNECTOR_PANEL) { + if (rout->Connector->Monitor) + return XF86OutputStatusConnected; + else + return XF86OutputStatusDisconnected; + } if (rout->Connector->HPDCheck) { /* Hot Plug Detection available, use it */
CU
Matthias
--
Matthias Hopf