GNOME Bugzilla – Bug 688229
Activating suspend from power button menu does not work
Last modified: 2012-11-13 12:19:23 UTC
From https://launchpad.net/bugs/1041137: When using the ConsoleKit backend, pressing the power button brings up the "what do you want to do" [Suspend] [Shutdown] ... dialog, but clicking the Suspend buttons do not actually work. ~/.xsession-errors shows gnome-session[1921]: libupower-glib-CRITICAL: up_client_get_can_suspend: assertion `UP_IS_CLIENT (client)' failed
The problem is that up_client_new() is only called in gsm_consolekit_on_name_owner_changed(), but that's not usually called for UPower (and even then, the check at the top would not even make it work if upowerd restarted). I have a patch, testing it more thoroughly now.
Created attachment 228866 [details] [review] GsmConsoleKit: Properly initialize upower client Tested patch.
Review of attachment 228866 [details] [review]: Makes sense; please push to gnome-3-6 as well
Comment on attachment 228866 [details] [review] GsmConsoleKit: Properly initialize upower client Pushed to master and gnome-3-6, thanks for the review!