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.

-- 
Logout dialog signals gdm to perform p-m actions
https://launchpad.net/bugs/43872

--
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to