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 684266 - Close Lid Action with External Monitor Connected
Close Lid Action with External Monitor Connected
Status: RESOLVED DUPLICATE of bug 657201
Product: gnome-settings-daemon
Classification: Core
Component: power
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-09-18 05:15 UTC by siam.accounts
Modified: 2012-09-18 22:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description siam.accounts 2012-09-18 05:15:35 UTC
Using gnome-tweak-tool, I specified my Thinkpad X220 laptop to suspend when the laptop lid is closed (for both AC and battery). Everything works fine when I close my lid if an external monitor is not connected.

When an external monitor is connected (my typical setup at work), the laptop will not suspend when I close the lid. The display will turn off, and that's it.
The same is true if I specify the action to be Shutdown when then lid is closed. That is, the display turns off and the system never shuts down.
The only way to suspend/shut down the laptop when I close the lid is to first disable the external monitor and then close the lid. I want to avoid doing this.

Note that even when an external monitor is connected, suspending through the Gnome menu or via pm-suspend works fine, but I want to be able to suspend/shutdown when I simply close the lid.  Something is not being triggered when the lid is closed or an error is occurring, and I don't know quite where to look.

Note also that disabling the xrandr plugin for gnome-settings-daemon and using an external tool, specifically arandr, did not make a difference.
Comment 1 Bastien Nocera 2012-09-18 22:10:58 UTC
You can already work around that with the:
org.gnome.settings-daemon.plugins.power lid-close-suspend-with-external-monitor
GSetting.

*** This bug has been marked as a duplicate of bug 657201 ***