There used to be a way to disable Hibernate from gconf-editor: apps -> gnome-power-manager -> can_hibernate. unticking "can_hibernate" would even remove the hibernate button from the shutdown menu.
This gconf option appears to no longer be present. Is there another way to disable hibernate and simultaneously remove the Hibernate button from the shutdown menu?
Best Answer
Open a terminal and run the following command:
This opens up
/usr/share/polkit-1/actions/org.freedesktop.upower.policy
for editing.In the
org.freedesktop.upower.hibernate
section, changed the the line<allow_active>yes</allow_active>
to<allow_active>no</allow_active>
:Restart
indicator-session-service
so for the change to take effect:That's it, there should no longer be a Hibernate item in the session menu.