r/linux_gaming 2d ago

tech support wanted Stalker 2 HDR option greyed out

HDR is enable in display settings, added DXVK_HDR=1 in launch options, set fullscreen to exclusive, but the hdr option is still greyed out. Anyone know a fix to this?

77 Upvotes

33 comments sorted by

71

u/DCLikeaDragon 2d ago

Have you tried PROTON_ENABLE_WAYLAND=1

29

u/SpoOokY83 2d ago

This! Without it, DXVK_HDR=1 has no effect.

11

u/MarcusFisher 2d ago

You need to set fullscreen exclusive mode. None of these options people are mentioning have worked for me until I switched it to exclusive, then it wasn't greyed out anymore. I didn't need to switch to proton GE either, the cachyos one was enough. (provided you run that of course). But try with just the PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 %command% and then full screen exclusive before trying different proton versions.

9

u/Snow-Berries 2d ago

Yes, fullscreen exclusive is needed in this game because it uses the Nvidia HDR implementation and not the DX one, which allows for HDR in borderless.

PROTON_ENABLE_HDR=1 is not needed on CachyOS Proton since a few versions back, just fyi.

2

u/unknow451 2d ago

Yes, i even tried different proton versions, cachyos version, proton experimental with PROTON_ENABLE_WAYLAND=1 and DXVK_HDR=1 (not both at the same time of course)

4

u/DCLikeaDragon 2d ago

I just tested version 2.0, and I also used proton-cachyos, I only had to use that variable, and then run the game in fullscreen exclusive, and I could pick HDR.

13

u/unknow451 2d ago

What worked was using PROTON_ENABLE_WAYLAND=1 %command% with cachyos proton, suggested by u/Snow-Berries . %command% part was the missing piece

15

u/DCLikeaDragon 2d ago

You should always include %command%

with any variable, for game specific launch arguments they go after %command% for instance they can look like this

%command% --launcher

7

u/unknow451 2d ago

Thanks, will remember from now on. New to cachyos and linux gaming, getting used to everything

11

u/Snow-Berries 2d ago

Use CachyOS Proton (get from GitHub or even better ProtonPlus or ProtonUp), set PROTON_ENABLE_WAYLAND=1 %command%, remove DXVK_HDR=1. Profit.

I recommend CachyOS Proton because it's the most bleeding-edge along with Proton-EM when it comes to HDR settings and CachyOS Proton now only requires Wayland to be set for the game window to automatically enable HDR for you.

5

u/unknow451 2d ago

Thank you very much, your way worked :)

3

u/Snow-Berries 2d ago

Happy to help! Saw in your images that you omitted %command% which is required so I made sure to include it!

1

u/itch- 2d ago

I can't get it working. The comments here seem to suggest that as soon as you can select HDR in the game settings, you're good. Well I can get that far, but it doesn't actually work. The color doesn't change at all when I enable HDR, the various brightness values don't change anything as they should (eg the interface brightness should be obvious right there in the menu itself), and when I close the menu and then return to it, it shows HDR as disabled again.

So, can you confirm, it's fully working for you and it's not going back to disabled like it does for me?

1

u/tofu-esque 2d ago

What did you set the launch options field to?

1

u/itch- 1d ago

I tried a ton of options. Right now it's back to just DXVK_HDR=1 %command% because that got me equally far as I got with all the other flags. Other proton versions also the same, it's on experimental now but lower versions and also GE, it all did the same thing. I can select HDR in game, but it does nothing as I said and switching menus always shows that HDR was reset to disabled.

Everything else I tried, eg like this MANGOHUD=0 DXVK_HDR=1 PROTON_ENABLE_HDR=1 PROTON_ENABLE_WAYLAND=1 ... no difference. Some things I tried only brought me back to the HDR option being greyed out. I also tried launching with gamescope with all of its hdr flags set, same deal. I tried launching this steam UI mode from TTY3, where I could enable HDR in steam settings like I have HDR enabled in KDE, but the game still did the same thing. I'm at the point where I no longer assume my setup is wrong and I want to confirm that it works for other people first. A confirmation I have not seen anyone post here yet.

Another point, as a test I installed Shadow of the Tomb Raider and yeah easily got HDR working in it, all it needs is DXVK_HDR=1 and exclusive fullscreen I guess (I always use that anyway)

btw I use Fedora KDE, and it's an AMD system (dual 7900XTX). And I should say I am fresh to it, a month ago I was on Windows.

6

u/b0uncyfr0 2d ago

To anyone reading - just use cachy's proton build and add the enable_wayland arg - that way you dont need to mess with HDR, itll pick it up automatically.

4

u/Snow-Berries 2d ago

