Comment 4 for bug 43872

Revision history for this message
Matthew Garrett (mjg59) wrote :

You need to call the following methods, all of which are under the org.gnome.PowerManager namespace:

CanSuspend
CanHibernate

to determine whether the system can suspend or hibernate, and

Suspend
Hibernate

to actually perform the actions. Daniel has more experience of dbus implementation stuff than me, so may be able to offer more advice.