lock suspend via dbus-send

hakaishi hakaishi at web.de
Wed Dec 30 08:03:31 PST 2009




hakaishi wrote:
> 
> Hi folks!
> 
> I'd like to know how to lock the standby-mode.
> I thought it'd look like this:
> dbus-send --print-reply --system --dest=org.freedesktop.Hal
> /org/freedesktop/Hal/devices/computer
> org.freedesktop.Hal.Device.SystemPowerManagement.Suspend.AcquireInterfaceLock
> But all I get is: Error org.freedesktop.DBus.Error.AccessDenied ...
> Could someone help me to make this right, please?
> 
> Kind regards, Hakaishi
> 
Okay, I got it!
Ist simply:
dbus-send --print-reply --system --dest=org.freedesktop.Hal
/org/freedesktop/Hal/devices/computer
org.freedesktop.Hal.Device.AcquireInterfaceLock
string:org.freedesktop.Hal.Device.SystemPowerManagement.Suspend boolean:true

Kind regards, Hakaishi
-- 
View this message in context: http://old.nabble.com/lock-suspend-via-dbus-send-tp26949973p26968954.html
Sent from the Free Desktop - dbus mailing list archive at Nabble.com.



More information about the dbus mailing list