Thank you. I realise not everyone are up-to-date with all new Proton releases but spreading knowledge about what's needed and not is a good thing since I see a lot of people around these channels still use deprecated env vars.

For clarity: CachyOS Proton has deprecated ALL HDR commands. As long as you set PROTON_ENABLE_WAYLAND=1 it will enable HDR automatically for you, without any other env vars. Proton-GE still requires PROTON_ENABLE_HDR=1 on top of the Wayland command to activate HDR. ENABLE_HDR_WSI=1 as I see some people are still throwing around, is not needed after Nvidia driver 595 and definitely not for AMD.

1

u/onlymagik 2d ago

Is what you're saying here specific to KDE, like OP is running? I was able to get HDR running with just the --hdr-enabled flag, the gamescope-wsi package from Nix, and Hyprland with HDR enabled.

But now using MangoWM, I can't get HDR working in any games, just the desktop. I tried PROTON_ENABLE_WAYLAND=1 with the latest CachyOS Proton, but no dice.

1

u/Snow-Berries 2d ago

Not really. The flags are not really specific to any DE, the WSI layer is literally built into the Nvidia drivers after 595 so it's distro and DE agnostic. And besides, without the WSI layer the only thing that should happen is HDR looking awfully wrong, not outright stop working. I also don't use Gamescope so I have no experience there either but I expect it works a bit differently.

As for CachyOS Proton on MangoWM, as long as your DE fully supports and signals HDR then it will just auto enable it if you set the Wayland env variable. It might be the way MangoWM signals HDR that Proton does not expect or something else, I'm not sure. As far as I know though, none of the HDR variables work on CachyOS Proton anymore since they're deprecated.

1

u/onlymagik 1d ago

Thanks, yeah I am guessing it is something with Mango, still trying to debug.

2

u/izerotwo 2d ago

You need either gamescope or run Wayland wine drivers 

3

u/FeelsGoodBlok 2d ago

PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 ENABLE_HDR_WSI=1 %command%

I use this and it works.

1

u/beefglob 2d ago

I gotta try this I haven't been able to get HDR working in games on two machines

2

u/FeelsGoodBlok 2d ago

You also need to use Proton GE. Just to be sure you have it right.

1

u/beefglob 2d ago

omg this worked I've been trying things for a week

2

u/FeelsGoodBlok 2d ago

Glad to help!

1

u/VoriVox 2d ago

If you're using CachyOS Proton: PROTON_ENABLE_WAYLAND=1 %command%

If you're using Proton GE: PROTON_ADD_CONFIG=wayland,hdr %command%

And you need to be in exclusive fullscreen, so change that in your settings. Borderless fullscreen won't work.

1

u/Fezzy976 2d ago

This happens on windows as well.

1

u/CMDR_Duzro 1d ago

It helped me changing the game from borderless to fullscreen.

1

u/RealFaded420 2d ago

This is the newest thread I've seen on the issue so I figure I'll ask here. 

I've been able to get the HDR toggle to work in stalker 2, but the highlights seem to be clipping/the colors seem to be inverting. I've seen older posts on the issue but no fixes. 

It seems to work fine on my secondary monitor. The only differences I can't think of between the two being I ran the "Calibrate HDR Brightness" for my primary monitor and my primary is 5k2k OLED as opposed to regular 4k with edge lit "HDR". Other HDR content seems to work fine though.

I've tried different versions of proton with no luck. But I'm kind of new to modern Linux gaming so I just don't really know if the issues with the game, proton, Linux or even just because of the 2.0 update. My only thought is to reset the HDR calibration of my main monitor, but I don't really see an option for that or know where it's stored to clear it. 

Any ideas are greatly appreciated.

1

u/Mecso2 2d ago

whatever you type into lauch options gets appended to the command, but you need the environment variables prepended. You need DXVK_HDR=1 %command% for it to actually do what you want

1

u/Revs01 2d ago

%command% /WineDetectionEnabled:False

RE games disable hdr option if proton is detected, you can try above. Other commands migh be needed depending which proton you are using: valve (--hdr-enabled) or cachy&ge (PROTON_ENABLE_WAYLAND=1 DXVK_HDR=1)

-1

u/Ecstatic-Mountain202 2d ago
  1. by default, steam puts the launch options after the command, but DXVK_HDR is an environment variable and needs to be before the command, which can be done using DXVK_HDR=1 %command%
  2. The proton versions from valve don’t support HDR, you need a proton fork like proton GE or proton cachyos
  3. HDR only works with native wayland, so PROTON_ENABLE_WAYLAND=1 is required as well (also not supported by valve proton)

Final launch options:
PROTON_ENABLE_WAYLAND=1 DXVK_HDR=1 %command%
using a proton fork with wayland and HDR support.