For some reason, I could not get Suspend or Hibernate to work out of the box on my Ubunto 8.04 installation on my old Sony Vaio laptop. A quick search of google reveals that this is a common problem, and the most common solution is to use a 3rd party application called uswsusp to do it. It’s pretty easy to get this going, here is what you need to do,
First, install uswsusp:
sudo apt-get install uswsusp
And by typing the below command you check if the suspend function works now….
sudo s2ram
Same goes for hibernation
sudo s2disk
If that all works, you can now replace the ubuntu default commands with the new uswsusp commands
First step is to back up the standard ubuntu commands
sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend /usr/lib/hal/scripts/linux/hal-system-power-suspend.bak
sudo cp /usr/lib/hal/scripts/linux/hal-system-power-hibernate /usr/lib/hal/scripts/linux/hal-system-power-hibernate.bak
Now, edit the suspend command file “hal-system-power-suspend” using vi or gedit, and replace the contents with
#!/bin/sh
/sbin/s2ram –force
Now, edit the hibernate command file “hal-system-power-hibernate” and replace the contents with
#!/bin/sh
/sbin/s2disk
And that’s it, hibernate and suspend should be working as they should!