Changing the connector output numbering
Andreas Nagel
Nagel at igel.com
Tue Sep 2 05:22:16 PDT 2014
Hello,
xrandr lists the connector outputs like this: HDMI1, HDMI2, DP1, DP2, etc.
On our current mainboard with DVI and DisplayPort, the kernel driver assigns the number 2 to a pure DVI connection, so xrandr prints "HDMI2" for that connection. HDMI1 will be used, when I use a DP-to-DVI adapter on the DisplayPort while the other DVI port is used. The new board model (which uses the Intel i915 driver) has its DVI and DisplayPort connector switched and the DVI connection is now numbered with a "1". Using the adapter on the DP again, I get HDMI2.
I found out, that these numbers are generated by calling "ida_simple_get()" in the function "drm_connector_init()" in drivers/gpu/drm/drm_crtc.c and saving its return value in the connectors attribute "connector_type_id".
It would be preferable, to keep the current numbering scheme. Can I modify some code in order to achieve this? Or is there a way to influence the order in which the connectors are initialized?
Best regards,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20140902/af03dd3e/attachment.html>
More information about the dri-devel
mailing list