Upon further inquiry I've found out that the ConnectorType property that gnome_rr_output_is_laptop() just isn't implemented for most of the video drivers in X, and it isn't likely to be fixed in the near future.
So for precise something along the lines of the patch I've attached is going to be required. Federico Mena-Quintero commented on the upstream bug report that the patch makes sense. Is that enough to move forward with it? This really ought to be fixed for precise, or else the code in g-s-d that using this function to leave the machine running when the lid is closed ought to be removed. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xserver-xorg-video-intel in Ubuntu. https://bugs.launchpad.net/bugs/933710 Title: Laptops with eDP panels do not suspend when lid closed To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-desktop/+bug/933710/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp