Results 1 to 6 of 6

Thread: How can I replace Gnome 3's Suspend option with Hibernate?

  1. #1
    Join Date
    Feb 2010
    Location
    Florida, USA
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    How can I replace Gnome 3's Suspend option with Hibernate?

    In the power menu, there is the suspend option. However, just like the majority of computers, my computer isn't the best friend with suspending in Linux. However, I can hibernate just fine.

    Is there a way to change the Suspend option in the power menu with Hibernate?

    If I can't, can I at least disable sleep or remove it from the power menu so I don't accidentally hit it?
    Last edited by BlacqWolf; October 15th, 2011 at 01:24 AM.
    Full time Ubuntu user
    The history of Tux

  2. #2
    Join Date
    Jun 2011
    Beans
    192

    Lightbulb Re: How can I replace Gnome 3's Suspend option with Hibernate?

    I too would like the option to Hibernate. Also a shut down option would be nice. You can actually get the shut down option bye holding 'alt' then clicking the top right hand corner menu. Instead of seeing standby you'll see shutdown (how would you have known to do that without having to search on the Internet?).

    There's no hibernation solution for Ubuntu although there does appear to be one for Fedora http://mygeekopinions.blogspot.com/2...-menus-in.html I can't find such package in Synaptic though in Ubuntu 11.10. Anyone know how to do this?

  3. #3
    Join Date
    Jan 2007
    Location
    Missouri
    Beans
    738
    Distro
    Ubuntu Development Release

    Re: How can I replace Gnome 3's Suspend option with Hibernate?

    Go have a look here, there's a few extensions that will show not only hibernate, but also shutdown.

    http://www.webupd8.org/2011/10/thing...ng-ubuntu.html

  4. #4
    Join Date
    Jun 2011
    Beans
    192

    Re: How can I replace Gnome 3's Suspend option with Hibernate?

    Quote Originally Posted by Spr0k3t View Post
    Go have a look here, there's a few extensions that will show not only hibernate, but also shutdown.

    http://www.webupd8.org/2011/10/thing...ng-ubuntu.html
    I have to enable the 'user themes extension' but that option in the picture isn't there on my own computer? Only the 'install extension' selection is?
    Attached Images Attached Images

  5. #5
    Join Date
    Feb 2010
    Location
    Florida, USA
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How can I replace Gnome 3's Suspend option with Hibernate?

    Thanks for the replies so far. It would be nice to replace that Suspend option with Hibernate, or at least to disable suspend and remove it from the menu. Now, I log out and hit the power button from there because I find myself occasionally hitting the Suspend option in attempt to shut down, either because I forget to hold down Alt or because I hit the wrong key.

    Considering most computers have problems with the suspend option in Linux (I wonder... after all this time, why haven't they fixed that?), why did the people at Gnome put it there in place of the Power Off option, which needs the Alt key to be held to reveal it? Yes, that's kinda nice if the Suspend option works on the majority of PCs, but it doesn't. There's only one PC ever that I've seen work with suspending in Linux.

    These are my only complains about Gnome and Linux.
    Full time Ubuntu user
    The history of Tux

  6. #6
    Join Date
    Apr 2006
    Beans
    370

    Re: How can I replace Gnome 3's Suspend option with Hibernate?

    I think "most" is an overstatement, but the problem will never be fixed if no one forces the issue (that is GNOME's logic).

    It would be pretty easy to edit the alternative status menu extension to remove the suspend entry (it's written in JS).

    Change /usr/share/gnome-shell/extensions/alternative-.../extension.js
    Code:
    function updateSuspend(object, pspec, item) {
        item.actor.visible = object.get_can_suspend();
    }
    to
    Code:
    function updateSuspend(object, pspec, item) {
        item.actor.visible = false;
    }
    Or copy the whole alternative-... directory to ~/.local/share/gnome-shell/extensions/, then make the edit.

    There may be a configuration key which would make 'get_can_suspend()' return false, but I don't know.

Bookmarks

Posting Permissions

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