QA:Testcase Power Management Freeze

From FedoraProject

Revision as of 14:32, 16 April 2013 by Jskarvad (Talk | contribs)

Jump to: navigation, search

Contents

Description

This test case tests freeze. This presents a general state that does not need any platform specific support. It equals frozen processes + suspended devices + idle processors. The freeze can be useful on secondary architectures (e.g. ARMs) and all platform that do not implement suspend to RAM (STR). This is a new feature introduced in kernel 3.9 and currently there is no support from user space utilities (e.g. systemd). For more details see PM_SUSPEND_FREEZE patch.

Setup

  1. Check that your system supports freeze:
    $ cat /sys/power/disk
    If there is freeze in the output, it signals that the freeze is supported. If it is not there it probably means that you have incompatible (i.e. old) kernel.

How to test

  1. Run the following command:
    # echo freeze > /sys/power/state
  2. Wait until the system freezes (it typically takes several seconds).
  3. Wake-up your system by e.g. hitting the power button (or maybe another button depending on your HW).

Expected Results

  1. System correctly freezes.
  2. After wake-up system correctly resumes.
  3. NetworkManager re-establishes a network connection.