You are not logged in.

#1 2023-03-18 03:41:11

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

What step do I miss to enable HDR in Gamescope?

I have installed theses packages:

- linux-fsync-nobara-bin (from AUR)
- gamescope-plus (from AUR)
- gamescope-session-git (from AUR)
- DXVK
- amdvlk
- vulkan-radeon

What I have done:

- Set DXVK_HDR=1 in /etc/environment


According to https://www.reddit.com/r/linux_gaming/c … _on_linux/, the patches should be included in the Nobara kernel, but I still can't play games in HDR mode.

Last edited by laichiaheng (2023-03-18 03:41:54)

Offline

#2 2023-03-18 04:19:13

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: What step do I miss to enable HDR in Gamescope?

I have figured out how to enable HDR in gamescope-session, according to https://www.reddit.com/r/linux_gaming/c … _on_linux/, I need to edit /usr/share/gamescope-session/gamescope-session-script, add --hdr-enabled, --hdr-sdr-content-nits=<the nits of your display>, and --hdr-wide-gammut-for-sdr behind gamescop in line 170.

However, I still can't enable HDR in Elden Ring.

Offline

#3 2023-03-18 10:52:41

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: What step do I miss to enable HDR in Gamescope?

Let's verify a few basic things first :

Output of

$ vulkaninfo --summary      #comes_with__vulkan-tools__
$ lspci -k
$ pacman -Qs dxvk

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2023-03-18 16:57:22

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: What step do I miss to enable HDR in Gamescope?

Lone_Wolf wrote:

Let's verify a few basic things first :

Output of

$ vulkaninfo --summary      #comes_with__vulkan-tools__
$ lspci -k
$ pacman -Qs dxvk
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.240


Instance Extensions: count = 20
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 8
--------------------------
VK_LAYER_AMD_switchable_graphics_64 AMD switchable graphics layer                  1.3.235  version 1
VK_LAYER_FROG_gamescope_wsi         Gamescope WSI (XWayland Bypass) Layer (x86_64) 1.3.221  version 1
VK_LAYER_MANGOHUD_overlay           Vulkan Hud Overlay                             1.3.0    version 1
VK_LAYER_VALVE_steam_fossilize_32   Steam Pipeline Caching Layer                   1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64   Steam Pipeline Caching Layer                   1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32     Steam Overlay Layer                            1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64     Steam Overlay Layer                            1.3.207  version 1
VK_LAYER_VKBASALT_post_processing   a post processing layer                        1.3.223  version 1

Devices:
========
GPU0:
	apiVersion         = 1.3.230
	driverVersion      = 22.3.6
	vendorID           = 0x1002
	deviceID           = 0x73df
	deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
	deviceName         = AMD Radeon RX 6750 XT (RADV NAVI22)
	driverID           = DRIVER_ID_MESA_RADV
	driverName         = radv
	driverInfo         = Mesa 22.3.6
	conformanceVersion = 1.3.0.0
	deviceUUID         = 00000000-0b00-0000-0000-000000000000
	driverUUID         = 414d442d-4d45-5341-2d44-525600000000
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex
	Subsystem: ASUSTeK Computer Inc. Device 87c0
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU
	Subsystem: ASUSTeK Computer Inc. Device 87c0
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1234
	Kernel driver in use: pcieport
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
	DeviceName:  Onboard IGD
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge
	Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1234
	Kernel driver in use: pcieport
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:05.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
	Subsystem: ASUSTeK Computer Inc. Device 87c0
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B]
	Subsystem: ASUSTeK Computer Inc. Device 87c0
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
	Subsystem: ASUSTeK Computer Inc. Device 87c0
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: ASUSTeK Computer Inc. Device 87c0
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 7
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43d0 (rev 01)
	Subsystem: ASMedia Technology Inc. Device 1142
	Kernel driver in use: xhci_hcd
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
	Subsystem: ASMedia Technology Inc. Device 1062
	Kernel driver in use: ahci
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
	Subsystem: ASMedia Technology Inc. Device 0201
	Kernel driver in use: pcieport
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Subsystem: ASMedia Technology Inc. Device 3306
	Kernel driver in use: pcieport
02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Subsystem: ASMedia Technology Inc. Device 3306
	Kernel driver in use: pcieport
02:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Subsystem: ASMedia Technology Inc. Device 3306
	Kernel driver in use: pcieport
02:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Subsystem: ASMedia Technology Inc. Device 3306
	Kernel driver in use: pcieport
02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Subsystem: ASMedia Technology Inc. Device 3306
	Kernel driver in use: pcieport
02:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
	Subsystem: ASMedia Technology Inc. Device 3306
	Kernel driver in use: pcieport
05:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 85f0
	Kernel driver in use: igb
	Kernel modules: igb
08:00.0 USB controller: ASMedia Technology Inc. ASM2142/ASM3142 USB 3.1 Host Controller
	Subsystem: ASUSTeK Computer Inc. Device 8756
	Kernel driver in use: xhci_hcd
09:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c0)
	Kernel driver in use: pcieport
0a:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch
	Kernel driver in use: pcieport
0b:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev c0)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device 3990
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
0b:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
	Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
0c:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
	Subsystem: ASUSTeK Computer Inc. Device 87c0
0d:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Reserved SPP
	Subsystem: ASUSTeK Computer Inc. Device 87c0
0d:00.1 Encryption controller: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Cryptographic Coprocessor PSPCPP
	Subsystem: ASUSTeK Computer Inc. Device 87c0
	Kernel driver in use: ccp
	Kernel modules: ccp
0d:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller
	Subsystem: ASUSTeK Computer Inc. Device 87c0
	Kernel driver in use: xhci_hcd
0d:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
	Subsystem: ASUSTeK Computer Inc. Device 8735
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
local/dxvk-bin 2.1-3
    A Vulkan-based compatibility layer for Direct3D 9/10/11 which allows running 3D
    applications on Linux using Wine (Windows DLL binary files)

Offline

#5 2023-03-19 11:23:31

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: What step do I miss to enable HDR in Gamescope?

outputs look ok, one thing windows users of Elden Ring mentioned is that HDR only worked in full screen mode. Are you using that ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2023-03-19 13:06:18

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: What step do I miss to enable HDR in Gamescope?

Lone_Wolf wrote:

outputs look ok, one thing windows users of Elden Ring mentioned is that HDR only worked in full screen mode. Are you using that ?

Yes, it's always been in full screen mode.

Offline

#7 2023-03-19 19:42:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: What step do I miss to enable HDR in Gamescope?

you are starting the gamescope session and are not trying to launch gamescope from another desktop environment right?

Last edited by V1del (2023-03-19 19:43:07)

Offline

#8 2023-03-20 11:52:39

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: What step do I miss to enable HDR in Gamescope?

V1del wrote:

you are starting the gamescope session and are not trying to launch gamescope from another desktop environment right?

Yes. The session itself is already in HDR mode, but the game isn't.

Last edited by laichiaheng (2023-03-20 11:53:12)

Offline

#9 2023-03-20 14:33:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: What step do I miss to enable HDR in Gamescope?

Which game? Does the game have HDR support itself in the first place?

Offline

#10 2023-03-20 16:26:36

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: What step do I miss to enable HDR in Gamescope?

V1del wrote:

Which game? Does the game have HDR support itself in the first place?

Elden Ring.
There is a HDR option in setting, but I can't enable it when my monitor is already in HDR mode which is triggered by the --hdr-enabled for gamescope.

Last edited by laichiaheng (2023-03-20 16:28:03)

Offline

#11 2023-03-23 22:18:19

RAMChYLD
Member
Registered: 2022-11-12
Posts: 1

Re: What step do I miss to enable HDR in Gamescope?

I just found this out a while ago.

gamescope only supports RADV on Arch currently. if you try to launch it using AMDVLK it will fail because the version of AMDVLK currenly on Arch release doesn't support one particular extension (VK_EXT_physical_device_drm).

Currently I fix it by adding the following alias to my .bashrc:

alias gamescope="VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json gamescope"

this forces gamescope to launch with RADV instead of AMDVLK. This requires both RADV and AMDVLK to be installed, which apparently is already your case.

Note tho, the current version of AMDVLK is 2023.Q1.3 and should support the missing extension already, but for some reason Arch is still stuck on 2022.Q4.4, which doesn't, AMDVLK only started supporting the extension in 2023.Q1.2.

AMDVLK-git itself appears to also be outdated and is based on 2022.Q4.4 as well...

Last edited by RAMChYLD (2023-03-23 22:24:50)

Offline

#12 2023-03-24 16:14:48

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: What step do I miss to enable HDR in Gamescope?

RAMChYLD wrote:

I just found this out a while ago.

gamescope only supports RADV on Arch currently. if you try to launch it using AMDVLK it will fail because the version of AMDVLK currenly on Arch release doesn't support one particular extension (VK_EXT_physical_device_drm).

Currently I fix it by adding the following alias to my .bashrc:

alias gamescope="VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json gamescope"

this forces gamescope to launch with RADV instead of AMDVLK. This requires both RADV and AMDVLK to be installed, which apparently is already your case.

Note tho, the current version of AMDVLK is 2023.Q1.3 and should support the missing extension already, but for some reason Arch is still stuck on 2022.Q4.4, which doesn't, AMDVLK only started supporting the extension in 2023.Q1.2.

AMDVLK-git itself appears to also be outdated and is based on 2022.Q4.4 as well...

I have tried both AMDVLK and RADV.
I just found out that HDR worked on Resident Evil 4 Remake, so it is an issue from Elden Ring.

Last edited by laichiaheng (2023-03-24 16:17:26)

Offline

#13 2023-03-26 12:26:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: What step do I miss to enable HDR in Gamescope?

So HDR on gamescope is working for you now but not in elden ring ?

Please change the thread title to reflect that.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB