This test case tests hybrid suspend (AKA suspend to both) via the pm-suspend-hybrid command. On Fedora 18+ there is kernel support for this (on older Fedoras it is achieved by various hacks). This is both suspend to RAM and hibernation in one step. The advantage is quick resume in most cases and no lost work on accidental battery failure. In this case the machine will simply resume from hibernation when the power is restored. The disadvantage is slightly longer suspend (the image have to be written on disk).
- Check that you have
$ rpm -q pm-utils
- Check that your platform correctly supports suspend and hibernate (i.e. pm-suspend and pm-hibernate both passed and you have done all setup presented there).
- Check that the hybrid suspend is supported on your platform:
$ cat /sys/power/disk
- If there is suspend in the output, it signals that the hybrid suspend is supported.
How to test
- Run the following command:
- Wait until the system suspends to both (it typically takes cca. 2-60 seconds).
- Wake-up your system by e.g. hitting the power button (or maybe another button depending on your HW).
- System correctly suspends and also writes hibernation image.
- After wake-up system correctly resumes.
- In case power is accidentally lost, machine resumes from hibernation and no work is lost (in case you are running from live medium you may need to follow steps described in pm-hibernate in order to correctly resume from hibernation).
- NetworkManager re-establishes a network connection.