From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
#:If there is ''disk'' in the output, it signals that the hibernate is supported. | #:If there is ''disk'' in the output, it signals that the hibernate is supported. | ||
# Check your swap: | # Check your swap: | ||
#:<pre>$ swapon -s</pre> | |||
#:<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 (in case of failure).}} | {{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 (in case of failure).}} | ||
Line 15: | Line 16: | ||
# Run the following command: | # Run the following command: | ||
#:<pre># pm-hibernate</pre> | #:<pre># pm-hibernate</pre> | ||
# Wait for hibernation process to complete (it | # Wait for hibernation process to complete (it typycally takes cca. 5-60 seconds). | ||
# Resume by hitting the power button. | # Resume by hitting the power button. | ||
Revision as of 00:12, 4 April 2012
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:
$ swapon -s
$ free
How to test
- Run the following command:
# pm-hibernate
- Wait for hibernation process to complete (it typycally takes cca. 5-60 seconds).
- Resume by hitting the power button.
Expected Results
- System correctly hibernates.
- System correctly resumes.