Share via


Power Manager Timeouts Test (Compact 7)

3/12/2014

The Power Manager Timeouts Test verifies the timeout values that are used to define the time which the system is expected to wait before transitioning into a lower power state. This test targets both the power state timeouts for the DEFAULT and PDA versions of the power manager.

Test Prerequisites

Your device must meet the following requirements before you run this test.

The following prerequisites are required for this test.

Hardware Prerequisites:

In order to run the test, the platform and/or device drivers should have power management capabilities.

Software Prerequisites:

Having the SYSGEN_PM sysgen variable set when building your OS image will include the Power Manager.

The following table shows the software requirements for this test.

Requirement Description

Tux.exe

Tux test harness that executes the test.

Kato.dll

Logging engine that logs test data.

testutildrv.dll

Utility driver to handle setting RTC wake source for suspend/resume

pwrdrvr.dll

Sample power managed device driver used during test

pwrtimeouts.dll

Test library.

Subtests

The table below lists the subtests included in this test.

SubTest ID Description

11

User Idle Timeout only.

12

User Idle + System Idle Timeouts.

13

User Idle + System Idle + Suspend Timeouts.

14

User Idle + Suspend Timeouts.

21

User input (keybd_event).

22

Reading/Writing external storage.

23

Open WinSock socket.

31

Wake-sources associated with activity timers.

32

Test RTC Timer.

Setting Up the Test

This test has no additional requirements, beyond the standard test environment setup.

Running the Test

The Power Manager Timeout Test executes the tux -o -d pwrtimeouts command line on default execution.

This test library can have one or more optional command line entries to change the behavior of the test. To specify one or more command line entries to the test library, you must use the -c command-line option. This option forces Tux to pass the specified string into the test library.

The following table shows the optional command line parameters for this test.

Command Line Parameter Description

AllowSuspend

Allows the tests to suspend the system.

PdaVersion

Informs the tests that this is a PDA-type device which tests a separate set of system power states.

Profile

Allows the tester to specify a profile for the external storage test case. Default is "SDMemory".

Verifying the Test

When the test completes running, verify that "PASS" appears in the test log for all sub-tests.

Troubleshooting the Test

* The platform must have power management capabilities.

* The platform must support the standard power states used in this test which target the DEFAULT and PDA versions of the Power Manager.

* The platform must have the timeout values set for this test to take effect.

For additional platform specific issues, consult the CTK articles on the TechNet wiki.

See Also

Other Resources

Power Manager Tests