Bug 719679

Summary: Sometimes, suspend on close-lid may be the best choice for a docked laptop
Product: [Fedora] Fedora Reporter: Paolo Bonzini <pbonzini>
Component: gnome-settings-daemonAssignee: Bastien Nocera <bnocera>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bnocera, mclasen, mkasik, pbonzini, rhughes, richard, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-15 01:05:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paolo Bonzini 2011-07-07 16:28:44 UTC
Description of problem:
The default action for lid closing should be to suspend.  This works on my Thinkpad T500 when on battery and on AC, but not when docked.

Version-Release number of selected component (if applicable):
gnome-power-manager-3.0.0-3.fc15.x86_64
upower-0.9.10-1.fc15.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Put computer into docking station.
2. Close lid.
  
Actual results:
Nothing.

Expected results:
Computer is suspended.

Additional info:
acpi_listen output:
button/lid LID close
video/switchmode VMOD 00000080 00000000
button/lid LID open
processor LNXCPU:00 00000080 00000004
processor LNXCPU:00 00000080 00000000
processor LNXCPU:00 00000080 00000004
processor LNXCPU:01 00000080 00000004
processor LNXCPU:00 00000080 00000000
processor LNXCPU:01 00000080 00000000
processor LNXCPU:00 00000080 00000004
processor LNXCPU:01 00000080 00000004

Comment 1 Richard Hughes 2011-07-07 16:48:57 UTC
Yup, we explicitly disable suspend-on-lid closed when docked. Some people close the lid on the laptop and just use an external screeen. This is what the designers wanted.

Comment 2 Paolo Bonzini 2011-07-08 10:46:23 UTC
> Some people close the lid on the laptop and just use an external screeen. This > is what the designers wanted.

Is there a gconf setting to undo that?  If so, I can move the bug to gnome-tweak-tool (and perhaps even fix it myself).

Of course, it would be even better if the default behavior were conditional on having: 1) at least one active (possibly mirrored) external display; 2) one attached external keyboard.

In fact, "docked" seems to be a cheap replacement for this condition.  If a laptop is on AC power but has an external keyboard and display, and you close the lid, it should likely be blanked rather than suspended.

Comment 3 Paolo Bonzini 2011-07-08 10:52:52 UTC
Hmm, after more tests I found that something similar to what I mentioned in comment 2 _is_ implemented.  Probably another condition is required though, for example displays being mirrored, or the activities bar being on the external display.

In my case (external display+keyboard+mouse, but activities bar on the laptop screen) it is pretty obvious that I want to suspend the laptop, as the activities bar is not accessible anymore when I close the lid.

Comment 4 Paolo Bonzini 2011-11-02 14:31:38 UTC
How can I ask someone to look at the patch upstream? The use case in comment 1 just works with it too.

Comment 5 Matthias Clasen 2012-06-15 01:05:31 UTC
Fix was committed upstream