[PATCH] Do not set dpms to standby which cause system could be resotred when system is locked at the second time.

Wang, Quanxian quanxian.wang at intel.com
Fri Aug 24 03:57:21 PDT 2012


Reproduce this:
1)      Weston -i1 and after 1 second, the system go into idle and wait a little while, go to lock status
2)      Press key and the screen is fine
3)      After 1 second, system go to idle and wait a little while, go to lock status again
4)      Whatever you press any key or mouse, you could restore the system.

>From Quanxian Wang <quanxian.wang at intel.com>

Do not set dpms to standby which cause system could be restored.

diff --git a/src/shell.c b/src/shell.c
index 4d6bc4f..1df571b 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -2470,10 +2470,6 @@ lock(struct wl_listener *listener, void *data)
        struct workspace *ws = get_current_workspace(shell);

        if (shell->locked) {
-               wl_list_for_each(output, &shell->compositor->output_list, link)
-                       /* TODO: find a way to jump to other DPMS levels */
-                       if (output->set_dpms)
-                               output->set_dpms(output, WESTON_DPMS_STANDBY);
                return;
        }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20120824/dad048fb/attachment-0001.html>


More information about the wayland-devel mailing list