Connector: hack fix EDID blob ID
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Sat, 4 Jun 2016 10:01:12 +0000 (13:01 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Sat, 4 Jun 2016 19:33:53 +0000 (22:33 +0300)
libkms++/connector.cpp

index b64cdf7c5f639aa744ca23b7acea9c30abfa6a8b..0f471e1b0e9bde25891bbb5a2700dbc87e3d2ee8 100644 (file)
@@ -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);
 }