You are not logged in.

#1 2021-02-02 22:36:15

b177y
Member
Registered: 2021-02-02
Posts: 5

xrandr ignores --pos arguments and adds panning and tracking arguments

Trying to set up triple monitors with the following configuration (this doesnt render nicely on this forum but if you copy and paste it into a text editor it should look right):

(0,0)                               (3840,0)                          
        +--------------------------------+------------------------------+
        |                                |                              |
        |                                |                              |
        |                                |                              |
        |                                |                              |
        |         DP0.1                  |          HDMI0               |
        |                                |                              |
        |                                |                              |
        |                                |                              |
        |                                |                              |
(0,2160)+--------------------------------+-------+----------------------+
        |   (1327,2160)                          |                      |
        |       |                                |                      |
        |       |                                |                      |
        |       |                                |                      |
        |       |         eDP1.1                 |                      |
        |       |                                |                      |
        |       |                                |                      |
        |       |                                |                      |
        |       |                                |                      |
        +-------+--------------------------------+----------------------+

eDP1.1 is a 3840x2160 display, and the others are 1920x1080 with scale of 2x2.

The xrandr script I'm using (made with arandr but with added --dpi and --scale arguments:

#!/bin/sh
xrandr --dpi 276 \
    --output DP-0.1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 2x2 \
    --output HDMI-0 --mode 1920x1080 --pos 3840x0 --rotate normal --scale 2x2 \
    --output eDP-1-1 --primary --mode 3840x2160 --pos 1327x2160 --rotate normal \
    --output DP-0 --off \
    --output DP-1 --off \
    --output DP-2 --off \
    --output DP-3 --off \
    --output DP-1-1 --off \
    --output HDMI-1-1 --off

But after running that, the output in xrandr is:

DP-0.1 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 476mm x 268mm panning 6353x2160+0+0 tracking 7680x4320+0+0 border 0/0/0/0
HDMI-0 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 476mm x 268mm panning 6353x2160+0+0 tracking 7680x4320+0+0 border 0/0/0/0
eDP-1-1 connected primary 3840x2160+1327+2160 (normal left inverted right x axis y axis) 344mm x 193mm

The laptop display eDP-1-1 ends up in the right place but DP-0.1 and HDMI-0 end up in the same position, meaning they mirror each other but when i move the mouse to the right, both screens pan to the right. If I then open up arandr and move one of them to the right of the other, and press the apply button, it instantly jumps back to where it was.

Last edited by Slithery (2021-02-02 22:49:56)

Offline

#2 2021-02-02 22:51:23

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: xrandr ignores --pos arguments and adds panning and tracking arguments

Fixed that for you, you just needed to use [⁣code] [⁣/code] tags.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-02-03 08:19:45

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: xrandr ignores --pos arguments and adds panning and tracking arguments

Split it and use relative positioning

xrandr --dpi 276
xrandr --output DP-0.1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 2x2
xrandr --output HDMI-0 --mode 1920x1080 --right-of DP-0.1 --rotate normal --scale 2x2
xrandr --output eDP-1-1 --primary --mode 3840x2160 --pos 1327x2160 --rotate normal

When you rotate or scale outputs, editing multiple otputs in one randr call has a history of just failing.

Offline

#4 2021-02-17 15:30:06

b177y
Member
Registered: 2021-02-02
Posts: 5

Re: xrandr ignores --pos arguments and adds panning and tracking arguments

This is working, thank you!!

Offline

Board footer

Powered by FluxBB