The attached source checks via xrandr if an external display is connected (named VGA or DVI). It does not work with drivers that don't provide xrandr interface, e.g. the binary driver from nvidia.
** Attachment added: "detect-external-display.c" http://launchpadlibrarian.net/41102727/detect-external-display.c -- g-p-m acts when switching to console and back to x when lid is closed https://bugs.launchpad.net/bugs/515465 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs