You are not logged in.

#1 2012-09-17 22:35:46

siam
Member
Registered: 2011-07-13
Posts: 18

Gnome 3 and Laptop Lid Close Issue

Hello all,

I'm on an up to date Arch 64 installation with:

  • Gnome 3 as my desktop environment

  • gdm as my display manager

  • systemd

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 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 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.

Any help would be appreciated.

Last edited by siam (2012-09-17 23:02:36)

Offline

#2 2012-09-18 01:46:45

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: Gnome 3 and Laptop Lid Close Issue

This is the intended behavior for gnome3. If there is a external monitor detected, it will not suspend on lid close. I never really found a way around it...other than to not use gnome3.

Offline

#3 2012-09-18 05:21:49

siam
Member
Registered: 2011-07-13
Posts: 18

Re: Gnome 3 and Laptop Lid Close Issue

Hspasta wrote:

This is the intended behavior for gnome3. If there is a external monitor detected, it will not suspend on lid close. I never really found a way around it...other than to not use gnome3.

Your last line made me laugh. I'm almost there too.
Do you remember where you read this was the intended behavior?

Offline

#4 2012-09-18 08:02:25

don_crissti
Member
Registered: 2009-03-17
Posts: 35

Re: Gnome 3 and Laptop Lid Close Issue

They mentioned something here:

a laptop will now stay running (and not suspend) when it is connected to an external monitor, even if the lid is closed.

though I'm not sure that's the expected behavior, check this out:

https://bbs.archlinux.org/viewtopic.php … 2#p1160682

Offline

Board footer

Powered by FluxBB