GNOME Bugzilla – Bug 686856
systemd-logind integration broke "Suspend when closing lid" policy
Last modified: 2012-11-21 14:22:25 UTC
Created attachment 227242 [details] [review] add new follow-lid gst-xrandr behavior, tie gsd-power lid-close to gsd-xrandr Something in the integration with logind broke the "always suspend when closing lid, even with external monitors" mode introduced to fix bug 657201. To sum things up, the default policy is to keep a laptop running (i.e. not suspended) as long as there are monitors plugged into it, even if the lid is closed. This takes care of the "I want to close the laptop and use an external monitor" folks. However, some people actually use the laptop as a workstation, with the lid as the power switch. If they use an external monitor too, they suddenly need to use Fn-F4 or suspend the laptop from the menu rather than just slam the laptop closed. To appease these folks, a new setting was introduced in gsd-power. Due to the logind integration, however, something changed and gsd-xrandr now sees the lid close as well. As a result, when you resume the laptop all the windows are amassed on the external monitor rather than staying where they were. I prepared a patch to fix this behavior and unify the "lid mode" settings between gsd-power and gsd-xrandr.
Pushed to master (after testing for a few days) -- thanks!