Suspend from the command line (6.06)

Cameron Hutchison lists at xdna.net
Fri Mar 2 22:58:47 UTC 2007


Hello fellow Ubuntu users,

How can I suspend my Ubuntu box (6.06) from the command line?

I know about the various /proc and /sys entries, but they go straight to
the kernel. I want to trigger the same method that is used by the logout
dialog, where you have a choice to suspend or hibernate. When I tried
/sys/power/state, the box would not resume - I'm guessing because it did
not do any preparation for suspension.

Essentially, I want to be able to script suspension of the box.

Thanks




More information about the ubuntu-users mailing list