S.T.A.L.K.E.R. 2: Heart of Chornobyl

S.T.A.L.K.E.R. 2: Heart of Chornobyl

Not enough ratings
HDR on Linux
By Isemenuk27
My method to make HDR option available in setting while running game on Linux.
   
Award
Favorite
Favorited
Unfavorite
Intro
Currently this guide provides only method I`m using to make game run with HDR.

Feel free to share your methods, maybe ill add them.

P. S. Make sure your monitor, its cables supports HDR ( I had to buy a new DP cable )
and game has fullscreen setting set.

P.P.S. If you experiencing stutters after playing for some time, then this guide will be helpful: https://steamcommunity.com/sharedfiles/filedetails/?id=3393460710
Requirements
You need to install gamescope. If it doesn't work ( game hangs on black screen on startup ) then try gamescope-plus. ( not sure, still persist, sometimes... )

If game is refusing to start then make sure amdvlk is not installed.
On Plasma 6.2.4
I'm running Manjaro with 6.12.4-1 kernel, Plasma 6.2.4 with Wayland.
HDR in display configuration should be on, because game will be shown very saturated.

Put this in launch options and you good to go
gamescope --force-grab-cursor -f -w 1920 -h 1080 -r 75 --hdr-enabled --hdr-debug-force-output --xwayland-count 2 -- env STEAM_MULTIPLE_XWAYLANDS=1 DXVK_HDR=1 ENABLE_HDR_WSI=1 %command%

-w is monitor width, -h - height and -r - fps lock.
Other method ( Run in another TTY )
Old method I was using, maybe will be helpful for someone.

I`m running Fedora 41.
This method, in theory, should work with any distro.

Then:
1. Open your home folder.
2. Create file with name steam-gamescope.sh
3. Open it in text editor and paste this code below and save it.
#!/bin/bash STEAM_MULTIPLE_XWAYLANDS=1 DXVK_HDR=1 ENABLE_HDR_WSI=1 gamescope -f -e -w 1920 -h 1080 -r 75 --xwayland-count 2 --hdr-enabled --hdr-debug-force-output -- steam -gamepadui -steamos3

-w and -h - should be your display resolution. -r is display frequency.
4. Open terminal and type: sudo chmod +x steam-gamescope.sh
5. Exit steam
6. Press Ctrl+Alt+F3 and login.
7. Type: ./steam-gamescope.sh
8. Launch game, enable HDR in settings and enjoy.

After you done playing stalker, close it and press Ctrl+Alt+F2.
If you later want to use Steam - simply exit it using tray icon and launch again normally.

Hope it helps you.
2 Comments
noiro.bogdan Mar 2 @ 4:03pm 
Nice, thank you!
Way She Goes Mar 1 @ 12:20pm 
Are all Linux users so