<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:10.5pt;">
<div align="left" style="text-align:justify;"><font color="#1F497D">Could not resotred the system. Sorry</font></div>
<div align="left" style="text-align:justify;"><font face="Times New Roman" color="#1F497D"> </font></div>
<div style="padding-left:21pt;"><font face="Tahoma" size="2"><span style="font-size:10pt;">_____________________________________________<br>
<b>From:</b> Wang, Quanxian <br>
<b>Sent:</b> Friday, August 24, 2012 6:57 PM<br>
<b>To:</b> wayland-devel@lists.freedesktop.org<br>
<b>Cc:</b> Wang, Quanxian<br>
<b>Subject:</b> [PATCH] Do not set dpms to standby which cause system could be resotred when system is locked at the second time.</span></font></div>
<div style="padding-left:21pt;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;padding-left:21pt;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;padding-left:21pt;">Reproduce this:</div>
<ol style="text-align:justify;margin:0;padding-left:39pt;">
<li>Weston –i1 and after 1 second, the system go into idle and wait a little while, go to lock status</li><li>Press key and the screen is fine</li><li>After 1 second, system go to idle and wait a little while, go to lock status again</li><li>Whatever you press any key or mouse, you could<font color="#1F497D"> not </font>restore the system.</li></ol>
<div align="left" style="text-align:justify;padding-left:21pt;"><font face="Times New Roman"> </font></div>
<div align="left" style="text-align:justify;padding-left:21pt;">From Quanxian Wang <<a href="mailto:quanxian.wang@intel.com"><font color="blue"><u>quanxian.wang@intel.com</u></font></a>></div>
<div align="left" style="text-align:justify;padding-left:21pt;"> </div>
<div align="left" style="text-align:justify;padding-left:21pt;">Do not set dpms to standby which cause system could be restored.</div>
<div align="left" style="text-align:justify;padding-left:21pt;"> </div>
<div align="left" style="text-align:justify;padding-left:21pt;">diff --git a/src/shell.c b/src/shell.c</div>
<div align="left" style="text-align:justify;padding-left:21pt;">index 4d6bc4f..1df571b 100644</div>
<div align="left" style="text-align:justify;padding-left:21pt;">--- a/src/shell.c</div>
<div align="left" style="text-align:justify;padding-left:21pt;">+++ b/src/shell.c</div>
<div align="left" style="text-align:justify;padding-left:21pt;">@@ -2470,10 +2470,6 @@ lock(struct wl_listener *listener, void *data)</div>
<div align="left" style="text-align:justify;padding-left:21pt;"> struct workspace *ws = get_current_workspace(shell);</div>
<div align="left" style="text-align:justify;padding-left:21pt;"> </div>
<div align="left" style="text-align:justify;padding-left:21pt;"> if (shell->locked) {</div>
<div align="left" style="text-align:justify;padding-left:21pt;">- wl_list_for_each(output, &shell->compositor->output_list, link)</div>
<div align="left" style="text-align:justify;padding-left:21pt;">- /* TODO: find a way to jump to other DPMS levels */</div>
<div align="left" style="text-align:justify;padding-left:21pt;">- if (output->set_dpms)</div>
<div align="left" style="text-align:justify;padding-left:21pt;">- output->set_dpms(output, WESTON_DPMS_STANDBY);</div>
<div align="left" style="text-align:justify;padding-left:21pt;"> return;</div>
<div align="left" style="text-align:justify;padding-left:21pt;"> }</div>
<div align="left" style="text-align:justify;padding-left:21pt;"><font face="Times New Roman"> </font></div>
</span></font>
</body>
</html>