Be sure it works
First of all you need to be sure
pm-suspend-hybrid works on your computer. Type
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:
ls -l /usr/sbin/pm-suspend # it should be symlink to /usr/lib/pm-utils/bin/pm-action
sudo rm /usr/sbin/pm-suspend # just remove this link
sudo editor /usr/sbin/pm-suspend # create new file instead of symlink
Contents of the new
# notice that you need to execute "pm-suspend-hybrid"
# just changing symlink is not enough
Than give execution rights to this new script:
sudo chmod +x /usr/sbin/pm-suspend
- If your distribution does not use
sudo command you need to be root to execute these commands.
- It is possible that
pm-suspend is located at another path on your system. Just type
whereis pm-suspend to find correct path.
- You may use any text editor of your choice instead of
editor if you want or if your distribution does not have this wrapper.