Bug 492825

Summary: GNOME power manager takes minutes to load, opening settings freezes and suspend/hybernate options are gone.
Product: [openSUSE] openSUSE 11.1 Reporter: Pim Schellart <P.Schellart>
Component: GNOMEAssignee: E-mail List <gnome-bugs>
Status: RESOLVED NORESPONSE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: vuntz
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: strace of gnome-session after calling gnome-session-save --shutdown-dialog

Description Pim Schellart 2009-04-07 12:38:01 UTC
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; nl-nl) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16

The GNOME power manager refuses to load.
When clicking the shutdown button in the `computer' menu it takes a couple of minutes for the selection window (shutdown/reboot) to appear and the options for suspend and hybernate are missing (they used to be there but after the latest automatic update they were gone).
Also starting the settings manager for power mangagement causes the application window to freeze.
It could also be a problem with ACPI or an upstream GNOME power management problem because I encountered a similar problem (clicking the power button causes a freeze) on a (different and completely unrelated) Ubuntu machine, also after a recent update.

Reproducible: Always

Steps to Reproduce:
1.Click on computer -> shutdown
2.Wait
3.
Actual Results:  
Takes minutes to load shutdown screen and hybernate/suspend options are missing.

Expected Results:  
Almost instantanious (order of seconds) loading of the selection window with all four (shutdown,reboot,suspend,hybernate) options.
Comment 1 Vincent Untz 2009-04-28 16:02:55 UTC
Holger: what's the right way to determine if it's a gnome-power-manager issue, a hal issue, a acpi issue, or even something else?
Comment 2 Holger Macht 2009-04-28 16:16:42 UTC
Hard to say :-) Isn't there another way to bring up the shutdown menu? Maybe on the command line where an strace is possible?

This could be even related to a ConsoleKit/D-Bus security update. Pim, please attach the output of polkit-auth executed as user. Does 'powersave -u/-U' work as user and puts the system to sleep?
Comment 3 Vincent Untz 2009-04-28 16:31:37 UTC
(In reply to comment #2)
> Hard to say :-) Isn't there another way to bring up the shutdown menu? Maybe on
> the command line where an strace is possible?

Well, you can always run "gnome-session-save --shutdown-dialog". In the end, though, you'll want to strace gnome-session since the command line just calls a dbus method.
Comment 4 Holger Macht 2009-04-28 16:55:31 UTC
Ok. Pim, can you please also run "gnome-session-save --shutdown-dialog" from the command line? Does this also last long until the dialog is opened?
Comment 5 Pim Schellart 2009-05-06 14:30:35 UTC
Created attachment 290430 [details]
strace of gnome-session after calling gnome-session-save --shutdown-dialog
Comment 6 Pim Schellart 2009-05-06 14:32:12 UTC
Sorry for the delay.

Tried the following:

1. gnome-session-save --shutdown-dialog

** (gnome-session-save:9268): WARNING **: Failed to call shutdown: Did
not receive a reply. Possible causes include: the remote application did
not send a reply, the message bus security policy blocked the reply, the
reply timeout expired, or the network connection was broken.

2. strace gnome-session
     see attached file.

3. powersave -u
     works!
Comment 7 Vincent Untz 2009-05-13 15:20:39 UTC
I failed to see this:

(In reply to comment #0)
> The GNOME power manager refuses to load.

Does this mean you have no power manager icon? Is it running? If not, what's the output if you run it from the command line with "--no-daemon --verbose"?
Comment 8 Vincent Untz 2011-03-01 23:58:04 UTC
No answer, so closing. Please reopen if you can reproduce on a recent version of openSUSE.