Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDR on KDE don't work #1308

Open
pio2398 opened this issue May 24, 2024 · 18 comments
Open

HDR on KDE don't work #1308

pio2398 opened this issue May 24, 2024 · 18 comments

Comments

@pio2398
Copy link

pio2398 commented May 24, 2024

I can't run games in HDR mode in any way

I tried gamescope:

DXVK_HDR=1 ENABLE_HDR_WSI=1 gamescope -f --hdr-enabled --hdr-debug-force-output -- %command%
This end with:

CreateSwapchainKHR: Creating swapchain for non-Gamescope swapchain.
Hooking has failed somewhere!
You may have a bad Vulkan layer interfering.
Press OK to try to power through this error, or Cancel to stop.

according to: https://zamundaaa.github.io/wayland/2024/05/11/more-hdr-and-color.html
this should work:
gamescope --hdr-enabled --fullscreen -- %command%
but fail with some message.

I also tried to force wayland in proton but it's start using X11 when I set DISPLAY= %command% or don't start at all with:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Wine\Drivers]
"Graphics"="wayland"

Any idea? I am using NixOS nad rx 7900 xtx.

Gamescope in Heroic seem to work without any problems.

@jathanasiou
Copy link

I am seeing the same issue as of the last update on Arch 6.9.2-zen with RADV drivers, as of updates that took place in the last 2-3 days.

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented May 28, 2024

@pio2398
Copy link
Author

pio2398 commented May 29, 2024

@RokeJulianLockhart: well, gamescope probably using now wayland by default.
However, something is not working with Vulcan layers as expected.

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented May 29, 2024

#1308 (comment)

@pio2398, it doesn't appear to be, per ValveSoftware/gamescope#543 (comment).

@pio2398
Copy link
Author

pio2398 commented May 29, 2024

@RokeJulianLockhart running x11 wine on Wayland is supported. Read KDE blog post linked by me.

Running native wine on Wayland without gamescope is also a option but don't work (proton don't have Wayland compiled?). This might not be clear in my first message.

@jathanasiou
Copy link

jathanasiou commented May 29, 2024

I just tried downgrading gamescope all the way to 3.14.0 and it still gives this error, while being unable to run games in HDR, so I'm thinking it's not actually gamescope that is the problem.

@pio2398
Copy link
Author

pio2398 commented May 29, 2024

@jathanasiou: I have similar opinion so I created this issues. However, I don't even have idea how how start debugging.

@jathanasiou
Copy link

Through some testing I've done, I keep getting this error:

  • with or without the --hdr-enabled flag
  • with or without -r frame limit
  • both with Proton-GE and with Proton 9.0.1 which is the latest stable on steam right now.

But it does not seem to occur when running say glxgears with gamescope through the terminal. I am genuinely very confused as to what might be causing this.

@pio2398
Copy link
Author

pio2398 commented Jun 2, 2024

I also tried to run Steam in Gamescope from system (Gamescope outside Flatpak, Steam in Flatpak) and got some error.

@LostWarriorr
Copy link

Pretty certain this is an upstream gamescope/flatpak/proton issue but I'm really not entirely sure at this point. Someone using bottles wasn't able to use gamescope unless they were using X11 but X11 fails for me as well. Using the deprecated flatpak versions of proton allow the game to run using gamescope. These versions are also built without pressure-vessel.

But then it seems strange that something like Heroic works on your end (idk if it uses a custom proton) and then the user using bottles (Presumed to be using "soda" which is a custom proton) worked in X11 but not Wayland.

I also find a decent handful of posts talking about gamescope/flatpak with no issues on reddit or similar but it could of been back when the flatpak versions of Proton were still supported?

@jathanasiou
Copy link

jathanasiou commented Jun 5, 2024

Pretty certain this is an upstream gamescope/flatpak/proton issue but I'm really not entirely sure at this point. Someone using bottles wasn't able to use gamescope unless they were using X11 but X11 fails for me as well. Using the deprecated flatpak versions of proton allow the game to run using gamescope. These versions are also built without pressure-vessel.

@LostWarriorr

I've been getting this error for the last week without using flatpak at all. I just use Arch's official steam package with the steam-runtime.

