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

Pekka Paalanen ppaalanen at gmail.com
Tue Jul 21 04:31:55 PDT 2015


On Mon, 20 Jul 2015 16:28:13 -0500
Derek Foreman <derekf at osg.samsung.com> wrote:

> 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 */

Good catch!

Reviewed-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>


Thanks,
pq


More information about the wayland-devel mailing list