Can I enable mode switching from wayland/weston?

Giulio Camuffo giuliocamuffo at gmail.com
Thu Oct 1 07:47:58 PDT 2015


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.


--
Giulio

>
> I am using arch linux with SDL2 2.0.3-1 and weston 1.8.0-1. If I use X11 instead of wayland/weston I get tmode switching ouput resolutions I require.
>
> Maybe there are some settings to weston I am missing? Googling gave me references to weston fullscreen-shell. Can I get weston to output fullscreen resolutions other than the one preferred by the monitor?
>
> Thanks,
> -Robert
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list