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 527346 - Only suspend laptop when no external monitor is attached
Only suspend laptop when no external monitor is attached
Status: RESOLVED FIXED
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
2.24.x
Other All
: Normal enhancement
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-04-10 13:49 UTC by James Umbanhowar
Modified: 2011-02-11 13:38 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description James Umbanhowar 2008-04-10 13:49:27 UTC
I frequently use my laptop connected to a keyboard and external monitor.  In this situation, I close my laptop, but if I have the suspend on laptop close enabled in g-p-m the computer will suspend.  It would be great if it would only suspend when I don't have an external monitor attached.

Thanks!
Comment 1 Richard Hughes 2008-04-10 14:02:28 UTC
Sure, but some laptops melt (e.g. macbook pro) if they do not suspend when the lid is shut.

Richard.
Comment 2 James Umbanhowar 2008-04-10 14:29:52 UTC
I don't think that is too relevant to this feature request as the current behavior allows for this, as users can manually turn off suspend on lid close.  In Debian, I think it defaults to not suspend on lid close when plugged in to AC.

Couldn't G-P-M check for vulnerable laptops and warn about this possibility?
Comment 3 Richard Hughes 2009-03-04 14:58:41 UTC
Thanks for taking the time to report this bug.
However, you are using a version that is too old and not supported anymore. GNOME developers are no longer working on that version, so unfortunately there will not be any bug fixes for the version that you use.

By upgrading to a newer version of GNOME you could receive bug fixes and new functionality. You may need to upgrade your Linux distribution to obtain a newer version of GNOME.
Please feel free to reopen this bug if the problem still occurs with a newer version of GNOME.
Comment 4 Emmanuel Pacaud 2009-03-04 15:14:13 UTC
Hi Richard.

I don't get why you're closing this bug. Is it fixed in 2.25.x ?

I have gnome-power-manager 2.24.2 and the bug report is still valid with this version.
Comment 5 Aleksi Hankalahti 2011-02-11 12:37:01 UTC
This bug is not fixed in 2.32.0.

Keeping external display (and machine itself) running while laptop's lid is closed is quite essential feature; as nowadays it's common to replace the desktop with laptop and external display + control devices.
Comment 6 Richard Hughes 2011-02-11 13:38:04 UTC
Fixed in GNOME 3:

commit dde6e07b905cec0391eaaf770c58beeff86e4a9a
Author: Richard Hughes <richard@hughsie.com>
Date:   Fri Jan 7 12:08:16 2011 +0000

    Ignore suspend on lid closed if we are docked

:100644 100644 afa7305... 87da12c... M  src/gpm-manager.c

commit 5036023bdff8201dd1fb92c7cedef5da407c9a60
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed Feb 2 13:56:46 2011 +0000

    Force suspend on lid close if LidForceSleep is set to avoid a melted laptop

:100644 100644 812bbb1... 54e3d1e... M  src/gpm-manager.c

You need a new upower to get this functionality. Docked is defined as having more than one active display device attached.