RE: How to do mode setting in Wayland
Hi, Guys Is this possible to specify the output for a weston window? E.g. When I connected 2 monitors (monitor A and monitor B) on my system, and I want to display a picture on monitor A. Thanks, Lingyun ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
RE: How to do mode setting in Wayland
Thank you very much. It works. Thanks, Lingyun -Original Message- From: wayland-devel [mailto:wayland-devel-boun...@lists.freedesktop.org] On Behalf Of Emmanuel Gil Peyrot Sent: Friday, December 23, 2016 11:59 PM To: Zhu, Lingyun Cc: wayland-devel Subject: Re: How to do mode setting in Wayland On Fri, Dec 23, 2016 at 08:59:20AM +, Zhu, Lingyun wrote: > Hi, Hi, > > I'm trying to set mode for a monitor from 4K@60Hz to 4K@30Hz (all supported) > under wayland/weston. > But it seems there's no api for doing this. That’s correct. > The only mode setting related api is wl_output::mode event, but it's a > notifying event. > > How can I change the mode of a monitor under wayland/weston? The mode can currently only be set at launch time, in the weston.ini configuration file, output section, in the mode option. To set a specific refresh rate, you will have to generate a modeline using the `cvt` tool and paste that in the mode option, see `man weston.ini` and `man cvt` for more information. > > > Thanks, > Lingyun > -- Emmanuel Gil Peyrot ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
Re: How to do mode setting in Wayland
On Fri, Dec 23, 2016 at 08:59:20AM +, Zhu, Lingyun wrote: > Hi, Hi, > > I'm trying to set mode for a monitor from 4K@60Hz to 4K@30Hz (all supported) > under wayland/weston. > But it seems there's no api for doing this. That’s correct. > The only mode setting related api is wl_output::mode event, but it's a > notifying event. > > How can I change the mode of a monitor under wayland/weston? The mode can currently only be set at launch time, in the weston.ini configuration file, output section, in the mode option. To set a specific refresh rate, you will have to generate a modeline using the `cvt` tool and paste that in the mode option, see `man weston.ini` and `man cvt` for more information. > > > Thanks, > Lingyun > -- Emmanuel Gil Peyrot signature.asc Description: PGP signature ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel
How to do mode setting in Wayland
Hi, I'm trying to set mode for a monitor from 4K@60Hz to 4K@30Hz (all supported) under wayland/weston. But it seems there's no api for doing this. The only mode setting related api is wl_output::mode event, but it's a notifying event. How can I change the mode of a monitor under wayland/weston? Thanks, Lingyun ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel