GNOME Bugzilla – Bug 594572
Needs porting to devkit-power-gobject for suspend/hibernate
Last modified: 2009-10-14 15:05:35 UTC
Using GDM 2.27.91, the greeter currently displays no hibernate or suspend buttons, despite the machine supporting these. This is because the greeter is using calls to some DBus methods that were recently removed from gnome-power-manager for checking if suspend/hibernate are supported ("org.freedesktop.PowerManagement.Can{Suspend,Hibernate}". Those methods have gone from g-p-m, and the interface name changed to "org.gnome.PowerManager" too). The greeter should be using libdevkit-power-gobject for checking if suspend/hibernate are supported now. gnome-session already uses this, and will have some example code there. gnome-session also uses this for initiating suspend/hibernate.
Created attachment 143760 [details] [review] Add DK-Power support in the greeter This patch ports the greeter to DK-Power so that suspend works again. It also adds a hibernate button, although I'm not sure if you want that or not.
See also bug 596569.
*** Bug 596569 has been marked as a duplicate of this bug. ***
And devkit-power is cross-desktop :)
Review of attachment 143760 [details] [review]: Hi Chris, Thanks for writing this. There was a smaller patch in bug 596569 which I commited. I think it might be good to get the fix in the 2.28 branch, but I don't think adding new UI in 2.28 is a good idea. The whole suspend/shutdown UI is going to get revisted soon anyway when bug 596151 gets attention.