Help with precise monitor alignment

I am attempting to set up a dual monitor in KDE. However, one of my monitors is slightly higher than the other. When attempting to reflect this in the screen configuration section in display settings, they either snap together or are much too far apart. Anyone know how I could avoid this?

Hi notjlogie

I am still on Plasma 5 and X, no Wayland.

Here is one of my scripts to align the bottoms of 2 screens of different resolutions:

#!/bin/sh
xrandr --output eDP-1 --primary --mode 1366x768 --pos 0x312 --rotate normal --output HDMI-1 --mode 1920x1080 --pos 1367x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off

The --pos 0x312 is what does the trick for me.

Hope this helps

Vektor

Edit: You might want to adjust the title to reflect video monitor screen arrangement instead of “window”.

1 Like

Try kscreen-doctor --help. This is the CLI version of the dialog you were using, and will allow you to specify positions to the pixel.

I wish we could hold shift to disable snapping in that dialog.

2 Likes

Thanks pallaswept

Never knew about that. Cool.

Vektor

1 Like

As suggested by @pallaswept, you can use kscreen-doctor for fine-tuning this.

I have this script that runs on autostart:

#!/bin/sh
kscreen-doctor \
    output.HDMI-A-0.enable output.HDMI-A-0.priority.1 output.HDMI-A-0.rotation.none output.HDMI-A-0.position.0,1080 \
    output.DisplayPort-0.enable output.DisplayPort-0.priority.2 output.DisplayPort-0.rotation.none output.DisplayPort-0.position.1920,1080 \
    output.DisplayPort-1.enable output.DisplayPort-1.priority.3 output.DisplayPort-1.rotation.none output.DisplayPort-1.position.1920,0 \
    output.DisplayPort-2.enable output.DisplayPort-2.priority.4 output.DisplayPort-2.rotation.none output.DisplayPort-2.position.0,0

To see how your displays are named on your system, you can run:

kscreen-doctor --outputs
1 Like