autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

Loading fails: specified screen not large enough for output

Open Azivast opened this issue 4 years ago • 2 comments

I've been looking for a way to automatically manage my monitors lately and autorandr fits the bill perfectly! However, I can not get it to load a profile correctly.

Steps taken to produce the problem:

I set up the monitors with arandr which produces the following script: xrandr --output DVI-D-0 --mode 1920x1080 --pos 4480x180 --rotate normal --output HDMI-0 --primary --mode 2560x1440 --pos 1920x0 --rotate normal --output HDMI-1 --mode 1920x1080 --pos 0x180 --rotate normal --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1-1 --off --output HDMI-1-2 --off

Running the script works as expected. My 3 monitors are all correctly positioned next to each other.

I then save the layout using autorandr -s 3-monitors which produces the following config:

output DP-0 off output DP-1 off output DP-2 off output DP-3 off output HDMI-1-1 off output HDMI-1-2 off output HDMI-0 crtc 0 mode 2560x1440 pos 1920x0 primary rate 144.00 output HDMI-1 crtc 2 mode 1920x1080 pos 0x180 rate 60.00 output DVI-D-0 crtc 1 mode 1920x1080 pos 4480x180 rate 60.00

I slightly modify the layout in arandr to then run autorandr --debug -c which fails with the following:

3-monitors (detected) | Differences between the two profiles: | [Output DVI-D-0] Option --pos (= `4480x870') is `4480x180' in the new configuration - Loading profile '3-monitors' | Differences between the two profiles: | [Output DVI-D-0] Option --pos (= `4480x870') is `4480x180' in the new configuration - Going to run: xrandr --fb 6400x1440 --output HDMI-1 --crtc 2 --gamma 1.0:1.0:1.0 --mode 1920x1080 --pos 0x180 --rate 60.00 --reflect normal --rotate normal --output HDMI-0 --crtc 0 --gamma 1.0:1.0:1.0 --mode 2560x1440 --pos 1920x0 --primary --rate 144.00 --reflect normal --rotate normal xrandr --fb 6400x1440 --output DVI-D-0 --crtc 1 --gamma 1.0:1.0:1.0 --mode 1920x1080 --pos 4480x180 --rate 60.00 --reflect normal --rotate normal xrandr: specified screen 6400x1440 not large enough for output DVI-D-0 (1920x1080+4480+870) xrandr: Configure crtc 1 failed Failed to apply profile '3-monitors' (line 857; /usr/lib/python3.9/site-packages/autorandr.py): Command failed: xrandr --fb 6400x1440 --output HDMI-1 --crtc 2 --gamma 1.0:1.0:1.0 --mode 1920x1080 --pos 0x180 --rate 60.00 --reflect normal --rotate normal --output HDMI-0 --crtc 0 --gamma 1.0:1.0:1.0 --mode 2560x1440 --pos 1920x0 --primary --rate 144.00 --reflect normal --rotate normal (line 857; /usr/lib/python3.9/site-packages/autorandr.py)

Not sure how to proceed. Is there anything else I can try?

I'm running autorandr 1.11

Azivast avatar Sep 11 '21 20:09 Azivast

https://github.com/phillipberndt/autorandr/pull/219 may fix this

mobius3 avatar Dec 27 '21 02:12 mobius3