<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [Sandybridge Mobile (GT2+)] [Regression] Stretched output on LVDS1 after undocking external monitors during suspend"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=57926">57926</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Sandybridge Mobile (GT2+)] [Regression] Stretched output on LVDS1 after undocking external monitors during suspend
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>thilo@ginkel.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg CVS
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr></table>
      <p>
        <div>
        <pre>System environment: 
-- chipset: Sandybridge Mobile (GT2+)
-- system architecture: x86_64
-- xf86-video-intel: 2.17.0
-- mesa: 8.0.4
-- xserver: 1.11.3
-- libdrm: 2.4.32
-- Linux kernel: 3.4.15
-- Linux distribution: Kubuntu 12.04
-- Machine or mobo model: Lenovo ThinkPad T420s 4174-P5G
-- Display connector: 1x LVDS, 2x DVI (appearing as HDMI)

Problem description:

When booting with both external displays connected suspending, disconnecting
the external displays and then resuming, the output on LVDS1 appears
horizontally stretched.

This used to work correctly in previous kernel versions, most likely 3.2.x (I
can verify this if required).

Reproduction steps:

1. Boot with both DVI outputs connected (LVDS1 will be inactive)
2. Configure correct resolution on external displays using:
   xrandr -d :0.0 --output LVDS1 --off --output HDMI3 --mode 1600x1200
--primary --auto
   sleep 5
   xrandr -d :0.0 --output HDMI2 --mode 1600x1200 --right-of HDMI3 --auto
3. Suspend
4. Remove external displays
5. Resume
6. Switch to LVDS1 using:
   xrandr -d :0.0 --output HDMI2 --off
   sleep 5
   xrandr -d :0.0 --output LVDS1 --mode 1600x900 --auto
   sleep 5
   xrandr -d :0.0 --output HDMI3 --off

The screen output is now horizontally stretched (and clipped). This can only be
corrected using a reboot. While shutting down, even the plymouth shutdown
graphic appears stretched.

Photo: <a href="https://www.dropbox.com/s/5mv3enqmm4pkeuq/2012-12-05%2020.22.19.jpg">https://www.dropbox.com/s/5mv3enqmm4pkeuq/2012-12-05%2020.22.19.jpg</a>

Logs will follow shortly...</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>