gnome logout button takes forever

Bug #187141 reported by Stephen Hemminger
10
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

The gnome logout button is exposing some problem where a service (maybe network manager, or dbus??) takes a long time to shutdown.

* hit Logout button
.... wait minutes... (one user reports 50 seconds)
* get dialog screen about logout/reboot/shutdown

This happens on

- both Gusty and Hardy (x86-64) on a Q6600 using motherboard Intel graphics.
- Hardy Desktop x86-32 on a custom built machine around Asus A7n8x-x and nvidia-graphics card

Workaround: run gnome-power-manager and/or apmd.
   (Even if these services are not wanted/used otherwise.)

Revision history for this message
Ari (a-r-i) wrote :

I have the same problem on my PC. If i chancel the dialog and hit logout again, everything works fine and fast (but this time WITH hybernation-option)

Revision history for this message
Stephen Hemminger (shemminger) wrote :

I figured out the problem is that I disabled the power manager under services.
The power manager doesn't do anything useful on a desktop system, but the shutdown
dialog talks to the power manager to determine if suspend/resume work.

Therefore the problem is logout is trying to talk to the non-existent power manger.

Revision history for this message
Ari (a-r-i) wrote :

thanks, works fine for me!

Changed in gdm:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Menda (bymenda) wrote :

Thanks, it worked also for me. In services I just activated "apmd" which was disabled before.

Revision history for this message
Åskar (olskar) wrote :

Shouldnt this bug have a higher priority?

Revision history for this message
Menda (bymenda) wrote :

I have to say that the bug has come back to my system. Even with the apmd service running it takes 1 minute to open the logout menu.

Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :

Same here: power manager workaround don't work...

Thank you

Revision history for this message
Greg A (etulfetulf) wrote :

I think another reason for this occuring may be disabling power management under 'sessions' (startup programs).

You need to add the 'gnome-power-manager' command (see attachment).

Revision history for this message
Klaus Thorn (klaus-trillke) wrote :

enabling gnome-power-manager is a working workaround on my Ubunntu-8.04 x86 desktop.

the situation was a bit worsened by a hidden entry of gnome-power-manager in my case. I had to remove .config/autostart/gnome-power-manager.desktop first to make it appear again.

is there a place to configure a shorter time(out?) after clicking the logout button till presenting the logout menu?

It seems to be 50 seconds.

What is the name of the program and package who is waiting these 50 seconds? x-session-manager? panel? gnome-applets?

description: updated
Revision history for this message
Wingnut (michael-crist) wrote :

I can confirm that enabling / disabling the "Power Manager" application in System -> Sessions will cause this behavior to occur.

As an aside, I disabled the power manager after a recommendation by powertop.

Revision history for this message
XTudo - Robson Fernando (xtudo) wrote :

Wingnut,

I can confirm that enabling / disabling the "Power Manager" application in System -> Sessions will cause this behavior to occur.

As an aside, I disabled the power manager after a recommendation by powertop.

===========================

i enabled power manager.... fix my problem.... gnome no have time for logout.... is fast logout now.

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

Thanks for the bug report. This particular bug has already been reported, but feel free to report any other bugs you find.

Changed in gdm:
assignee: nobody → desktop-bugs
status: Confirmed → Invalid
Revision history for this message
gcc (chris+ubuntu-qwirx) wrote :

Sebastien Bacher, if this bug has "already been reported" then why is it not marked as a duplicate of the other bug? What is the other bug's number?

If it is not a duplicate, please remove the invalid status, thanks. This is a real, valid and annoying bug.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

It was already reported and it's a duplicate indeed, marking it as such.

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.