Azitech

Azimout's Linux weblog

hibernate

leave a comment »

Three technologies exist for suspending (S3)/hibernating (S4) a Linux system:

  • swsusp (included in kernel, very basic)
  • uswsusp (userspace tool, 3 years old)
  • tuxonice (formerly called “suspend2”, kernel patching required)

From the 3 options above, the obvious choice is uswsusp (until the tuxonice patch makes it into the kernel).

Here are the steps:

  1. use cat /proc/acpi/sleep to check the supported ACPI power states for your system
  2. create swap partition, activate it using swapon, add relevant line to /etc/fstab for the next time you reboot
  3. add resume=/dev/swap_partition to GRUB_CMDLINE_LINUX in /etc/default/grub
  4. install uswsusp
  5. modify /etc/pm/config.d/00sleep_module, set SLEEP_MODULE=”uswsusp” and uncomment it

References:

Advertisements

Written by azimout

07/01/2011 at 23:01

Posted in Howto

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: