From Fedora Project Wiki

No edit summary
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case tests hibernation via the pm-hibernate command.
|description=This test case tests hibernation via the pm-hibernate command.
{{admon/warning|If you are running from the LiveCD / USB you will need physical swap partition on the host machine in order to run this test case. Swap on LVM / LUKS is currently not supported for resume when running from the LiveCD / USB.}}
|setup=
|setup=
# Check that you have {{package|pm-utils}} installed:
# Check that you have {{package|pm-utils}} installed:
Line 6: Line 7:
# Check your swap:
# Check your swap:
#:<pre>$ free</pre>
#:<pre>$ free</pre>
{{admon/note|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, especially in case of failure.}}
#* Your swap size should be at least twice your RAM size.
#* Your swap size should be at least twice your RAM size.



Revision as of 12:44, 27 September 2011

Description

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

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

Setup

  1. Check that you have Package-x-generic-16.pngpm-utils installed:
    # rpm -q pm-utils
  2. Check your swap:
    $ free
Note.png
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, especially in case of failure.
    • Your swap size should be at least twice your RAM size.

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.