Comment 4 for bug 812394

Revision history for this message
Matthew Paul Thomas (mpt) wrote : Re: Disable suspend/hibernate options when they are not supported

Ted Gould has drawn my attention to these:
<http://upower.freedesktop.org/docs/UPower-up-client.html#up-client-get-can-suspend>
<http://upower.freedesktop.org/docs/UPower-up-client.html#up-client-get-can-hibernate>

And Javier has pointed out that as of today (!), these functions are used by gnome-control-center to disable the Suspend and Hibernate functions if appropriate: <http://git.gnome.org/browse/gnome-control-center/commit/?id=4f08a32570490f837e7c6909b095d2b44f4c05ee>

So an updated way of wording (1) above would be: "On new PC models, up_client_get_can_suspend() and up_client_get_can_hibernate() often return true when they should return false, leading Ubuntu to present Suspend and Hibernate functions that don't work without software fixes."