Description: Treat a display named "default" as internal. This happens with the
 proprietary NVidia driver which does not do proper XRandR. We cannot detect
 external vs. internal display there, so err on the side of "internal" to make
 suspend on lid close work.
Bug-Ubuntu: https://launchpad.net/bugs/949296
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=672030

Index: gnome-desktop3/libgnome-desktop/gnome-rr.c
===================================================================
--- gnome-desktop3.orig/libgnome-desktop/gnome-rr.c	2012-03-28 10:11:06.352796000 +0200
+++ gnome-desktop3/libgnome-desktop/gnome-rr.c	2012-03-28 10:18:13.834581617 +0200
@@ -1906,6 +1906,7 @@
 	    strstr (output->name, "LVDS") ||
 	    strstr (output->name, "Lvds") ||
 	    strstr (output->name, "LCD")  ||  /* ... but fglrx uses "LCD" in some versions.  Shoot me now, kthxbye. */
+	    strstr (output->name, "default") || /* nVidia does not do XRandR properly, can't detect internal/external */
 	    strstr (output->name, "eDP")  ||  /* eDP is for internal laptop panel connections */
 	    strstr (output->name, "DFP")))    /* DFP is also an internal laptop display */
 	return TRUE;
