Hibernating Unbuntu on the A0751h

May 30th, 2012 by Alistair MacDonald Leave a reply »

This is a blog post I started almost 2 years ago but got side tracked and never finished it. Having just needed some information from it I dicided I would finish it off and post it just in case it is helpful. Please remember that there may mow be a more appropriate solution available though.

A couple of years ago I bought a reconditioned Acer Aspire One A0751h. It is a lovely little machine. It is rather slow and the graphics chipset has huge compatibility problems, but it is still a nice machine. It came with Vista installed but now has Ubuntu 10.04 LTS installed.

One problem I had with the graphics chipset driver is that the machine would not hibernate properly. The quick fix to this was to replace the latest hibernation applications with the old ones that still work with these drivers.

First of all you will need to install the Debian Userspace Software Suspend package with the command…

sudo apt-get install uswsusp

…and then we need to remap the commands to the new (or should that be old) binaries…

sudo rm /usr/sbin/pm-hibernate
sudo echo -e "#bash\ns2disk" > pm-hibernate
sudo mv pm-hibernate /usr/sbin
sudo chmod a+x /usr/sbin/pm-hibernate

sudo rm /usr/sbin/pm-suspend
sudo echo -e "#bash\ns2ram --force" > pm-suspend
sudo mv pm-suspend /usr/sbin
sudo chmod a+x /usr/sbin/pm-suspend

sudo rm /usr/sbin/pm-suspend-hybrid
sudo echo -e "#bash\ns2both --force" > pm-suspend-hybrid
sudo mv pm-suspend-hybrid /usr/sbin
sudo chmod a+x /usr/sbin/pm-suspend-hybrid

Canonical make the point that the fact that Ubuntu’s suspend not working is a fault with the power management routines and should be these should be fixed instead of just replaced. Using the Debian USS works but is not supported under Unbuntu and may have other issues.

Remember that this is not an officially recommended solution and to return thing to normal you can run the following…

sudo rm /usr/sbin/pm-hibernate
sudo ln -s ../lib/pm-utils/bin/pm-action /usr/sbin/pm-hibernate
sudo rm /usr/sbin/pm-suspend
sudo ln -s ../lib/pm-utils/bin/pm-action /usr/sbin/pm-suspend
sudo rm /usr/sbin/pm-suspend-hybrid
sudo ln -s ../lib/pm-utils/bin/pm-action /usr/sbin/pm-suspend-hybrid

i love Quidco GreenWhite

Leave a Reply