Bug 489023 - Fullscreen apps flickering (going black and then back to normal) violently when VRR is turn on to automatic
Summary: Fullscreen apps flickering (going black and then back to normal) violently wh...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.1.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-23 07:00 UTC by shenki.sem
Modified: 2024-09-06 14:11 UTC (History)
5 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 shenki.sem 2024-06-23 07:00:02 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

When playing a game (now experiened in Xdefiant and Helldivers 2), or watching a youtube video in fullscreen the screen flickers, goes to black and back to normal very quickly and violently when using Adaptive Sync on "Automatic". Turning this off, or to "Never" the issue is gone.

STEPS TO REPRODUCE
1.  Turn Adaptive Sync to Automatic
2.  Start a game or watch a video on youtube in fullscreen
3.  Experience the issue

OBSERVED RESULT

Screen flickers, goes to black and back to normal very quickly and violently.

EXPECTED RESULT

On Plasma 6.0 this issue was not present, and Adaptive Sync worked correctly without any flickering

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: CachyOS
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0 
Qt Version: 6.7.1

ADDITIONAL INFORMATION

Hardware:
CPU: Intel I5-10400F
RAM: 16GB Kingston Fury
GPU: AMD RX 7800 XT SAPPHIRE NITRO +
Comment 1 CrimsonBlue 2024-09-01 03:00:42 UTC
i can confirm this; i've encountered this problem on my computer, on both NixOS and Fedora Kinoite. additionally, when i set adaptive sync to "Always", the screen goes black until the display settings revert. it may be related to AMD graphics cards, as i am using AMD Ryzen 5560U Radeon integrated graphics (System Info doesn't get more specific than "AMD Radeon Graphics") on my computer, however i don't have another computer to test on. the only workaround currently is turning off adaptive sync or switching to the X11 session. i think that it also had occurred on Plasma 5, but i'm not able to confirm.
Comment 2 Math 2024-09-05 17:01:52 UTC
Getting a similar bug in Garuda. On my second non-primary monitor, the screen goes black whenever I open a fullscreen media. It comes back to normal when I close it with ESC or focus to a window on the other screen.

Happens in: Spectacle rectangular select, Telegram media, MPV videos, Okular, Chromium videos (they blink during playback, goes dark if paused), Firefox videos (this one is a little better; it plays fine but blinks for a second when exiting fullscreen)

There are some instances where this bug does not happen, like playing a browser video (running, not fullscreen) and opening a telegram media.
Comment 3 Vinícius 2024-09-05 18:06:16 UTC
weird, i don't get that with ryzen 7 5700u, my screen is only 75hz tho
Comment 4 Zamundaaa 2024-09-06 14:11:39 UTC
This is a driver bug, please report this to https://gitlab.freedesktop.org/drm/amd/-/issues