#856045 x11-xserver-utils: Incorrect xrandr: cannot find crtc for output HDMI2

Package:
x11-xserver-utils
Source:
x11-xserver-utils
Description:
X server utilities
Submitter:
William Herrin
Date:
2021-07-27 20:21:03 UTC
Severity:
normal
#856045#5
Date:
2017-02-24 16:42:33 UTC
From:
To:
Dear Maintainer,

Running debian stable (jessie) I moved my laptop from home (with one monitor
setup) to work (with a different one) using hibernate/resume (that is,
no reboot). At home my monitors are eDP1, DP1 and HDMI1. At work they're
eDP1, HDMI1 and HDMI2. Arandr generated the following xrandr command to
reconfigure the screens for my work environment. It failed. I attempted
the xrandr command it generted by hand:

xrandr --output HDMI2 --mode 1920x1080 --pos 152x2352 --rotate normal --output HDMI1 --mode 1920x1080 --pos 3992x2352 --rotate normal --output DP1 --off --output eDP1 --mode 1920x1080 --pos 2072x2352 --rotate normal --output DP2 --off

The command failed with the following error:

xrandr: cannot find crtc for output HDMI2

Despite what the error said, HDMI2 was connected and recognized by xrandr
as being connected.

The following sequence of commands (the second identical to the original
above) successfully configured the display as intended.

xrandr --output DP1 --off
xrandr --output HDMI2 --mode 1920x1080 --pos 152x2352 --rotate normal --output HDMI1 --mode 1920x1080 --pos 3992x2352 --rotate normal --output DP1 --off --output eDP1 --mode 1920x1080 --pos 2072x2352 --rotate normal --output DP2 --off

Regards,
Bill Herrin



*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***

#856045#10
Date:
2021-07-27 20:10:58 UTC
From:
To:
Hi,

this one is probably already fixed in xrandr 1.5.0 (in Debian since
https://packages.qa.debian.org/x/x11-xserver-utils/news/20160223T222823Z.html,
so already in stable _and_ oldstable):
https://gitlab.freedesktop.org/xorg/app/xrandr/-/commit/3d03be780fca4949b11ead46c5ea5d3266c03c32

Can you try if this works now?