Hey there,
I have to admit, I created a similar thread yesterday. I’m fairly confident that the issue is more specifically about xrandr and probably also i3. That is, I suspect that there is an i3 setting in place that prevents the xrandr
command to work as expected.
What I want
I installed EOS with i3 yesterday. I have two monitors, one 1920x1080 monitor on the left and one 2560x1440 monitor on the right. Out-of-the-box, everything works fine (the full bar at the bottom of each screen, windows on either the one monitor or the other); except that the default configuration assumes my smaller screen was on the right. I want to reverse the order.
This is the default after boot:
Screen 0: minimum 320 x 200, current 4480 x 1440, maximum 16384 x 16384
DP-1 disconnected primary (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 697mm x 392mm
HDMI-1 connected 1920x1080+2560+0 (normal left inverted right x axis y axis) 527mm x 296mm
If I understand the logic correctly, then I think in my case it should be:
DP-3 connected 2560x1440+1920+0
HDMI-1 connected 1920x1080+0+0
That is, DP-3 begins where HDMI-1 ends.
What I tried
I think the following command should result in the setting just given:
xrandr --output HDMI-1 --mode 1920x1080 --pos 0x0 --output DP-3 --primary --mode 2560x1440 --pos 1920x0
However, thinks look odd. Before I had my terminal emulator on the right monitor; afterwards it’s going over both screens.
What Somehow Works
If I run a series of commands, the result is actually exactly what I want:
xrandr --output HDMI-1 --mode 1920x1080 --pos 0x0 --output DP-3 --primary --mode 2560x1440 --pos 1920x0
xrandr --output HDMI-1 --mode 1920x1080 --pos 0x0 --output DP-3 --primary --mode 2560x1440 --pos 2560x0
xrandr --output HDMI-1 --mode 1920x1080 --pos 0x0 --output DP-3 --primary --mode 2560x1440 --pos 1920x0
Question
Why doesn’t the command work in the first place? Naturally, I would prefer to run just one command on boot and be fine.
Thoughts
- Is the
xrandr
command (or the command with-pos
arguments) somehow relative to the setting currently in place?
Thanks for any insights!