How to set up left-right swap for dual screens on Linux?
To swap the dual screens on a Linux system from left to right, you can follow these steps:
- Open the terminal and enter the following command to view the interface name of the monitor:
xrandr
- Locate the interface names of the two monitors you want to switch positions with, typically labeled as HDMI-0 and HDMI-1 or DP-0 and DP-1.
- Use the following command to swap the positions of two monitors:
xrandr --output HDMI-0 --auto --output HDMI-1 --auto --right-of HDMI-0
In the above command, HDMI-0 represents the left monitor and HDMI-1 represents the right monitor. Use the –right-of option to specify that the right monitor is positioned to the right of the left monitor.
- If you want to restore the original position, you can use the following command:
xrandr --output HDMI-0 --auto --output HDMI-1 --auto --right-of HDMI-1
You can easily swap your dual monitors in a Linux system by following the steps mentioned above.