625 lines
27 KiB
HTML
625 lines
27 KiB
HTML
<html>
|
||
|
||
<head>
|
||
<title>How to use Sleeper to put systems into a specific sleep state.</title>
|
||
<style>
|
||
<!--
|
||
/* Font Definitions */
|
||
@font-face
|
||
{font-family:Wingdings;
|
||
panose-1:5 0 0 0 0 0 0 0 0 0;
|
||
mso-font-charset:2;
|
||
mso-generic-font-family:auto;
|
||
mso-font-pitch:variable;
|
||
mso-font-signature:0 268435456 0 0 -2147483648 0;}
|
||
@font-face
|
||
{font-family:Tahoma;
|
||
panose-1:2 11 6 4 3 5 4 4 2 4;
|
||
mso-font-charset:0;
|
||
mso-generic-font-family:swiss;
|
||
mso-font-pitch:variable;
|
||
mso-font-signature:553679495 -2147483648 8 0 66047 0;}
|
||
@font-face
|
||
{font-family:Verdana;
|
||
panose-1:2 11 6 4 3 5 4 4 2 4;
|
||
mso-font-charset:0;
|
||
mso-generic-font-family:swiss;
|
||
mso-font-pitch:variable;
|
||
mso-font-signature:536871559 0 0 0 415 0;}
|
||
/* Style Definitions */
|
||
p.MsoNormal, li.MsoNormal, div.MsoNormal
|
||
{mso-style-parent:"";
|
||
margin:0in;
|
||
margin-bottom:.0001pt;
|
||
mso-pagination:widow-orphan;
|
||
font-size:12.0pt;
|
||
font-family:"Times New Roman";
|
||
mso-fareast-font-family:"Times New Roman";}
|
||
h1
|
||
{mso-style-next:Normal;
|
||
margin-top:12.0pt;
|
||
margin-right:0in;
|
||
margin-bottom:3.0pt;
|
||
margin-left:0in;
|
||
mso-pagination:widow-orphan;
|
||
page-break-after:avoid;
|
||
mso-outline-level:1;
|
||
font-size:16.0pt;
|
||
font-family:Arial;
|
||
mso-font-kerning:16.0pt;}
|
||
h2
|
||
{mso-style-next:Normal;
|
||
margin-top:0in;
|
||
margin-right:0in;
|
||
margin-bottom:0in;
|
||
margin-left:117.0pt;
|
||
margin-bottom:.0001pt;
|
||
mso-pagination:widow-orphan;
|
||
page-break-after:avoid;
|
||
mso-outline-level:2;
|
||
font-size:12.0pt;
|
||
font-family:Arial;}
|
||
h3
|
||
{mso-style-next:Normal;
|
||
margin-top:12.0pt;
|
||
margin-right:0in;
|
||
margin-bottom:3.0pt;
|
||
margin-left:0in;
|
||
mso-pagination:widow-orphan;
|
||
page-break-after:avoid;
|
||
mso-outline-level:3;
|
||
font-size:13.0pt;
|
||
font-family:Arial;}
|
||
p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
|
||
{margin:0in;
|
||
margin-bottom:.0001pt;
|
||
mso-pagination:widow-orphan;
|
||
font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;
|
||
mso-fareast-font-family:"Times New Roman";
|
||
mso-bidi-font-family:Arial;}
|
||
p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent
|
||
{margin-top:0in;
|
||
margin-right:0in;
|
||
margin-bottom:0in;
|
||
margin-left:117.0pt;
|
||
margin-bottom:.0001pt;
|
||
mso-pagination:widow-orphan;
|
||
font-size:12.0pt;
|
||
font-family:Arial;
|
||
mso-fareast-font-family:"Times New Roman";}
|
||
p.MsoBodyTextIndent2, li.MsoBodyTextIndent2, div.MsoBodyTextIndent2
|
||
{margin:0in;
|
||
margin-bottom:.0001pt;
|
||
text-indent:.5in;
|
||
mso-pagination:widow-orphan;
|
||
font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;
|
||
mso-fareast-font-family:"Times New Roman";
|
||
mso-bidi-font-family:"Times New Roman";}
|
||
p.MsoDocumentMap, li.MsoDocumentMap, div.MsoDocumentMap
|
||
{margin:0in;
|
||
margin-bottom:.0001pt;
|
||
mso-pagination:widow-orphan;
|
||
background:navy;
|
||
font-size:12.0pt;
|
||
font-family:Tahoma;
|
||
mso-fareast-font-family:"Times New Roman";}
|
||
@page Section1
|
||
{size:8.5in 11.0in;
|
||
margin:1.0in 1.25in 1.0in 1.25in;
|
||
mso-header-margin:.5in;
|
||
mso-footer-margin:.5in;
|
||
mso-paper-source:0;}
|
||
div.Section1
|
||
{page:Section1;}
|
||
/* List Definitions */
|
||
@list l0
|
||
{mso-list-id:225461610;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:1394633368 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l0:level1
|
||
{mso-level-tab-stop:.5in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l0:level2
|
||
{mso-level-number-format:alpha-lower;
|
||
mso-level-tab-stop:1.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l0:level3
|
||
{mso-level-number-format:roman-lower;
|
||
mso-level-tab-stop:1.5in;
|
||
mso-level-number-position:right;
|
||
text-indent:-9.0pt;}
|
||
@list l0:level4
|
||
{mso-level-tab-stop:2.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l1
|
||
{mso-list-id:372265500;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:1632677288 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l1:level1
|
||
{mso-level-tab-stop:.5in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l2
|
||
{mso-list-id:641809900;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:1861937834 67698715 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l2:level1
|
||
{mso-level-number-format:roman-lower;
|
||
mso-level-tab-stop:.5in;
|
||
mso-level-number-position:right;
|
||
text-indent:-.25in;}
|
||
@list l2:level2
|
||
{mso-level-number-format:alpha-lower;
|
||
mso-level-tab-stop:1.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l3
|
||
{mso-list-id:697313150;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:499546770 -279558068 67698703 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l3:level1
|
||
{mso-level-number-format:alpha-upper;
|
||
mso-level-tab-stop:.75in;
|
||
mso-level-number-position:left;
|
||
margin-left:.75in;
|
||
text-indent:-.25in;}
|
||
@list l3:level2
|
||
{mso-level-tab-stop:1.25in;
|
||
mso-level-number-position:left;
|
||
margin-left:1.25in;
|
||
text-indent:-.25in;}
|
||
@list l3:level3
|
||
{mso-level-number-format:roman-lower;
|
||
mso-level-tab-stop:135.0pt;
|
||
mso-level-number-position:right;
|
||
margin-left:135.0pt;
|
||
text-indent:-.25in;}
|
||
@list l4
|
||
{mso-list-id:1290277840;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:-1721187636 67698715 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l4:level1
|
||
{mso-level-number-format:roman-lower;
|
||
mso-level-tab-stop:.5in;
|
||
mso-level-number-position:right;
|
||
text-indent:-.25in;}
|
||
@list l4:level2
|
||
{mso-level-number-format:alpha-lower;
|
||
mso-level-tab-stop:1.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l5
|
||
{mso-list-id:1336303127;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:-1307524320 67698715 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l5:level1
|
||
{mso-level-number-format:roman-lower;
|
||
mso-level-tab-stop:.5in;
|
||
mso-level-number-position:right;
|
||
text-indent:-.25in;}
|
||
@list l5:level2
|
||
{mso-level-number-format:alpha-lower;
|
||
mso-level-tab-stop:1.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l6
|
||
{mso-list-id:1433433570;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:1180321970 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l6:level1
|
||
{mso-level-tab-stop:.5in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l6:level2
|
||
{mso-level-number-format:alpha-lower;
|
||
mso-level-tab-stop:1.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l7
|
||
{mso-list-id:1565600825;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:2121727810 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l7:level1
|
||
{mso-level-tab-stop:.5in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l7:level2
|
||
{mso-level-number-format:alpha-lower;
|
||
mso-level-tab-stop:1.0in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l8
|
||
{mso-list-id:1770154320;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:-617045414 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l8:level1
|
||
{mso-level-tab-stop:.5in;
|
||
mso-level-number-position:left;
|
||
text-indent:-.25in;}
|
||
@list l9
|
||
{mso-list-id:1840541102;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:499546770 67698689 67698703 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l9:level1
|
||
{mso-level-number-format:bullet;
|
||
mso-level-text:\F0B7;
|
||
mso-level-tab-stop:.25in;
|
||
mso-level-number-position:left;
|
||
margin-left:.25in;
|
||
text-indent:-.25in;
|
||
font-family:Symbol;}
|
||
@list l9:level2
|
||
{mso-level-tab-stop:.75in;
|
||
mso-level-number-position:left;
|
||
margin-left:.75in;
|
||
text-indent:-.25in;}
|
||
@list l9:level3
|
||
{mso-level-number-format:roman-lower;
|
||
mso-level-tab-stop:99.0pt;
|
||
mso-level-number-position:right;
|
||
margin-left:99.0pt;
|
||
text-indent:-.25in;}
|
||
@list l10
|
||
{mso-list-id:1865364864;
|
||
mso-list-type:hybrid;
|
||
mso-list-template-ids:965008906 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
|
||
@list l10:level1
|
||
{mso-level-tab-stop:.75in;
|
||
mso-level-number-position:left;
|
||
margin-left:.75in;
|
||
text-indent:-.25in;}
|
||
ol
|
||
{margin-bottom:0in;}
|
||
ul
|
||
{margin-bottom:0in;}
|
||
-->
|
||
</style>
|
||
<!--[if gte mso 9]><xml>
|
||
<o:shapedefaults v:ext="edit" spidmax="2050"/>
|
||
</xml><![endif]--><!--[if gte mso 9]><xml>
|
||
<o:shapelayout v:ext="edit">
|
||
<o:idmap v:ext="edit" data="1"/>
|
||
</o:shapelayout></xml><![endif]-->
|
||
</head>
|
||
|
||
<body lang=EN-US style='tab-interval:.5in'>
|
||
|
||
<div class=Section1>
|
||
|
||
<h1><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>How to use
|
||
Sleeper to Test a Specific System Sleep State<o:p></o:p></span></h1>
|
||
|
||
<p class=MsoNormal><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<h3><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>Installation:
|
||
<o:p></o:p></span></h3>
|
||
|
||
<p class=MsoBodyText><span style='mso-bidi-font-family:Tahoma'><span
|
||
style='mso-tab-count:1'><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> </span>Copy the executable sleeper.exe to the
|
||
local machine.<span style="mso-spacerun: yes"><EFBFBD> </span>As this is a power
|
||
management test it must be run from the local machine.<o:p></o:p></span></p>
|
||
|
||
<h3><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>Using Sleeper
|
||
Topics:<o:p></o:p></span></h3>
|
||
|
||
<ol style='margin-top:0in' start=1 type=1>
|
||
<li class=MsoNormal style='mso-list:l8 level1 lfo11;tab-stops:list .5in'><span
|
||
style='font-size:11.0pt;mso-bidi-font-size:12.0pt;font-family:Verdana;
|
||
mso-bidi-font-family:Tahoma'>Why is this tool necessary?<o:p></o:p></span></li>
|
||
<li class=MsoNormal style='mso-list:l8 level1 lfo11;tab-stops:list .5in'><span
|
||
style='font-size:11.0pt;mso-bidi-font-size:12.0pt;font-family:Verdana;
|
||
mso-bidi-font-family:Tahoma'>What does the option labeled <20>S4 (with
|
||
reset)<29> do?<o:p></o:p></span></li>
|
||
<li class=MsoNormal style='mso-list:l8 level1 lfo11;tab-stops:list .5in'><span
|
||
style='font-size:11.0pt;mso-bidi-font-size:12.0pt;font-family:Verdana;
|
||
mso-bidi-font-family:Tahoma'>Is there anything different with the <20>S5
|
||
(power off)<29> than going to the Start Menu and selecting Shutdown?</span><span
|
||
style='font-family:Verdana;mso-bidi-font-family:Tahoma'><o:p></o:p></span></li>
|
||
<li class=MsoNormal style='mso-list:l8 level1 lfo11;tab-stops:list .5in'><span
|
||
style='font-size:11.0pt;mso-bidi-font-size:12.0pt;font-family:Verdana;
|
||
mso-bidi-font-family:Tahoma'>How can I verify the machine is going into
|
||
the sleep state stated on the buttons in this program?</span><span
|
||
style='font-family:Verdana;mso-bidi-font-family:Tahoma'><o:p></o:p></span></li>
|
||
</ol>
|
||
|
||
<p class=MsoNormal><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<b><span style='font-size:13.0pt;font-family:Verdana;mso-fareast-font-family:
|
||
"Times New Roman";mso-bidi-font-family:Tahoma;mso-ansi-language:EN-US;
|
||
mso-fareast-language:EN-US;mso-bidi-language:AR-SA'><br clear=all
|
||
style='page-break-before:always'>
|
||
</span></b>
|
||
|
||
<h3><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>Why is this
|
||
tool necessary?<o:p></o:p></span></h3>
|
||
|
||
<p class=MsoNormal style='text-indent:.5in'><span style='font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;font-family:Verdana;mso-bidi-font-family:Tahoma'>Simply
|
||
put, to help make power management testing easier.<span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Windows 2000<30>s behavior when you select the <20>Stand By<42> option
|
||
from the <20>Shutdown Windows<77> dialog is it will try to put the machine into the
|
||
lowest sleep state reported by the machine.<span style="mso-spacerun: yes"><EFBFBD>
|
||
</span>If the request to go to that sleep state is rejected by one device
|
||
driver, Windows 2000 will then try the next lightest sleep state and so on
|
||
until it either a. No drivers fail the request to go to a particular sleep
|
||
state or b. There are no other sleep states to try.<span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>If the second case occurs a dialog box will come up and state
|
||
which driver failed the request to go to <20>Stand By<42> but there is no information
|
||
stating which system sleep state that was.<span style="mso-spacerun: yes"><EFBFBD>
|
||
</span><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal style='text-indent:.5in'><span style='font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal style='text-indent:.5in'><span style='font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;font-family:Verdana;mso-bidi-font-family:Tahoma'>If
|
||
you are trying to test S3 support you need some way to force the system to only
|
||
try S3 and not fall back to S1.<span style="mso-spacerun: yes"><EFBFBD> </span>In the
|
||
past the method to do this was to run a tool called dumppo.<span
|
||
style="mso-spacerun: yes"><EFBFBD> </span>When you ran dumppo you would then modify
|
||
the admin power policies minsleep and maxsleep states to be the sleep state you
|
||
wanted to test.<span style="mso-spacerun: yes"><EFBFBD> </span>Then you would select
|
||
<EFBFBD>Stand By<42> from the <20>Shutdown Windows<77> dialog to go to the sleep state you
|
||
specified in the admin power policy.<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal style='text-indent:.5in'><span style='font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal style='text-indent:.5in'><span style='font-size:11.0pt;
|
||
mso-bidi-font-size:12.0pt;font-family:Verdana;mso-bidi-font-family:Tahoma'>This
|
||
method is cumbersome and prone to mistakes, hence the need for this tool.<span
|
||
style="mso-spacerun: yes"><EFBFBD> </span>With this tool you simple execute the
|
||
program and you will be presented with several buttons in which you can
|
||
initiate the sleep action from there.</span><span style='font-family:Verdana;
|
||
mso-bidi-font-family:Tahoma'><o:p></o:p></span></p>
|
||
|
||
<b><span style='font-size:13.0pt;font-family:Verdana;mso-fareast-font-family:
|
||
"Times New Roman";mso-bidi-font-family:Tahoma;mso-ansi-language:EN-US;
|
||
mso-fareast-language:EN-US;mso-bidi-language:AR-SA'><br clear=all
|
||
style='page-break-before:always'>
|
||
</span></b>
|
||
|
||
<h3><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>What does the
|
||
option labeled <20>S4 (with reset)<29> do?<o:p></o:p></span></h3>
|
||
|
||
<p class=MsoBodyText><span style='mso-bidi-font-family:Tahoma'>This button is
|
||
designed to test a scenario that currently exists in WHQL through the ACPI
|
||
Stress test.<span style="mso-spacerun: yes"><EFBFBD> </span>The scenario is a reset is
|
||
performed at the end of writing the hibernation file instead of shutting off
|
||
the system.<span style="mso-spacerun: yes"><EFBFBD> </span>Since the ACPI Stress test
|
||
is a required test to get WHQL certification and again it is difficult to
|
||
properly set this scenario up a click of the <20>S4 (with reset)<29> button will
|
||
perform this task of setting up the machine to do the restart and then initiate
|
||
a hibernation request.<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<h3><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>Is there
|
||
anything different with the <20>S5 (power off)<29> than going to the Start Menu and
|
||
selecting Shutdown?<o:p></o:p></span></h3>
|
||
|
||
<p class=MsoBodyText><span style='mso-bidi-font-family:Tahoma'>No. This feature
|
||
is provided to give the tester or developer easy access to the shutdown and off
|
||
feature of power management.<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<h3><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'>How can I
|
||
verify the machine is going into the sleep state stated on the buttons in this
|
||
program?<o:p></o:p></span></h3>
|
||
|
||
<p class=MsoNormal><span style='font-size:11.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>It is actually quite
|
||
simple.<span style="mso-spacerun: yes"><EFBFBD> </span>The program will output to an
|
||
attached debugger (kernel or user mode debugger) a string stating which sleep
|
||
state it is selecting.<span style="mso-spacerun: yes"><EFBFBD> </span>If the machine
|
||
is going to Sx then the string is going to state <20>Selecting Sx<53> where x is the
|
||
state the machine is going to.<span style="mso-spacerun: yes"><EFBFBD> </span><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:11.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:11.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style='mso-tab-count:
|
||
1'><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> </span>If you want to verify what is occurring from the system<65>s
|
||
point of view you will need to first attach a kernel debugger with the correct
|
||
symbols to the systeme the test is to be run on.<span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Once the kernel debugger is attached break in by hitting
|
||
CTRL-C.<span style="mso-spacerun: yes"><EFBFBD> </span>Once at the kd> prompt enter
|
||
in <20>bp hal!HalpAcpiPreSleep<65> and press enter.<span style="mso-spacerun: yes"><EFBFBD>
|
||
</span>Now a break point is set at the last function executed before the
|
||
machine goes to its sleep state.<span style="mso-spacerun: yes"><EFBFBD> </span>Next
|
||
hit <20>g<EFBFBD> to continue and then initiate the sleep state desired via the
|
||
program.<span style="mso-spacerun: yes"><EFBFBD> </span>When the debugger breaks in at
|
||
the break point, enter in <20>!poaction<6F> at the kd prompt.<span
|
||
style="mso-spacerun: yes"><EFBFBD> </span>In the output from !poaction look for the
|
||
entry labeled SystemState.<span style="mso-spacerun: yes"><EFBFBD> </span>This is the
|
||
sleep state that the system is going to.<span style="mso-spacerun: yes"><EFBFBD>
|
||
</span><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:11.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:11.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>Below is an example debug
|
||
session determining which sleep state the machine is going to when the system
|
||
is going to S1:</span><span style='font-family:Verdana;mso-bidi-font-family:
|
||
Tahoma'><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>kd> bp hal!HalpAcpiPreSleep<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>kd> g<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>Selecting S1<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>Breakpoint 0 hit<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>halacpi!HalpAcpiPreSleep:<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>8006ae88 55<span
|
||
style="mso-spacerun: yes"><EFBFBD> </span><span style="mso-spacerun:
|
||
yes"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></span>push<span style="mso-spacerun: yes"><EFBFBD><EFBFBD><EFBFBD> </span>ebp<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>kd> !poaction<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>PopAction: 80471ef0<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>State..........: 3 - Set System State<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Updates........: 0<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Action.........: Sleep<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Lightest State.: Sleeping1<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Flags..........: 40000000 DisableWakes<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Irp minor......: SetPower<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><b><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span><span style='color:red'>System State...: Sleeping1<span
|
||
style="mso-spacerun: yes"><EFBFBD><EFBFBD> </span></span></span></b><b><span
|
||
style='font-size:9.0pt;mso-bidi-font-size:12.0pt;font-family:Wingdings;
|
||
mso-ascii-font-family:Verdana;mso-hansi-font-family:Verdana;mso-bidi-font-family:
|
||
Tahoma;mso-char-type:symbol;mso-symbol-font-family:Wingdings'><span
|
||
style='mso-char-type:symbol;mso-symbol-font-family:Wingdings'><EFBFBD></span></span></b><b><span
|
||
style='font-size:9.0pt;mso-bidi-font-size:12.0pt;font-family:Verdana;
|
||
mso-bidi-font-family:Tahoma'>-This is the sleep state the machine is going to<span
|
||
style='mso-tab-count:1'><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> </span><span style='color:red'><span
|
||
style='mso-tab-count:1'><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> </span><o:p></o:p></span></span></b></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Hiber Context..: 00000000<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>PopAction.DevState 814f03c8<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Irp minor......: SetPower<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>System State...: Sleeping1<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Worker thread..: 8153f740<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Status.........: 0<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Waking.........: FALSE<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Cancelled......: FALSE<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Ignore errors..: FALSE<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Ignore not imp.: FALSE<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Wait any.......: FALSE<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Wait all.......: FALSE<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Present Irp Q..: Head:814f0420 Empty<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'>Order:<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>DevNode Seq....: 5a<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>NoLists........: 30<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Partial........: Head:814f03fc Empty<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>Rebase.........: Head:814f03fc Empty<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD><EFBFBD><EFBFBD><EFBFBD> </span>7<span style="mso-spacerun: yes"><EFBFBD><EFBFBD> </span>Paged, Root-Enum<o:p></o:p></span></p>
|
||
|
||
<p class=MsoNormal><span style='font-size:9.0pt;mso-bidi-font-size:12.0pt;
|
||
font-family:Verdana;mso-bidi-font-family:Tahoma'><span style="mso-spacerun:
|
||
yes"><EFBFBD> </span>2a 7:0 81213708 w \Driver\audstub</span><span style='font-family:
|
||
Verdana;mso-bidi-font-family:Tahoma'><o:p></o:p></span></p>
|
||
|
||
</div>
|
||
<font face="Verdana">
|
||
<H3>Feedback</H3>
|
||
<P>We welcome your comments, problem reports and wish-list requests. Please
|
||
submit them by pointing your Internet browser to <A
|
||
href="http://www.microsoft.com/ddk">http://www.microsoft.com/ddk</A>.
|
||
</FONT></P>
|
||
<TABLE cellSpacing=0 width=624 border=0>
|
||
<TBODY>
|
||
<TR>
|
||
<TD vAlign=center bgColor=#000000 height=2></TD></TR></TBODY></TABLE><FONT face="MS Sans Serif" size=1><P><EFBFBD> Microsoft Corporation 2000</FONT><FONT face=Verdana size=2>
|
||
</P></FONT></FONT>
|
||
<UL></UL>
|
||
</font>
|
||
</body>
|
||
|
||
</html>
|