<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CSHELDO%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><style>
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:auto;
mso-font-signature:0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:ËÎÌå;
mso-font-kerning:1.0pt;}
span.EmailStyle15
{mso-style-type:personal;
mso-style-noshow:yes;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-fareast-font-family:ËÎÌå;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Hi:</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">I'm trying to find how Xorg handles ACPI (s3 and s4).
<span style=""> </span>It seems that Xorg handles S3/S4(
suspend and resume) is just the same as it process VT switching, for both the
flow is WaitFofSomething( )-> WakeUpHandle( ) -> xf86Wakeup( ) ->
xf86VTswitch( ) .</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Question 1. Is any different between Xorg handle S3/S4
and VT Switching?</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">I notice lnxACPIOpen will test connection to " /var/run/acpid.socket
" , can be seen in Xorg.0.log :</span></p>
<p class="MsoNormal" style="text-indent: 18pt;"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ACPI:
OSPMOpen called</span></p>
<p class="MsoNormal" style="text-indent: 18pt;"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">ACPI:
Opening device</span></p>
<p class="MsoNormal" style="text-indent: 18pt;"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">(II)
Open ACPI successful (/var/run/acpid.socket)</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">BUT, xf86HandlePMEvents( ) is never called (I'm using
Ubuntu8.10, Xorg 1.5.2 ¨C- a debug version ,compiled by myself). In my system
S3/S4 is OK in both console and X.</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Question 2. I don't know why, Is Xorg don't need to
read ACPI Events ? or using some other methods</span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US"> </span></p>
<p class="MsoNormal"><span style="font-size: 9pt; font-family: Arial;" lang="EN-US">Thanks </span></p>