steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

Gamescope with HDR enabled results in completely broken Steam screenshots

Open salixor opened this issue 2 years ago • 25 comments

While running Elden Ring in HDR, I am getting the following kind of screenshots, where it seems like what's being taken as the screenshot might be the HDR mapping (or something, I don't know the technical details of HDR).

1245620_20240806220516_1

I am running the game with the following parameters :

DXVK_HDR=1 PROTON_ENABLE_NVAPI=1 WINEDLLOVERRIDES="dinput8=n,b;dxgi=n,b" gamescope -W 3440 -H 1440 -r 120 -f --hdr-enabled -- python er-patcher -u -a -s -r 120 -- %command%

salixor avatar Aug 06 '24 20:08 salixor

This isn't a Gamescope bug, this is a Steam bug.

misyltoad avatar Aug 07 '24 04:08 misyltoad

Seeing the same kind of issue without HDR running Squirrel with a Gun.

Plasma Wayland on Arch Linux

gamescope -W 1920 -H 1080 -f -r 80 %command%

2067050_3

parkerlreed avatar Sep 03 '24 04:09 parkerlreed

Experiencing the exact same issue on Fedora 41 Beta playing Ace Combat 7. However, it seems to be a game by game bug, as all my other games work fine.

sjohal21 avatar Oct 21 '24 11:10 sjohal21

I've been having this issue since at least November 2024 without HDR enabled in gamescope. Currently on Fedora 41 using Steam version 1733265492

Image

Image

Larsenist avatar Jan 22 '25 03:01 Larsenist

I'm seeing this on fedora 41, with red dead redemption 2, steam version 1738026274. gamescope -W 3840 -H 2160 -r 60 -f -e --hdr-enable --force-grab-cursor -- %command%

Image Image

RoseApollo avatar Feb 16 '25 01:02 RoseApollo

Same issue without HDR enabled in Dark Souls II: SOTFS. Plasma Wayland on Arch Linux using default Proton.

gamescope --adaptive-sync --steam -W 2560 -H 1440 -f -- %command%

Image

ManGuyNY avatar Feb 21 '25 15:02 ManGuyNY

Having this issue with Silent Hill f. I'm using scopebuddy to fix the Steam overlay, as I'm not able to use Steam Input or Overlay without it. I am not using HDR.

scopebuddy --force-grab-cursor -f -w 1920 -h 1080 -W 1920 -H 1920 -r 144 --display-index 1 --backend sdl -- gamemoderun %command%
Image

ficd0 avatar Sep 30 '25 18:09 ficd0

Still unresolved as of 1759461205 and 1761786974 (beta),

filliph avatar Nov 01 '25 19:11 filliph

I was directed here while discussing HDR screenshots in Gamescope, and I may have some info to help. This image was captured by misinterpreting a 10bit swapchain (rgba1010102) as HDR image data, when the actual contents were only 8bit SDR Image Very similar to the other images posted here, and most UE games seem to use a 10bit swapchain regardless if HDR is enabled or not. So based on that, I think games are outputting SDR content to HDR swapchains, causing Steam to misinterpret 8bit values as 10bit and saving corrupt images as a result. Now the issue is how to find out if a game is actually outputting HDR...

jonnyawsom3 avatar Jan 12 '26 21:01 jonnyawsom3

@jonnyawsom3 that's very interesting (and a cool username 😎). Thanks for adding more info!

While it's not a permanent fix, would it be possible for Gamescope to somehow redirect the output to the SDR swapchain if --enable-hdr (or equivalent) is not specified?

And/or introduce a new --disable-hdr if it doesn't already exist, such that we can inform the system about games that don't support HDR (or we choose not to enable HDR) should not have its screenshot data treated as HDR content?

I say this not having a single solitary clue about how the internals of Steam/Gamescope works, but to me it would make sense for it to be exceptionally difficult for Steam to somehow detect whether the game is outputting HDR data. If that's a correct assumption, I think I speak for every poster in this thread when I say we'd be happy to add per-game launch arguments to control this if it means having working gamescope-enabled screenshots.

filliph avatar Jan 13 '26 11:01 filliph

redirect the output to the SDR swapchain

The swapchain has bitdepth, which is usually RGBA 8888 for SDR and 1010102 for HDR, but it also has colorspace which is usually sRGB for SDR and a few options for HDR. I'd assume Steam/Gamescope is only checking bitdepth, but games do exist which output 10bit SDR or have 8bit stored in 10bit swapchains which makes it a lot more complicated and causes the corrupted images.

Getting even more technical, it looks like Vulkan has VkColorSpaceKHR to list the current colorspace, so checks can be performed against it. For example, ReShade already does this. Checking the colorspace here and then using that to select SDR or HDR here.

jonnyawsom3 avatar Jan 13 '26 19:01 jonnyawsom3

I'm also experiencing this issue. Is there any way this could get prioritized ?

triforcely avatar Feb 21 '26 17:02 triforcely

Dropping in from Googling and Reddit. Also having this issue. From 2024 huh, I don't see this getting fixed anytime soon.

ocdgeek128 avatar Feb 21 '26 22:02 ocdgeek128

I'm also having this issue with "LEGO Batman: Legacy of the Dark Knight" using this flags:

gamescope -W 2560 -H 1440 -f -- %command%

SimoneFelici avatar May 23 '26 07:05 SimoneFelici

2026, same problem as OP, on bazzite, using Scopy Buddy.

BlackomegaTM avatar Jun 08 '26 11:06 BlackomegaTM

Also same problem Elden Ring, June 21 2026s still a problem. Launch commands: PROTON_ENABLE_WAYLAND=1 ENABLE_HDR_WSI=1 scb -f -r 165 -W 3840 -H 2160 -w 3840 -h 2160 --hdr-enabled -- env ENABLE_GAMESCOPE_WSI=1 DXVK_HDR=1 %command% Bazzite, KDE plasma, Proton GE latest for current date.

BlackomegaTM avatar Jun 21 '26 20:06 BlackomegaTM

Just noticed this issue in Ready or Not and MECCHA CHAMELEON, both running with Gamescope, both do NOT have HDR enabled as they do not support it. Game looks completely fine.

Launch command: gamescope -b -H 1440 -r 360 --force-grab-cursor --mangoapp -- gamemoderun %command% Running Artix Linux, 7.1.3-zen1-1-zen, KDE Plasma 6.7.2. Using Proton Experimental.

Image Image

PolygonError avatar Jul 15 '26 12:07 PolygonError

seeing this issue too on Voices Of The Void (non-steam game added to steam) but NO HDR is enabled, just running through gamescope. The game looks normal

gamescope -W 3840 -H 2160 -b -- %command%
Image

juls0730 avatar Jul 29 '26 02:07 juls0730

Wow best looking one yet! :)

parkerlreed avatar Jul 29 '26 20:07 parkerlreed

I still don't understand why this is still a problem. The issue is more than 2 years old and very detrimental to all linux users. Needing to rely on 3rd party software for screenshots and not being able to make some inside of steam, which are the only ones you can publish also, is very tedious and annoying..

ReFleXzZ avatar Aug 08 '26 07:08 ReFleXzZ