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 674821 - Gnome 3.4 is not suspending when the lid is closed.
Gnome 3.4 is not suspending when the lid is closed.
Status: RESOLVED NOTGNOME
Product: gnome-settings-daemon
Classification: Core
Component: power
3.4.x
Other Linux
: Normal major
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-04-25 18:22 UTC by Martin Nielsen
Modified: 2012-06-19 16:48 UTC
See Also:
GNOME target: ---
GNOME version: 3.3/3.4


Attachments
/usr/lib/gnome-settings-daemon/gnome-settings-daemon --debug (36.11 KB, text/plain)
2012-04-26 14:23 UTC, Martin Nielsen
Details

Description Martin Nielsen 2012-04-25 18:22:19 UTC
Since upgrading to gnome 3.4.1, my laptop does not suspend when the lid is closed.

I have checked the setting in gnome tweak tool, and they are both set to "Suspend"

The laptop has no problem suspending if I choose the option from the menu to the right.

Please tell me what logs you will need, and I will supply them..
Comment 1 Martin Nielsen 2012-04-25 18:42:26 UTC
/proc/acpi/button/lid/LID/state is updated to "state:      closed" when the lid is closed.
Comment 2 Martin Nielsen 2012-04-25 19:16:23 UTC
#upower --monitor-detail

[21:13:59.218]	daemon changed:
  daemon-version:  0.9.15
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   yes
  lid-is-present:  yes
  is-docked:       no

[21:14:01.571]	daemon changed:
  daemon-version:  0.9.15
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no
Comment 3 Martin Nielsen 2012-04-25 19:59:52 UTC
#uname -a

Linux arch 3.3.3-1-ARCH #1 SMP PREEMPT Mon Apr 23 09:41:07 CEST 2012 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
Comment 4 Matthias Clasen 2012-04-25 23:14:23 UTC
this is now handled by the power plugin in gnome-settings-daemon
Comment 5 Jose Marino 2012-04-25 23:52:05 UTC
I see the same problem here using gnome 3.4.1 in fallback mode. Also, the battery icon does not update correctly as things change: battery is drained/charged, AC is plugged/unplugged.

These problems occur with: gnome-settings-daemon-3.4.1

They go away when I revert to: gnome-settings-daemon-3.2.2
Comment 6 Martin Nielsen 2012-04-26 06:19:35 UTC
I can confirm this..

Suspend problem is gone when I revert to gnome-settings-daemon-3.2.2

however I do not see the battery issue, maybe that is a separate bug... ?
Comment 7 Richard Hughes 2012-04-26 07:32:22 UTC
(In reply to comment #5)
> I see the same problem here using gnome 3.4.1 in fallback mode. Also, the
> battery icon does not update correctly as things change: battery is
> drained/charged, AC is plugged/unplugged.

This sounds like gnome-settings-daemon is crashing or the power plugin is failing to load. What does:

killall gnome-settings-daemon
killall gnome-settings-daemon
(press alt-f4 to clear the fail-whale if it comes up)
/usr/libexec/gnome-settings-daemon --debug

print? Can you attach it to this bug as an attachment please. If you also shut the lid and re-open it we can see if the event is being ignored for some reason. Thanks.
Comment 8 Martin Nielsen 2012-04-26 14:23:38 UTC
Created attachment 212891 [details]
/usr/lib/gnome-settings-daemon/gnome-settings-daemon --debug

I closed the lid on line 336
Comment 9 Martin Nielsen 2012-04-26 14:25:54 UTC
On line 338:

(gnome-settings-daemon:2544): power-plugin-DEBUG: lid is closed; not suspending nor hibernating since some external monitor outputs are still active.


I do have an external monitor configured but it is not active..
Comment 10 Martin Nielsen 2012-04-26 14:30:20 UTC
#xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
   1280x800       50.0* 
   1024x768       51.0     52.0  
   832x624        53.0  
   800x600        54.0     55.0     56.0     57.0     58.0  
   720x400        59.0  
   700x525        60.0  
   640x512        61.0     62.0  
   640x480        63.0     64.0     65.0     66.0     67.0  
   640x400        68.0  
   640x350        69.0  
   576x432        70.0  
   512x384        71.0     72.0     73.0     74.0     75.0  
   416x312        76.0  
   400x300        77.0     78.0     79.0     80.0     81.0  
   360x200        82.0  
   320x240        83.0     84.0     85.0     86.0  
   320x200        87.0  
   320x175        88.0
Comment 11 Ulf Winkelvos 2012-05-05 01:51:30 UTC
same problem here:
---
(gnome-settings-daemon:25856): power-plugin-DEBUG: lid is closed; not suspending nor hibernating since some external monitor outputs are still active
---
but there is not any external monitor connected.

it is a hp dc3550eg and i am using the propertary nvidia driver.
Comment 12 Martin Nielsen 2012-06-19 16:48:49 UTC
The issue is fixed with the latest nvidia driver (	
302.17).  My guess is that the following change did the trick.

Quote from nvidia changelog(http://www.nvidia.com/object/linux-display-amd64-302.17-driver.html)

Added an "EDID" property to RandR 1.2 outputs. This property contains the binary contents of the connected monitor's extended display identification data, which allows applications such as the GNOME display properties dialog to query information about it.