[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#992146: xwayland: after disabling CRTC with Xrandr, cannot enable it again



On 13.8.2021 13.52, Simon McVittie wrote:
Package: xwayland
Version: 2:1.20.11-1
Severity: important
Forwarded: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1209
Tags: fixed-upstream
Control: found -1 2:1.20.13-1

When setting display modes with Xrandr, the recommended pattern seems
to be to disable the CRTC with XRRSetCrtcConfig(), change the screen
size with XRRSetScreenSize(), and then re-enable the CRTC with another
call to XRRSetCrtcConfig().

SDL 2.0.16 switched to using this pattern, but this caused a regression on
older versions of Xwayland like the one in Debian 11: after disabling the
CRTC, it does not seem to be possible to re-enable it, leaving Xwayland
in a broken state. Version 2:1.20.13-1 in experimental is also affected.
Please see the upstream bug for a minimal reproducer.

I've confirmed that this is fixed in the standalone Xwayland
(ITP: #981841), most likely as part of the Xrandr emulation feature, so
this will be fixed when the standalone Xwayland takes over the xwayland
binary package name. I tested with 21.1.1 built from
<https://salsa.debian.org/xorg-team/wayland/xwayland>.

I think it would be good to get that version into the NEW queue, so that it
can be in bookworm soon after the release opens. It seems to be already
used in recent Ubuntu "short-term" releases.

Yes, I can drop xwayland from xorg-server 1.20.13-2 and upload xwayland. Next upstream xserver release will drop it as well, but probably best to drop it here before that one is ready.


--
t


Reply to: