PwrTest Device Scenario

The PwrTest Device Scenario monitors device idle statistics.

This scenario is primarily used for Windows 7 device power activity, subsequent versions of Windows use a different mechanism for tracking device idle that is not currently supported by Pwrtest. For versions of Windows newer than Windows 7, use the Windows Performance Toolkit (WPT). The WPT includes the Windows Performance Recorder (WPR) that you can use to trace the kernel-mode power provider and the Windows Performance Analyzer (WPA) that can show the power framework (PoFx) device statistics and can graph the transitions afterward.


pwrtest /device  [/t:n] [/?] 

Specifies the total time (in minutes) for the scenario to run (the default value for n is 30 minutes).


pwrtest /device /t:60
pwrtest /device

XML log file output


The following table describes the XML elements that appear in the log file.

Element Description

Contains all the different device idle events. Only one <DeviceIdleEvents element per PwrTest log file.


Time stamp of any given event.


Device instance path.


Device add or remove event.


DeviceRemoved or DeviceDetected.


Device idle statistics event.


Functional device object.


Physical device object


Conservative timeout (usually used on DC power).


Performance timeout (usually used on AC power).


The idle time accrued during the period.


The number of times the device driver called PoSetDeviceBusy during the period.


The total number of times the device driver called PoSetDeviceBusy.


Shows which numeric state is the idle state.


The current numeric power state.


String that describes what happened during the period.

Related topics

PwrTest Syntax