Cannot remove suspend and hibernate items from gnome shutdown dialog

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…

  1. 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>

  2. 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.

Anyone have any ideas?

sorry to nudge, but does anyone have any clues?

On 2011-10-06 02:36, skosner wrote:
>
> sorry to nudge, but does anyone have any clues?

Get the machine blacklisted, if it really can not hibernate.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I get the same problems under Gnome 3; only log out works as it should…

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.

Hi
Assuming your on Gnome 2.x, it’s done via gconf-editor, search for
shutdown in the keys, there is a lockdown option to remove them.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 1 day 6:03, 5 users, load average: 0.22, 0.07, 0.07
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

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”.

Hi
What’s in apps->gnome-power-manager->general


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.6-0.7-desktop
up 1 day 8:20, 5 users, load average: 0.01, 0.18, 0.24
GPU GeForce 8600 GTS Silent - Driver Version: 285.05.09

nothing relevant…

check_type_cpu
installed_schema
network_sleep
use_profile_time
use_time_for_policy