| Summary: | HDR with VRR causing Gama/brightness flicker | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Seimus <mifonito9> |
| Component: | platform-drm | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Seimus
2025-03-30 13:17:53 UTC
> Completely disable HDR for the game, meaning removing the steam launch command
Sounds like it's possibly not related to HDR itself, but to gamescope being used. What if you use gamescope without --hdr-enabled?
Also, FYI, --hdr-debug-force-output and DXVK_HDR=1 are not needed, and ENABLE_HDR_WSI=1 should not be used within gamescope.
Hello Zamundaaa, First of all many thanks for your input. I tried to run it as you requested, removed the obsolete parameters: gamescope --force-grab-cursor -w 3440 -h 1440 -f -r 165 --xwayland-count 2 -- env STEAM_MULTIPLE_XWAYLANDS=1 %command% I tried as well run it as: gamescope -w 3440 -h 1440 -f -r 165 -- %command% In both cases ~ With this the HDR in game is disabled (E.g HDR toggle is greyed out), but the flickering is present. So I guess this points to be a Gamescope issues? I looked around gamescome git repo and found https://github.com/ValveSoftware/gamescope/issues/1617 https://github.com/ValveSoftware/gamescope/issues/1724 Which after reading looks like gamescope can introduce VRR flicker due to nesting. I turned on my monitor's built-in refresh rate OSD, and per it the Frame rates were all over the place even tho in game they were stable 90. However matte-schwartz pointed out one interesting parameter --adaptive-sync I checked the gamescope help --adaptive-sync Enable adaptive sync if available (variable rate refresh) I set the parameter: gamescope -w 3440 -h 1440 -f -r 165 --adaptive-sync --hdr-enabled -- %command% = No flicker I tried as well same parameter with using gooverlay: gamescope -w 3440 -h 1440 -f -r 165 --adaptive-sync --hdr-enabled -- %command% = No flicker I tried as well to set mangoapp as a parameter gamescope -w 3440 -h 1440 -f -r 165 --adaptive-sync --hdr-enabled --mangoapp -- %command% = No flicker And the flickering is gone. So looks like in my case this was a user mistake. If gamesscope is used with a VRR monitor e.g Adaptive sync is turned on, gamescope has to have this parameter explicitly set otherwise VRR is broken and causes insane flicker bellow 100FPS. @Zamundaaa Many thanks to pointing me to the correct direction. HDR and VRR are working now properly and I can enjoy both of worlds. Also great work on the HDR! I like to read your blogposts its so exiting having HDR on Linux. hmm, that default should probably be changed in gamescope, at least for windowed mode. Well wouldn't be more useful to have to changed for full-screen? As many people (mainly gamers) run VRR in KDE e.g Adaptive sync in Automatic mode which is turned on only for Full screen apps. Anyway I did as well update the gamescope git ticket, hopefully this will help further down the pipe(upstream) |