Bug 472087 - Games in Fullscreen broken with fractional scaling
Summary: Games in Fullscreen broken with fractional scaling
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-07-09 01:54 UTC by cookiesandcream
Modified: 2023-09-19 14:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cookiesandcream 2023-07-09 01:54:09 UTC
SUMMARY
***
I'm trying to open fullscreen games from steam on Fedora 38 with KDE 5.27.6 on wayland. The games seem to open correctly, but they don't show up on the screen, all I can see is the windows that were there before. I can hear the game's soundtrack and it's like it was open but I can't see the menus. If I click on the game's icon in the taskbar the screen flickers a lot and causes artifacts and sometimes crashes my system.

I noticed that this only occurs when I have fractional scaling enabled. If I set my 1440p monitor to 100% scaling, the problem goes away. But I would like to use it on a higher scaling integer as I find 100% way too small.

I have an AMD Radeon RX 6950xt and am running the latest mesa drivers and kde versions as far as I can tell.

Has anyone else run into this issue or know of a fix?

Thanks!!!
***


STEPS TO REPRODUCE
1. Enable fractional scaling on wayland with amdgpu, plasma 5.27.6, latest drivers on fedora
2. Open Fullscreen game

OBSERVED RESULT
1. Game opens but does not show up on the screen. Clicking its icon in the taskbar causes visual artifacts and sometimes crashes the computer

EXPECTED RESULT
1. Game opens on the screen as expected

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kernel 6.3.11
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version:  5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2023-07-09 09:46:41 UTC
Please include output of

xrandr -q
kscreen-console bug
Comment 2 cookiesandcream 2023-07-10 19:27:31 UTC
(In reply to David Edmundson from comment #1)
> Please include output of
> 
> xrandr -q
> kscreen-console bug

xrandr -q: https://pastebin.com/yrKKVvbj
kscreen-console bug: https://pastebin.com/veFDNh3c
Comment 3 cookiesandcream 2023-07-12 08:27:12 UTC
(In reply to mossyforest from comment #2)
> (In reply to David Edmundson from comment #1)
> > Please include output of
> > 
> > xrandr -q
> > kscreen-console bug
> 
> xrandr -q: https://pastebin.com/yrKKVvbj
> kscreen-console bug: https://pastebin.com/veFDNh3c

I will note that I do not understand why my first monitor is displaying resolutions such as 3414x1920 considering it is a 1440p monitor. Perhaps this could be related to the problem?
Comment 4 Zamundaaa 2023-09-19 14:40:28 UTC
Yes, that odd resolution can cause such problems - this bug is most likely a result of https://gitlab.freedesktop.org/xorg/xserver/-/issues/1540, and should be fixed with Xwayland 23.2. If you still see the problem with that, just reopen this bug report