Bug 499480 - VRR working even when it is off
Summary: VRR working even when it is off
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-03 21:47 UTC by Lucas Santiago
Modified: 2025-02-11 16:58 UTC (History)
1 user (show)

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


Attachments
drm_info as asked by Zamundaaa <xaver.hugl@gmail.com> (104.87 KB, text/plain)
2025-02-04 13:50 UTC, Lucas Santiago
Details
attachment-1915442-0.html (1.44 KB, text/html)
2025-02-04 13:50 UTC, Lucas Santiago
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Santiago 2025-02-03 21:47:44 UTC
SUMMARY
My monitor supports VRR, but it has a completely messy implementation in hardware. My screen keeps blinking every time the frame rate changes. So I just turned it off long time ago. Today I updated to version 6.2.5 and started blinking again so it means VRR was turned on again even it being turned off in settings and on my monitors settings (it is clearly overwriting my monitor's settings - if I set HDR on in settings, for example, it turns on my monitors HDR even though I turned it off in my monitor long time ago as well). I updated to 6.3 Beta 2 to test (as shown below by kinfo command) and the problem persists.

STEPS TO REPRODUCE
1. Turn off VRR on KDE Wayland

OBSERVED RESULT
Blinking screen every time fps changes.

EXPECTED RESULT
Only turn on VRR when explicit marked as on in my kde settings.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.91 and 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.9.0
Kernel Version: 6.13.1-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600XT 6-Core Processor
Memory: 23.4 GiB of RAM
Graphics Processor: AMD Radeon RX 7600 XT

ADDITIONAL INFORMATION
Probably some flag to turn VRR off completely is not working correctly.
Comment 1 Zamundaaa 2025-02-03 22:16:44 UTC
Please attach the output of drm_info when it's supposed to be off but isn't.
Comment 2 Lucas Santiago 2025-02-04 13:50:08 UTC
Created attachment 177956 [details]
drm_info as asked by Zamundaaa <xaver.hugl@gmail.com>

I tested a little bit more yesterday and when VRR is off it keeps changing my monitors refresh rate from 165hz to 106hz (I saw it on my monitors builtin fps counter). I found a workaround, if I keep my monitor at 60hz the blinking disappear.
Comment 3 Lucas Santiago 2025-02-04 13:50:59 UTC
Created attachment 177958 [details]
attachment-1915442-0.html

I attached it on my bug report.

Em seg., 3 de fev. de 2025 às 19:16, Zamundaaa <bugzilla_noreply@kde.org>
escreveu:

> https://bugs.kde.org/show_bug.cgi?id=499480
>
> Zamundaaa <xaver.hugl@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|REPORTED                    |NEEDSINFO
>                  CC|                            |xaver.hugl@gmail.com
>          Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Zamundaaa <xaver.hugl@gmail.com> ---
> Please attach the output of drm_info when it's supposed to be off but
> isn't.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 Zamundaaa 2025-02-04 17:08:29 UTC
KWin tells the driver to turn VRR off:
> "VRR_ENABLED": range [0, 1] = 0

So this is a driver bug. You can report it at https://gitlab.freedesktop.org/drm/amd/-/issues
Comment 5 Lucas Santiago 2025-02-04 19:33:54 UTC
(In reply to Zamundaaa from comment #4)
> KWin tells the driver to turn VRR off:
> > "VRR_ENABLED": range [0, 1] = 0
> 
> So this is a driver bug. You can report it at
> https://gitlab.freedesktop.org/drm/amd/-/issues

Thanks for your help. I reported to the amd team https://gitlab.freedesktop.org/drm/amd/-/issues/3941.