How can I make GNOME 3 use
pm-suspend-hybrid instead of
pm-suspend when closing the lid or using suspend from the menu?
Be sure it works
First of all you need to be sure
in console and notice if it works as expected.
It is more the hack than a solution. But it works for me.
Execute the following commands in the console:
Contents of the new
Than give execution rights to this new script:
I have a workflow without having to create a file, without deleting the original file and that works in one command. Paste this in a terminal if you already know that your machine support hybrid suspension:
With the command above you will be enabling the hybrid suspension by default on your system. It is totally safe. Restoring The original config can restored by entering this command:
Step by step explanation
First you should check if your machine support H-S.
Note: The re-hack just combines steps 2 and 3.
The advantages of this method compared with Lig's one are: