I've been looking everywhere for a method of suspending/hibernating from the command line via HAL, and I've yet to find one that works... The closest thing I've found is this:
Code:
dbus-send --session --dest=org.gnome.PowerManager --type=method_call --print-reply --reply-timeout=2000 /org/gnome/PowerManager org.gnome.PowerManager.Hibernate
But it requires gnome-power-manager. How do I make HAL invoke its suspend scripts from the command line?
(Yes, I know I can use sudo for this, but that is IMHO hackish and I would really prefer not to.)