Log in


Ubuntu developers: Daniel Hahler: Use hybrid suspend method by default (suspend to RAM and to disk)

Posted: June 3, 2012 / in: Linux / No comments

There is this nice method of suspending a computer to RAM (which is quick to suspend and resume, but still uses some battery) and after a given amount of time to disk, if it has not been waken up since then (e.g. after 15 minutes).

Ubuntu (and any other distribution using pm-utils) supports this via the pm-utils package and its pm-suspend-hybrid script.

Unfortunately this is not used by default (even hibernation is not available from the menu by default), but only normal suspend.

The following configuration snippet will make pm-utils use the “suspend_hybrid” method instead of “suspend” when being invoked:

You have to create a file like


and add the following code (e.g. via

sudo -e /etc/pm/config.d/00-use-suspend-hybrid



<span># Always use suspend_hybrid instead of suspend</span>
<span>if [ "$METHOD" = "suspend" ]; then</span>
<span>    METHOD=suspend_hybrid</span>

I came up with this solution after having asked for a method to do so at Ask Ubuntu.

This way hybrid suspend will be used automatically if you select e.g. “Suspend” from the menu or close your laptop’s lid (both actions call


which then gets remapped).

You can configure the amount of time before hibernation (Suspend To Disk) is being invoked with the PM_HIBERNATE_DELAY variable (in seconds), which you can just configure in the same file, too.

You might want to make sure that the hybrid method is supported on your system via the following code. If it says “0″ it should work:


<span>sudo pm-is-supported --suspend-hybrid &amp;&amp; echo $?</span>

Happy suspending.

Article source: Go to Source
Feed source: http://planet.debian.org/deriv/rss20.xml
License: The original licenses are retained – MIT (Expat) License

© Copyrights and Licenses, 2014 - Linux-Support.com The Professional Linux and OSS Services Portal