<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [hsw dp-mst] "2 encoders on crtc for pipe B" after undock/dock"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95040#c18">Comment # 18</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - [hsw dp-mst] "2 encoders on crtc for pipe B" after undock/dock"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95040">bug 95040</a>
              from <span class="vcard"><a class="email" href="mailto:leon@leon.nu" title="Leon Romanovsky <leon@leon.nu>"> <span class="fn">Leon Romanovsky</span></a>
</span></b>
        <pre>As a workaround, I'm using the following script to force activation of
monitors.

cat ~/.screenlayout/two-dock-force.sh
#!/bin/sh

#two-displays
xrandr --output VIRTUAL1 --off --output eDP1 --off --output DP1 --off --output
DP2-1 --off --output DP2-2 --mode 1920x1080 --pos 1920x0 --rotate normal
--output DP2-3 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI2 --off
--output HDMI1 --off --output DP2 --off

#two-dock-displays
xrandr --output VIRTUAL1 --off --output eDP1 --mode 1366x768 --pos 1920x0
--rotate normal --output DP1 --off --output DP2-1 --off --output DP2-2 --mode
1920x1080 --pos 0x0 --rotate normal --output DP2-3 --off --output HDMI2 --off
--output HDMI1 --off --output DP2 --off

#two-displays
xrandr --output VIRTUAL1 --off --output eDP1 --off --output DP1 --off --output
DP2-1 --off --output DP2-2 --mode 1920x1080 --pos 1920x0 --rotate normal
--output DP2-3 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI2 --off
--output HDMI1 --off --output DP2 --off</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>