[BUG]Unable to differentiate connectors by their name when displays are identical
I have noticed one issue with 2 identical display (2 HDMI with same resolution) I am not able to map the display based on their connector name and it gets changed. Further investigating I found that the connector name is aasigned from make_connector_name().https://gitlab.freedesktop.org/wayland/weston/-/blob/main/libweston/backend-drm/drm.c#L1400 Here the connector name is formed by combining the connector_type & connector_type_id.
In case of two identical display the connector_type is same and connector_type_id is subject to change based on which device appears first to kernel.
How to fix this?
I have looked a bit into the struct drmModeConnector and I was thinking if we call drmModeGetEncoder() and retrieve the crtc-id from it if that will be unique after bootup?
Please suggest any suitable way for mapping the display.