Bug 498230 - Image freezes when vulkan applications go full-screen on external monitor
Summary: Image freezes when vulkan applications go full-screen on external monitor
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: xwayland (other bugs)
Version First Reported In: 6.2.5
Platform: Neon Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-03 21:24 UTC by don.vhs
Modified: 2025-01-03 21:50 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description don.vhs 2025-01-03 21:24:53 UTC
Laptop; MSI Bravo 15 B7E with both integrated AMD graphics and dedicated AMD graphics.

In brief: when an external display is used, the video image will freeze whenever a vulkan application goes into full-screen. The application or computer is not frozen itself, the program continues running normally in the "background" (sound etc. keeps playing), and the image returns to normal when un-full-screened. Interestingly, putting another window on TOP of the fullscreen application also does prevents the freeze. So it only happens when the vulkan application is exclusively shown fullscreen.

Does not happen on X11.
Does not happen on Opensuse Tumbleweed Gnome.
Does not happen on the laptop monitor, only on the external one.
As far as I can tell, only happens with Vulkan apps.

STEPS TO REPRODUCE
1. Connect an external monitor to my laptop
2. Start a program that uses vulkan (video game, or mpv configured to use vulkan hardware acceleration)
3. Make the program go full screen on the external monitor

OBSERVED RESULT
Image on the external monitor freezes immediately after the compositor's fullscreen animation finishes.

EXPECTED RESULT
Image would not be frozen

SOFTWARE/OS VERSIONS
Tested on both KDE Neon and Opensuse Tumbleweed.


Linux/KDE Plasma: Currently 6.2.5 on Neon, but has happened for a while
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION

Apologies if this is not the right place or product.
I don't know what logs would be relevant to gather, but I am willing to get anything.
Comment 1 don.vhs 2025-01-03 21:30:45 UTC
Sorry, got my laptop mixed up with my desktop. I haven't tested on KDE Neon, but Fedora 41 with KDE.
Comment 2 Zamundaaa 2025-01-03 21:50:17 UTC
This is https://gitlab.freedesktop.org/drm/amd/-/issues/2075 (to which you might want to add your info).
You can work around it by putting KWIN_DRM_NO_DIRECT_SCANOUT=1 into /etc/environment and rebooting