M HYPE SPLASH
// updates

How can I configure an UltraWide monitor next to a 4K monitor using Xrandr

By John Campbell

I have a desktop PC with Ubuntu and would like to know the correct Xrandr command to correctly use one 4K (3840x2160 DP-0) monitor next to a UltraWide (2560x1080 HDMI-0) monitor with the a correct scale (maybe 1.5x1.5).

Edit: I'm on Ubuntu 18.04 and have tried with the suggestions on Arch Linux Wiki but I can't find a right command for my case. Everything mess up each time.

Diagram of the monitors

2

1 Answer

Ubuntu 18.04 with Xorg here too.

I am also looking for the solution to a similar problem. I have managed to get it to work for a layout where the ultrawide screen is either above or below the 4K one, but not when they are sitting side by side.

These are the commands required in order to get it to work in an above/below fashion:

xrandr --output eDP1 --scale 1x1 --pos 960x2160
xrandr --output HDMI1 --scale 2x2 --mode 2560x1080 --fb 5120x3960 --pos 0x0

The first one sets the position to be below the ultrawide - and centred. The position should be set using the real dimensions \times the scale being used (2.0 in this example), hence the 960x2160.

The second command sets the scale of the ultrawide to 2.0 x 2.0, and sets the required framebuffer size, which I believe to be max(3200, 2560*2) x (1800 + 1080*2) - hence, 5120x3960 - for an above/below layout.

enter image description here

I have tried to use a similar logic for the side-by-side layout but without success...

These are the commands I tried:

xrandr --output eDP1 --scale 1x1 --pos 0x0
xrandr --output HDMI1 --scale 2x2 --mode 2560x1080 --fb 8320x2160 --pos 3200x0

And this is the result...

enter image description here

Ps. I am commenting as an "answer" because I wanted to be able to post the picture above.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy