No effect on Suspend and Hibernate buttons in power button shutdown dialog

Bug #1080344 reported by Corvus Corax
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

On Unity Desktop, in the popup dialog that appears when the ACPI power button is pressed, the buttons to "suspend" and "hibernate" are non functional (see screenshot "screenshot of dialog in question").

Detailed info:

Usually, when the ACPI power button on a laptop is pressed, the ACPI-daemon handles this event and issues a shutdown. However this is not the case when certain GUI's are running (the acpi shutdown handler explicitly checks for the presence of a gnome-settings-daemon process, among others.)

When a user is running the Unity desktop, the process gnome-settings-daemon is running, and shows up a "popup".

(see screenshot "screenshot of dialog in question")

This popup asks the user whether he wants to

- Suspend
- Restart
- Cancel
- Shutdown

and if the hibernate function has been enabled according to http://askubuntu.com/questions/94754/how-to-enable-hibernation

also

- Hibernate

if no action is taken, the dialog executes selects the "Shutdown" feature after 60 seconds without user interaction.

Of these buttons only "Restart", "Shutdown" and "Cancel" have the intended effect,

"Shutdown" invokes a shutdown of the system
"Cancel" simply closes the dialog.
"Restart" causes a system restart

However "Suspend" and "Hibernate" have the same effect as "Cancel". the dialog closes, but the system keeps running.

(see sreenshot in attachment "screenshot of dialog in question")

This bug only affects the Unity desktop.

For example, the corresponding dialog in the ubuntustudio desktop works as expected.

Also if "Suspend" or "Hibernate" are selected manually in the power menu from the Unity desktop, they ALSO work as expected. (see screenshot in attachment "on this menu everything works")

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gnome-settings-daemon 3.4.2-0ubuntu14
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Sun Nov 18 14:09:45 2012
EcryptfsInUse: Yes
MarkForUpload: True
SourcePackage: gnome-settings-daemon
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Corvus Corax (corvuscorax) wrote :
Revision history for this message
Corvus Corax (corvuscorax) wrote :
Revision history for this message
Corvus Corax (corvuscorax) wrote :

When running gnome-settings-daemon in debug mode (executed manually with --debug option) the following line shows up every time the power button is pressed:

(gnome-settings-daemon:4022): media-keys-plugin-DEBUG: Launching action for key type '45' (on device id 6)
(gnome-settings-daemon:4022): media-keys-plugin-DEBUG: Launching action for key type '45' (on device id 6)
(gnome-settings-daemon:4022): media-keys-plugin-DEBUG: Launching action for key type '45' (on device id 6)
(gnome-settings-daemon:4022): media-keys-plugin-DEBUG: Launching action for key type '45' (on device id 6)

no debug info is printed when hitting either suspend, hibernate or cancel buttons, but the same line shows up if the power button is pressed again.

I am attaching two logfiles with the debug output of gnome-settings-daemon invoked with --debug, once with the "restart" button hit and once with "shutdown"

Revision history for this message
Corvus Corax (corvuscorax) wrote :
Revision history for this message
Corvus Corax (corvuscorax) wrote :

additional info: The following actions work normally on the command line:

sudo pm-suspend <-- suspends the system, wakes up normally
sudo pm-hibernate <-- hibernates the system, wakes up as intended (with a few manual tweaks in the initrd image to get it working with encrypted-swap)

pm-is-supported --suspend returns true
pm-is-supported --hibernate returns true
pm-is-supported --suspend-hybrid returns false (but noone uses that anyway)

description: updated
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, your description is confusing, could you write a liner stating the issue?

Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Corvus Corax (corvuscorax) wrote :

@seb128: I updated the description, is this more clear?

On Unity Desktop, in the popup dialog that appears when the ACPI power button is pressed, the buttons to "suspend" and "hibernate" are non functional (see screenshot "screenshot of dialog in question").

description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

it is, that seems like bug #1041137 then, can you check if that update fixes it:

gnome-session (3.6.2-0ubuntu2) raring; urgency=low

  * Add 04_consolekit_init_upower.patch: GsmConsoleKit: Properly initialize
    upower client. (LP: #1041137)

(there is a SRU in the queue waiting for review with the fix as well)

Revision history for this message
Corvus Corax (corvuscorax) wrote :

@seb128: Thanks for that link. From reading the description, it does indeed look like a duplicate of that bug.
I cannot check wether the update fixes is before wednesday since I don't have access to a computer running ubuntu where I am right now. I will provide more info when I have tested it.

Revision history for this message
Sebastien Bacher (seb128) wrote :

ok, I'm marking it as duplicate, feel free to undup later if it turns out to be a different issue and not fixed by the update

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.