this post was submitted on 17 Mar 2024
58 points (96.8% liked)

Linux Gaming

15977 readers
426 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 2 years ago
MODERATORS
58
submitted 10 months ago* (last edited 10 months ago) by million to c/linux_gaming
 

As the title asks, how does one actually use HDR for games after upgrading to Plasma 6?

This was the feature I was most excited about, and I can hit the HDR button on my display configuration and it looks like the desktop is going into HDR mode, but so far I have had zero luck enabling the HDR feature in games. Every game I've tried had the HDR toggle disabled with no way to enable it.

I am running these games under Proton and I've tried both 8-GE and 9 Beta. Any tips?

Edit: probably important to note that I am using an AMD GPU under Wayland

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 10 months ago (7 children)

To play Proton games you only need the latest gamescope from git, the HDR layer and environment variables are no longer needed for gamescope

Just set the launch arguments on Steam for any game to: gamescope --hdr-enabled --nested-refresh 165 --fullscreen --steam -w 3440 -W 3440 -h 1440 -H 1440 -- %command%.

Don't forget to set your refresh rate and resolution.

If you want to play videos files in HDR (YouTube also works) you need to use mpv together with the HDR layer.

After installing the layer you can run mpv like this: ENABLE_HDR_WSI=1 mpv --vo=gpu-next --target-colorspace-hint --gpu-api=vulkan --gpu-context=waylandvk "https://www.youtube.com/watch?v=dQw4w9WgXcQ".

[–] million 1 points 10 months ago (2 children)

I finally got a chance to try this out and couldn't get it to work then I realized you mentioned this was git only right now, and I am all Flatpak'd up, so I need to wait.

What is the specific commit that adds the magic since the last release?

[–] [email protected] 2 points 10 months ago (1 children)

Not sure, probably somewhere around when the new Wayland backend was introduced: https://github.com/ValveSoftware/gamescope/commit/9563271dea5ee4844b16a7e179e9f6bc7ed51168

I also normally run in Flatpak but I switched to native until everything settles in. Turns out the config files are compatible now so you can run either and they will pick up the others config with no issue. Just have to watch out with shader pre-compilation because if you have different Mesa versions the clients will pre-compile back and forth all the time.

[–] million 1 points 10 months ago

I could compile my own flatpak locally I suppose but I imagine they will do a release soon

load more comments (4 replies)