Ubuntu

Comment 5 for bug 949296

Confirmed the patch fixes the regression for me - suspend now works when I close the lid.

This is apparently related to having the binary NVIDIA driver installed. gnome_rr_output_is_laptop() from gnome-desktop tries to guess whether a system is a laptop based on the output name, but the heurisitc doesn't work for the NVIDIA binary driver.