There seems to be no way to configure the gnome shutdown dialog (what comes up when you click the shutdown item in the main menu), to exclude the system “Suspend” and “Hibernate” items.
The following has already been tried…
added the following to /etc/gconf/gconf.xml.mandatory/%gconf-tree.xml in section <dir name=“gnome-power-manager”>
<dir name=“general”>
<entry name=“can_hibernate” mtime=“1222181472” type=“bool” value=“false”> </entry>
<entry name=“can_suspend” mtime=“1222181436” type=“bool” value=“false”> </entry>
</dir>
modified /usr/share/polkit-1/actions/org.freedesktop.upower.policy to have the following settings
<allow_active>no</allow_active>
<allow_inactive>no</allow_active>
it seems this is for removing the underlying suspend and hibernate facilities, but has no effect on the shutdown dialog items.
Thanks for your responses, but there seems to be a misunderstanding. The issue is NOT that a particular machine is unable to hibernate. The goal IS to prevent a machine from hibernating or suspending by removing those options from the gnome shutdown dialog (the menu that appears after clicking “shutdown” in main panel).
Currently, the menu shows the options “Shut Down”, “Restart”, “Hibernate”, and “Suspend”. It needs to show only the “Shut Down” and “Restart” options. Have tried everything explained in the original post, but nothing has worked so far.
It is gnome 2.x, but have already scoured gconf editor and just double checked. there is nothing relevant under “shutdown” or “suspend” or “hibernate”.