I have 2 monitors plugged in via DisplayPort*, named DP1 and DP2.
I configure them next to each other like this:
xrandr --output DP1 --pos 0x0 --output DP2 --pos 3840x0 Problem: Sometimes, they are detected in the opposite order on startup, so the left monitor is labeled DP2 and the right one becomes DP1 instead. This is random, so after every startup I need to check and eventually reconfigure the layout.
Therefore, I'm looking for a way to reliably detect which monitor is which, across reboots. E.g., is there a way to determine which port ID corresponds to which assigned monitor name?
I'm on Arch. FWIW, Windows 10 remembers the order correctly.
*I'm using a Dell docking station connected via Thunderbolt, if that matters.