Adding Hibernate to the CrunchBang Linux shutdown menu

Header

cb-exit

By default CrunchBang Linux does not have hibernation support enabled in the shutdown menu. The reason for being excluded is likely because not all computers support hibernation. However most modern computers will support it.

To add a hibernation option just download this file and place it in the bin directory of your home folder: “~/bin/” and make it executable with:

chmod +x cb-exit  

cb-exit Gist

If you want to test your system to see if it can handle hibernation run the following command. If your system supports it you should be able to successfully enter and exit hibernation:

dbus-send --system --print-reply --dest=\"org.freedesktop.UPower\" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate