Can I enable mode switching from wayland/weston?

Robert Folland robert.folland at me.com
Thu Oct 1 08:03:47 PDT 2015


On 01 Oct 2015, at 16:47, Giulio Camuffo <giuliocamuffo at gmail.com> wrote:
> 
> 2015-10-01 16:40 GMT+03:00 Robert Folland <robert.folland at me.com>:
>> Hi,
>> 
>> I need to display video in different resolutions (the resolution of the recording), but with weston/wayland I always end up with the resolution preferred by the monitor (1920x1080 in my current setup).
>> 
>> SDL2 thinks it is producing e.g. 1280x720, but that is not the real output to screen. This is probably due to weston scaling this to 1920x1080 for the monitor, intstead of doing a mode switching, which is what I require for my application.
> 
> Why do you need a mode switch? Unless you're using a CRT the monitor
> will scale the image up internally, and usually weston can do it
> better.
> Anyway, I assume SDL uses wl_shell, not xdg_shell, and
> wl_shell_surface.set_fullscreen accepts several modes, and one of them
> asks the compositor to perform a mode switch. Note that it *asks* to,
> there is no way to force it, and that's by design.
> 

I’ve set up a box to be an input source to other equipment. So it is providing input to another box instead of e.g cameras, playing out uncompressed video.
So, it will not be displaying to monitors directly, but to a camera input on another box. And that camera input is accepting a range of resolutions.

When I check the resolution actually asked for from within SDL it says it is producing my wanted resolution, but is is not actually apparing on the output. So I suspect it is not able to force it to weston.

The monitor/camera input receiving the signal is providing a list of resolutions in its EDID data, and I guess one is preferred as a native resolution. But as long as there are more entries in that EDID list, would it not be a good idea to allow these to be “forced” through weston?

-Robert


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20151001/62e36c0a/attachment.sig>


More information about the wayland-devel mailing list