I have a situation where unplugging an external monitor and running an xrandr sequence to return the screen to the internal display sometimes causes the i915 driver to wig out.<div><br></div><div>In perusing the intel-gfx archives, I see <a href="http://lists.freedesktop.org/archives/intel-gfx/2010-May/006957.html">http://lists.freedesktop.org/archives/intel-gfx/2010-May/006957.html</a> makes a reference to "commit 9f54107f866a25cf670f81f7c52b8c108728c6a5", but I do not see that commit in the drm-intel kernel.  I am looking at git://<a href="http://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git">git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel.git</a>.  Is this not the right repo?</div>
<div><br></div><div><br></div><div>The xrandr sequence to switch from external monitor to internal display is:</div><div><div><div>xrandr --output LVDS1 --mode 1280x800</div><div>xrandr --output VGA1 --off</div><div>xrandr --fb 1280x800</div>
</div></div><div><br></div><div>To switch back to the external monitor:</div><div><div>xrandr --output LVDS1 --off</div><div>xrandr --output VGA1 --mode 1920x1200</div><div>xrandr --fb 1920x1200</div></div><div><br></div>
<div><br></div><div>I have tried rearranging the order of commands, and this sequence reduces the likelihood of failure:</div><div><div>xrandr --output VGA1 --off</div></div><div><div>xrandr --output LVDS1 --mode 1280x800</div>
</div><div><div>xrandr --fb 1280x800</div></div><div><br></div><div>But I still occasionally see the failure.  Stressing the driver a bit with "echo 7 > /sys/module/drm/parameters/debug" seems to exacerbate the situation (ie, increase the likelihood of failure).</div>
<div><br></div><div>Any ideas?</div><div><br></div><div>bryan.</div>