I see this too on two computers since Hardy where g-p-m is disabled. The logout dialog code checks to see if suspend and hibernate buttons are to be added and asks g-p-m. However if it is not running it does not get the answer and it blocks. g-p-m is started by this but possibly too late to answer. Subsequent attempts to log out work since g-p-m has been started. Any other app that talks to g-p-m via dbus can wake it up so maybe this is why sometimes it works and sometimes not for some users. It can be reproduced by killing g-p-m and trying to log out (button or gnome-session-save --kill)
Killing g-p-m then calling for example dbus-send --session --print-reply --dest="org.freedesktop.PowerManagement" --type=method_call --reply-timeout=6000 /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanSuspend restarts g-p-m then quit works. The logout code seems to hang on AddMatch . Had g-p-m been running the AddMatch/RemoveMatch pairs below would have delimited calls to CanSuspend and CanHibernate method call sender=:1.0 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='org.freedesktop.PowerManagement',path='/org/freedesktop/PowerManagement',interface='org.freedesktop.PowerManagement'" method call sender=:1.0 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender='org.freedesktop.PowerManagement',path='/org/freedesktop/PowerManagement',interface='org.freedesktop.PowerManagement'" method call sender=:1.0 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch string "type='signal',sender='org.freedesktop.PowerManagement',path='/org/freedesktop/PowerManagement',interface='org.freedesktop.PowerManagement'" method call sender=:1.0 -> dest=org.freedesktop.DBus path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch string "type='signal',sender='org.freedesktop.PowerManagement',path='/org/freedesktop/PowerManagement',interface='org.freedesktop.PowerManagement'" -- System -> Quit takes a long time to appear https://bugs.launchpad.net/bugs/123078 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs