summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-04 13:01:12 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-04 22:33:53 +0300
commit420940c3c4055f715a3d30825bfddfaf1fddd6cb (patch)
treef7411af502e3477265bad1e7d8e79b1889963075
parent32c7d8dc04bb2c5ba517aaa05fcd9881420ac7c2 (diff)
Connector: hack fix EDID blob ID
-rw-r--r--libkms++/connector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libkms++/connector.cpp b/libkms++/connector.cpp
index b64cdf7..0f471e1 100644
--- a/libkms++/connector.cpp
+++ b/libkms++/connector.cpp
@@ -64,6 +64,10 @@ Connector::Connector(Card &card, uint32_t id, uint32_t idx)
m_priv->drm_connector = drmModeGetConnector(this->card().fd(), this->id());
assert(m_priv->drm_connector);
+ // XXX drmModeGetConnector() does forced probe, which seems to change (at least) EDID blob id.
+ // XXX So refresh the props again here.
+ refresh_props();
+
const auto& name = connector_names.at(m_priv->drm_connector->connector_type);
m_fullname = name + "-" + to_string(m_priv->drm_connector->connector_type_id);
}