2012年7月22日 星期日

How to Pwrtest.exe

1.Downloads for Windows Hardware Development (Dev Center - Hardware)


Windows Driver Kit 8 RP
Windows Driver Kit (WDK) 8 Release Preview (RP) integrates with Visual Studio Professional 2012 RC to provide a complete environment for developing, deploying, testing, and debugging drivers.
Use this latest version of the WDK to develop drivers for Windows 8 and all versions of Windows, except Windows XP. Use the WDK Version 7.1.0 to develop drivers for Windows XP.
Important: Install Visual Studio before installing WDK 8 RP.

2.簡易使用Pwrtest.ext (Power Management command)


2. 至tools\Power management,i386 for 32 bits
                                           ,amd64 for 64 bits

3. Copy PWRTEST.exe至待測機,
4. Open the cmd.exe and run as administrator. (注意:不懂請參考以下網址: http://support.microsoft.com/kb/981174/zh-tw)
5. 執行語法: pwrtest /sleep /s:3 /c:500 /d:30 /p:30
               
/s:3     –  S3 test
/c:100  –  100 cycle
/d:90   –  S0~S3 delay timing
/p:30   –  set the timing for resume form S3 



3.Please check the PwrTest Sleep scenario supports the command-line arguments in the following table.

ArgumentDescriptionDefault value
/c:n
n indicates the number of sleep cycles
/c:1
/d:n
n indicates the delay time between consecutive sleep cycles, in seconds.
/d:90
/p:n
n indicates the time the system will sleep before automatically waking for the next sleep cycle, in seconds.
/p:60
/h:y
Indicates hybrid sleep transitions should be enabled.
Current user power policy
/h:n
Indicates hybrid sleep transitions should be disabled.
Current user power policy
/t:y
Indicates sleep transitions should be marked critical. Applications and services are not able to prevent the sleep transition.
Current user power policy
/t:n
Indicates sleep transitions should not be marked critical. Applications and services are able to prevent the sleep transition.
Current user power policy
/s:n
n indicates the target sleep state(s) for the sleep transitions. Possible values are:
"all", All ACPI sleep states should be used in sequential order (S1, S3, S4, S1, S3, S4...)
"rnd", All ACPI sleep states should be used in random order (S1, S4, S3, S1, S4, S1...)
"1", Only S1 state should be used.
"3", Only S3 state ("Standby") should be used.
"4", Only S4 state ("Hibernate") should be used.
/s:3
/unattend
Indicates the system should wake unattended. PwrTest will not request the display to be enabled between each sleep cycle.
This feature is disabled by default.



Ref:
     

沒有留言: