ubuntu_stop_modes

ubuntu_stop_modes

This menu works for me on Ubuntu 11.10, but I couldn't come up with a command that would force hibernation on my system.

Quite probably won't work on other distros, maybe not even on other Ubuntu releases.

It includes a demonstration of a menu choice (suspend) running multiple commands via bash.

It invokes xdg-screensaver, /usr/lib/indicator-session/gtk-logout-helper, gnome-screensaver-command, and pmi; to get them use

sudo apt-get install powermangement-interface xdg-utils gnome-screensaver indicator-session