How can I hibernate from GNOME Shell?

GNOME Shell doesn't have an option to hibernate in the session menu. I checked the GNOME Shell Cheat Sheet but hibernate is not mentioned there.

How can I hibernate my machine from within a GNOME Shell session?


Just install this GNOME Shell extension by sliding the slider. Your user menu should now show a few new extra options: Hibernate, and Power Off...

enter image description here


dv3500ea In your link to GNOME Shell Cheat Sheet you got the answer:

The Power Off... menu entry is hidden by default. You can make it visible by pressing the Alt key in the user menu.

Just hold ALT


sudo apt-get install pm-utils

Alt+F2

sudo pm-hibernate

I don't think it is possible to manually hibernate in GNOME Shell (I could be wrong). There is an extension that adds extra options for power management, but having not had sucess installing extensions myself, I cannot tell you for sure how to install it.

For now, you can hit alt + f2 and type pmi action hibernate or gnome-power-cmd hibernate (10.10 and lower only), then press enter. This will not give you any options, so only do this if you are sure you won't want to cancel.

If you want to make this easier, you could create a script with (using zenity to provide options) and place this in ~/bin. You could then create a keyboard binding for the script, so when you press (for example) alt+super+h your system would hibernate.