Hibernation Part Two (#2)

Some time ago, i wrote a
in greek of how easy is to use hibernation on linux desktops.

For some time now, i didnt use hibernation and in between i upgrade my laptop a lot of times.
For some strange reason the previous tested (kernel) solution didnt work perfectly.

So i just implement the second hibernation solution: uswsusp

This method provides a userspace suspend program that uses a lot of
scripts to hook your running modules, programs and memory data to a swap partition.

Simple as that in theory, i did small changes on my laptop.

  1. Installation
sudo pacman -S uswsusp
  1. Kernel HOOKS

Change the resume kernel hook from /etc/mkinitcpio.conf
to uresume (userspace resume)

HOOKS=”base udev autodetect pata scsi sata uresume filesystems”

Save the above file and then run this command:

mkinitcpio -p kernel26
  1. Configuration

Edit /etc/suspend.conf, so that the resume device is linking to your swap partition:

resume device = /dev/sda2

sda2 is my swap partition, just add your swap partition!

  1. Hibernate
sudo pm-hibernation

PS: I read in a lot of HowTos that you have to edit /boot/grub/menu.lst
to add resume path of swap partition, but believe me, thats not necessary!