views:

17

answers:

0

Hi,

I was wondering and also try to do it, how to lock and suspend computer using dbus interface. I am able to suspend system using org.freedesktop.UPower with method Suspend(). I also am able to lock system using org.gnome.ScreenSaver with method Lock(). But how to do it at the same time? Is it good way to use signal Suspend ? or there is some other proper way? Thanks for any advice.