Help, I have been hit by the DBus and can't get up...

Jerry LeVan jerry.levan at gmail.com
Wed Jul 5 07:38:37 PDT 2006


Hi, I am trying to figure out how the Dbus works in Fedora Core 5.

I suppose I need to use the python bindings but nice examples seem to
be hard to find...

One thing I would like to do is to be able to talk to Hal and gnome
power manager,

For example I have found via googling the following two examples
using dbus-send:

Ex 1:
dbus-send --system --print-reply --reply-timeout=2147483648 \
 --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer \
 org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0

Ex 2:
dbus-send --session \
--dest=org.gnome.PowerManager \
--type=method_call \
/org/gnome/PowerManager \
org.gnome.PowerManager.Suspend

Both of the above work... the second one fails if I replace
Suspend by Hibernate,

How can use the introspection ability to find out "info" about
the gnome power manager and hal? 

More generally how can I find out methods and signals of an
arbitrary service?

Thanks

Jerry



More information about the dbus mailing list