I know how to wake up my computer remotely via WOL magic packet. But how about to suspend or hibernate it? Well, this has something to do with the power management, doesn't it? So it would be sensible to think that we need some sort of power management utility that knows how to do that. But I don't want to install "another tool" in my system which does exactly the same thing like the other existent/installed applications do. That would be just redundant!
If you have a GNOME, KDE SC or Xfce desktop then your system might have a inter-process communication (IPC) system called D-Bus which is a message bus system, a simple way for applications to talk to one another.
$ dbus-send --print-reply \ --system \ --dest=org.freedesktop.UPower \ /org/freedesktop/UPower \ org.freedesktop.UPower.Suspend
If you want to hibernate your system then replace Suspend method with Hibernate.
Note: D-Bus interface unveil a new world for you, the Linux user/programmer, which if you know how to manipulate it you could rule it!
Now, if you think that this article was interesting don't forget to rate it. It shows me that you care and thus I will continue write about these things.