I tried using different gamescope versions, gamescope git and even older ProtonGE versions (from a time when this was definitely not occurring, but the error remains.

Part of me is wondering if KDE/Plasma is a culprit as well since I haven't tried downgrading my entire DE.


EDIT: could these steam logs be relevant to the error we are seeing?

[Gamescope WSI] Failed to connect to gamescope socket: /run/pressure-vessel/gamescope-socket. Bypass layer will be unavailable.
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.

@LostWarriorr
Copy link

Pretty certain this is an upstream gamescope/flatpak/proton issue but I'm really not entirely sure at this point. Someone using bottles wasn't able to use gamescope unless they were using X11 but X11 fails for me as well. Using the deprecated flatpak versions of proton allow the game to run using gamescope. These versions are also built without pressure-vessel.

@LostWarriorr

I've been getting this error for the last week without using flatpak at all. I just use Arch's official steam package with the steam-runtime.

I tried using different gamescope versions, gamescope git and even older ProtonGE versions (from a time when this was definitely not occurring, but the error remains.

Part of me is wondering if KDE/Plasma is a culprit as well since I haven't tried downgrading my entire DE.

Its weird that you have an issue using native steam and gamescope as I don't think I have seen that yet.

I don't think its just a KDE thing as I have seen one other report from a GNOME user and I think a report on Linux Mint (although I don't remember if it was recent). The only thing all of these have in common (that is if mint was recent) is wayland.

There was someone saying it worked for them under plasma X11 but for me it doesn't.
I don't know if the game @pio2398 launched on heroic was a native game or he had to use proton (not sure if heroic does that or not)

This all boils down to no clear answer as to what is happening outside of it being something to do with Proton/gamescope

It could all be related to this org.freedesktop.Platform.VulkanLayer.gamescope:#6 (if using flatpak) but then it doesn't make since why heroic works unless it is using a custom proton without pressure-vessel

EDIT: could these steam logs be relevant to the error we are seeing?

[Gamescope WSI] Failed to connect to gamescope socket: /run/pressure-vessel/gamescope-socket. Bypass layer will be unavailable.
[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.

I get the second error in my logs but not the first one.

@jathanasiou
Copy link

jathanasiou commented Jun 9, 2024

Still getting this myself. @LostWarriorr are you on an AMD GPU as well? I don't think nvidia users are getting this issue.

EDIT: Will open on https://github.com/ValveSoftware/gamescope as well since I am getting this on on native gamescope too.

@LostWarriorr
Copy link

LostWarriorr commented Jun 9, 2024

Still getting this myself. @LostWarriorr are you on an AMD GPU as well? I don't think nvidia users are getting this issue.

Yes AMD

Distro: Debian Sid

DE: KDE Wayland

GPU: AMD 6800xt

CPU: 5800x3D

Monitors: 1080p 144hz and 1080p 60hz

Pipewire is being used and not pulseaudio if that is another factor

@jathanasiou
Copy link

We have a near identical system then. I'm on arch myself and single 144hz monitor but same DE, CPU/GPU and pipewire as well.

@pio2398
Copy link
Author

pio2398 commented Jun 10, 2024

@LostWarriorr: I was using proton-ge in Heroic. I assume that Heroic is using some gamescope as Steam.
If nested sandbox is problem, proton-ge from Steam probably should work because proton-ge is doesn't nested sandbox.

@LostWarriorr
Copy link

@LostWarriorr: I was using proton-ge in Heroic. I assume that Heroic is using some gamescope as Steam. If nested sandbox is problem, proton-ge from Steam probably should work because proton-ge is doesn't nested sandbox.

I'm assuming that heroic was also in a flatpak? Can you verify that it is actually in a gamescope instance? I'm really not sure what the deal is with gamescope as a flatpak and using it with Proton as it just doesn't work at all on my main system but on a laptop I had lying around it works in bottles using caffe. Haven't tried steam on it

@jathanasiou
Copy link

jathanasiou commented Jun 12, 2024

Update: my error was caused by using mangohud. After some research on reddit and the gamescope GH, it seems that using mangohud like gamescope .... -- mangohud %command% is not a great idea.

I've seen people recommend the mangoapp binary instead but it's not on AUR so I guess I will just skip mangohud for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants