Weston compositor sleep from wayland client

Pekka Paalanen ppaalanen at gmail.com
Wed Sep 12 13:08:50 UTC 2018

On Wed, 12 Sep 2018 18:07:41 +0530
nsolanki at codeaurora.org wrote:

> Hi Wayland/Weston team,
> I am working on weston 3.0.
> I am trying to put weston on WESTON_COMPOSITOR_SLEEPING state.
> Basically, I want to do this from client side (from wayland app).
> I want to turn off display from application side.
> Can you please help me how this can be achieved ?
> Can I modify any of existing client apps (weston-flower, 
> weston-simple-egl etc) to achieve this functionality?


there is no existing way to do that through Wayland. You could force a
VT-switch away, that should put Weston to SLEEPING.

You could write a new Wayland extension, implement it in Weston and
your app, and control the compositor state that way. However, generally
it is a bad idea to let arbitrary clients freeze the compositor, but
you could restrict it to a specific special client.

Why do you want to put Weston to SLEEPING? What would wake it up?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180912/764365eb/attachment.sig>

More information about the wayland-devel mailing list