Setup swapfile and some configuration for hibernation
Instead of rewriting a huge section, follow the instructions from: http://ubuntuforums.org/showpost.php?p=6570140&postcount=1
Additional configuration items
You can try to hibernate your system at this point now if you want. However, for me there was more work to be done. Here are the additional steps I had to take to take hibernation to completion.
Enable swap for hibernate then disable it after resume
- Create file /etc/acpi/suspend.d/01-swapctl.sh with the following:
- #!/bin/sh
swapon - Make sure to make it executable:
- chmod +x /etc/acpi/suspend.d/01-swapctl.sh
- #!/bin/sh
- Create file /etc/acp/resume.d/99-swapctl.sh with the following:
- #!/bin/sh
swapoff - Make sure to make it executable:
- chmod +x /etc/acpi/resume.d/99-swapctl.sh
- #!/bin/sh
- Create file /etc/acpi/suspend.d/56-kill-wpa_supplicant.sh with the following:
- #!/bin/sh
killall wpa_supplicant
sleep 5 - Make sure to make it executable:
- chmod +x /etc/acpi/suspend.d/56-kill-wpa_supplicant.sh
- #!/bin/sh
- Open gconf-editor:
- gconf-editor
- uncheck gnome_keyring_hibernate under path /apps/gnome-power-manager/lock
- gconf-editor
- Create file /etc/acpi/suspend.d/63-NetworkManager.sh with the following:
- #!/bin/sh
/etc/init.d/NetworkManager restart - Make sure to make it executable:
- chmod +x /etc/acpi/suspend.d/63-NetworkManager.sh
- #!/bin/sh
- First we'll make a backup of the original script:
- cp /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.orig
- Now we will wipeout the original:
- > /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux
- Now put the following contents into /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux:
- #!/bin/sh
/etc/acpi/hibernate.sh
exit $RET
- #!/bin/sh
- http://ubuntuforums.org/showpost.php?p=6570140&postcount=1
- http://ubuntuforums.org/showpost.php?p=4450536&postcount=106
- http://ubuntuforums.org/showthread.php?p=2875529
No comments:
Post a Comment