Comment 12 for bug 515465

Revision history for this message
Torsten Spindler (tspindler) wrote : Re: g-p-m acts when switching to console and back to x when lid is closed

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.