After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 686856 - systemd-logind integration broke "Suspend when closing lid" policy
systemd-logind integration broke "Suspend when closing lid" policy
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: xrandr
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-25 10:07 UTC by Paolo Bonzini
Modified: 2012-11-21 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add new follow-lid gst-xrandr behavior, tie gsd-power lid-close to gsd-xrandr (10.84 KB, patch)
2012-10-25 10:07 UTC, Paolo Bonzini
none Details | Review

Description Paolo Bonzini 2012-10-25 10:07:08 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.
Comment 1 Richard Hughes 2012-11-21 14:22:25 UTC
Pushed to master (after testing for a few days) -- thanks!