First of all, you can get rid of your xorg.conf, or simplify it down to just the DontZap option. All of that should be irrelevant to this problem, but may as well exclude it.
Next, your MonitorsUser.xml looks a bit odd; the last config (which I assume is the one gnome is using for your HW since it's the only one with HDMI1) is missing configuration details on LVDS1. So, I'd try removing monitors.xml and reconfiguring in gnome. See if it generates the same (I guess invalid?) config. The thing to do here is to study xrandr --verbose output before and after the hotplug event. The attached xrandr data I guess is from with the HDMI1 connected: HDMI1 connected 1680x1050+0+0 (0x4c) normal (normal left inverted right x axis y axis) 473mm x 296mm LVDS1 connected (normal left inverted right x axis y axis) When the laptop's in the broken state, check what the xrandr output looks like. I notice you're running a non-standard kernel. Assuming this issue is a regression and not just a misbehavior you've had but haven't noticed, then that kernel would probably be the first thing to look at (i.e. try a different kernel version and see if it reproduces). All the modesetting is done in the kernel so bugs relating to monitor output often arise from that. I've added a kernel task. However, this actually feels more like a gnome bug. gnome-settings- daemon (or rather, libgnome-desktop) is what handles the hotplugging event and what remaps crtcs to appropriate outputs. Turn on verbose debugging for that and collect the debugging output before/during/after the hotplug event to see exactly what xrandr events are occurring. That shows what CRTCs are being mapped to what outputs. Often with these types of "output goes missing and just displays corruption" issues, the wrong crtc is mapped to the wrong output device. ** Changed in: xserver-xorg-video-intel (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/1155838 Title: raring: corrupted display on LVDS when I disconnect my HDMI output Status in “linux” package in Ubuntu: Confirmed Status in “xserver-xorg-video-intel” package in Ubuntu: Incomplete Bug description: Today, I tried to undock my laptop to enjoy the nice weather outside. I was surprised to find that the moment I did so, the display on the LVDS output was corrupted. The moment I reconnected the HDMI display, the output on LVDS was normal again. Disconnecting the HDMI again, or manually reconfiguring outputs with gnome-control-center, the problem is reproducible. HDMI on, LVDS display is sane. HDMI off, LVDS output is garbled (looking like wrong striping or wrong interlacing or something). $ xrandr Screen 0: minimum 320 x 200, current 1680 x 1850, maximum 32767 x 32767 LVDS1 connected 1280x800+400+1050 (normal left inverted right x axis y axis) 261mm x 163mm 1280x800 60.0*+ 50.0 1024x768 60.0 800x600 60.3 56.2 640x480 59.9 VGA1 disconnected (normal left inverted right x axis y axis) 1680x1050 60.0 1280x800 60.0 HDMI1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 473mm x 296mm 1680x1050 60.0*+ 1280x1024 75.0 60.0 1440x900 75.0 59.9 1280x960 60.0 1280x800 59.9 1152x864 75.0 1024x768 75.1 70.1 60.0 832x624 74.6 800x600 72.2 75.0 60.3 56.2 640x480 72.8 75.0 66.7 60.0 720x400 70.1 DP1 disconnected (normal left inverted right x axis y axis) ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: xserver-xorg-video-intel 2:2.21.4-0ubuntu1 Uname: Linux 3.9.0-030900rc2-generic x86_64 .tmp.unity.support.test.0: ApportVersion: 2.9.1-0ubuntu1 Architecture: amd64 CompizPlugins: [core,composite,opengl,compiztoolbox,decor,imgpng,snap,place,grid,resize,regex,mousepoll,gnomecompat,unitymtgrabhandles,vpswitch,move,animation,expo,session,wall,ezoom,staticswitcher,workarounds,fade,scale,unityshell] CompositorRunning: compiz CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0' CompositorUnredirectFSW: true Date: Fri Mar 15 16:24:00 2013 DistUpgraded: 2013-01-25 08:16:10,776 WARNING no activity on terminal for 300 seconds (Configuring texlive) DistroCodename: quantal DistroVariant: ubuntu ExtraDebuggingInterest: Yes, including running git bisection searches GraphicsCard: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02) (prog-if 00 [VGA controller]) Subsystem: Lenovo Device [17aa:215a] InstallationDate: Installed on 2010-09-24 (903 days ago) InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1) MachineType: LENOVO 3249CTO MarkForUpload: True PlymouthDebug: Error: [Errno 13] Permission denied: '/var/log/plymouth-debug.log' ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.9.0-030900rc2-generic root=/dev/mapper/hostname-root ro quiet splash --verbose vt.handoff=7 SourcePackage: xserver-xorg-video-intel UpgradeStatus: Upgraded to quantal on 2013-01-25 (49 days ago) dmi.bios.date: 08/23/2010 dmi.bios.vendor: LENOVO dmi.bios.version: 6QET52WW (1.22 ) dmi.board.name: 3249CTO dmi.board.vendor: LENOVO dmi.board.version: Not Available dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvr6QET52WW(1.22):bd08/23/2010:svnLENOVO:pn3249CTO:pvrThinkPadX201:rvnLENOVO:rn3249CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 3249CTO dmi.product.version: ThinkPad X201 dmi.sys.vendor: LENOVO version.compiz: compiz 1:0.9.9~daily13.03.08-0ubuntu1 version.ia32-libs: ia32-libs N/A version.libdrm2: libdrm2 2.4.42-0ubuntu2 version.libgl1-mesa-dri: libgl1-mesa-dri 9.0.2-0ubuntu1 version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A version.libgl1-mesa-glx: libgl1-mesa-glx 9.0.2-0ubuntu1 version.xserver-xorg-core: xserver-xorg-core 2:1.13.2-0ubuntu3 version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu2 version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.1.0-0ubuntu1 version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.21.4-0ubuntu1 version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.6-0ubuntu3 xserver.bootTime: Fri Mar 15 00:29:32 2013 xserver.configfile: /etc/X11/xorg.conf xserver.errors: xserver.logfile: /var/log/Xorg.0.log xserver.version: 2:1.13.2-0ubuntu3 xserver.video_driver: intel To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1155838/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp