From Fedora Project Wiki

Revision as of 00:10, 4 April 2012 by Jskarvad (talk | contribs)

Description

This test case tests hibernation via the pm-hibernate command.

If you are running from the LiveCD / USB you will need physical swap partition on the host machine (or LiveUSB) in order to run this test case. Swap on LVM / LUKS is currently not supported when running from the LiveCD / USB.

Setup

  1. Check that you have pm-utils installed:
    # rpm -q pm-utils
  2. Check that the hibernate is supported on your platform:
    $ cat /sys/power/state
    If there is disk in the output, it signals that the hibernate is supported.
  3. Check your swap:
    $ free
Your swap size should be at least your RAM size or more, otherwise the hibernate may fail. Even if your swap size is less than your RAM size, you can try this test case, but please signal this in your report (in case of failure).

How to test

  1. Run the following command:
    # pm-hibernate
  2. Wait for hibernation process to complete (it can take cca. 5-60 seconds).
  3. Resume by hitting the power button.

Expected Results

  1. System correctly hibernates.
  2. System correctly resumes.