From Fedora Project Wiki
Description
Test swap-on-zram and hibernation (suspend-to-disk).
How to test
- This this test case depends on existing disk-based swap, and installation of
zram-generator
andzram-generator-defaults
followed by a reboot. Check to ensure you have two swap devices: zram and disk.$ swapon NAME TYPE SIZE USED PRIO /dev/sda5 partition 10.4G 0B -2 /dev/zram0 partition 3.8G 0B 100
- Switch to root user.
$ sudo -i
- Prepare the system to test hibernation in "reboot" mode:
# echo reboot > /sys/power/disk
- When you're ready to hibernate, initiate hibernation using this command. Following the reboot you should be returned to the desktop state as it was upon issuing this command (rather than a login screen).
# echo disk > /sys/power/state
- Repeat a second time.
# echo disk > /sys/power/state
- Repeat a third time.
# echo disk > /sys/power/state
Expected Results
- The system should reboot each time and return you to the desktop state as it was at the time the hibernation was initiated.