[PATCH weston] desktop-shell: Put monitor to sleep when idle timer expires

Derek Foreman derekf at osg.samsung.com
Mon Jul 20 14:28:13 PDT 2015


Removing the screensaver had the accidental side effect of disabling
DPMS display shut down.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
 desktop-shell/shell.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 0137ca3..9e3701f 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5194,6 +5194,8 @@ lock(struct desktop_shell *shell)
 	wl_list_insert(&shell->compositor->cursor_layer.link,
 		       &shell->lock_layer.link);
 
+	weston_compositor_sleep(shell->compositor);
+
 	/* Remove the keyboard focus on all seats. This will be
 	 * restored to the workspace's saved state via
 	 * restore_focus_state when the compositor is unlocked */
-- 
2.1.4



More information about the wayland-devel mailing list