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 | {{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 when running from the LiveCD / USB.}} | ||
|setup= | |setup= | ||
# Check that you have {{package|pm-utils}} installed: | # Check that you have {{package|pm-utils}} installed: | ||
#:<pre># rpm -q pm-utils</pre> | #:<pre># rpm -q pm-utils</pre> | ||
# Check that the hibernate is supported on your platform: | |||
#:<pre>$ cat /sys/power/state</pre> | |||
#:If there is <pre>disk</pre> in the output, it signals that the hibernate is supported. | |||
# Check your swap: | # Check your swap: | ||
#:<pre>$ free</pre> | #:<pre>$ free</pre> |
Revision as of 13:00, 27 September 2011
Description
This test case tests hibernation via the pm-hibernate command.
Setup
- Check that you have
pm-utils
installed:# rpm -q pm-utils
- 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.
- Check your swap:
$ free
- Your swap size should be at least twice your RAM size.
How to test
- Run the following command:
# pm-hibernate
- Wait for hibernation process to complete (it can take cca. 5-60 seconds).
- Resume by hitting the power button.
Expected Results
- System correctly hibernates.
- System correctly resumes.