Results 1 to 9 of 9

Thread: Cannot remove suspend and hibernate items from gnome shutdown dialog

  1. #1

    Default 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?

  2. #2

    Default Re: Cannot remove suspend and hibernate items from gnome shutdown dialog

    sorry to nudge, but does anyone have any clues?

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Cannot remove suspend and hibernate items from gnome shutdowndialog

    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)

  4. #4
    Join Date
    Aug 2008
    Location
    Pitesti, Arges County, Romania
    Posts
    595

    Default Re: Cannot remove suspend and hibernate items from gnome shutdown dialog

    Quote Originally Posted by skosner View Post
    ...
    I get the same problems under Gnome 3; only log out works as it should...
    openSUSE Community Member: -> en.opensuse.org/User:Creatura85
    Connect Profile:
    -> connect.opensuse.org/pg/profile/creatura85
    openSUSE Romania Member: -> suseromania.ro

  5. #5

    Default Re: Cannot remove suspend and hibernate items from gnome shutdown dialog

    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.

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Cannot remove suspend and hibernate items from gnome shutdowndialog

    Quote Originally Posted by skosner
    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


  7. #7

    Default Re: Cannot remove suspend and hibernate items from gnome shutdown dialog

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

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,213
    Blog Entries
    15

    Default Re: Cannot remove suspend and hibernate items from gnome shutdowndialog

    Quote Originally Posted by skosner
    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


  9. #9

    Default Re: Cannot remove suspend and hibernate items from gnome shutdown dialog

    nothing relevant...

    check_type_cpu
    installed_schema
    network_sleep
    use_profile_time
    use_time_for_policy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •