「HDR モニターのサポート」の版間の差分
ナビゲーションに移動
検索に移動
Kusanaginoturugi (トーク | 投稿記録) (typo) |
Kusanaginoturugi (トーク | 投稿記録) (記事を更新) |
||
2行目: | 2行目: | ||
[[Category:X サーバー]] |
[[Category:X サーバー]] |
||
[[en:HDR video playback]] |
[[en:HDR video playback]] |
||
+ | This page will serve as a guide to the current state of HDR monitor support on Linux. To better understand the challenges involved you can watch the video in this article [https://www.phoronix.com/news/AMD-2022-Linux-HDR-Display-Hard]. |
||
+ | |||
+ | == HDR ビデオのサポート == |
||
Linux での HDR サポートは、作業中ではありますが、ディスプレイサーバーにはまだ実装されていません。 |
Linux での HDR サポートは、作業中ではありますが、ディスプレイサーバーにはまだ実装されていません。 |
||
9行目: | 12行目: | ||
* DRM クライアントは HDR メタデータを直接渡すことができますが、これは通常のユーザースペースクライアントからは利用できず、専用のソフトウェアのみが利用可能です。https://gitlab.freedesktop.org/mesa/drm/-/blob/main/include/drm/drm_mode.h#L809 |
* DRM クライアントは HDR メタデータを直接渡すことができますが、これは通常のユーザースペースクライアントからは利用できず、専用のソフトウェアのみが利用可能です。https://gitlab.freedesktop.org/mesa/drm/-/blob/main/include/drm/drm_mode.h#L809 |
||
+ | |||
+ | *System76 have announced their new [[Rust]] based Cosmic Desktop will have a brand new [[Wayland#Compositors|Wayland compositor]] (based on [https://github.com/Smithay/smithay Smithay]) which will include support for HDR as well as fractional scaling and HiDPI, see https://blog.system76.com/post/november-at-system76-products-promos--cosmic-de. |
||
+ | |||
+ | == HDR gaming support == |
||
+ | |||
+ | Since currently neither Wayland nor X11 offer an API that fully supports HDR, your games also wont be able to display correct HDR content on them. Valve's steam compositor gamescope does offer experimental HDR support. To try out valves steam client running trough the HDR capable gamescope do [https://www.reddit.com/r/linux_gaming/comments/10m2gyx/guide_alpha_test_hdr_on_linux/]: |
||
+ | |||
+ | # use a HDR capable display |
||
+ | # use an AMD GPU. HDR is currently only supported on [[AMDGPU]]. |
||
+ | # use [[DXVK]] version 2.1 or later |
||
+ | # use [https://github.com/HansKristian-Work/vkd3d-proton/releases VKD3D-Proton] version 2.8 or later |
||
+ | # use either proton experimental or proton GE version 44 and higher. Both come packaged with sufficient DXVK and VKD3D versions. |
||
+ | # install {{aur|gamescope-git}} |
||
+ | # use a patched version of {{aur|gamescope-session-git}} as described in [https://www.reddit.com/r/linux_gaming/comments/10m2gyx/guide_alpha_test_hdr_on_linux/]. The patch changes the configuration file {{ic|/usr/share/gamescope-session/gamescope-session-script}} to include instructions for gamescope and dxvk to enable HDR. For DXVK it sets the [[environment variable]] {{ic|<nowiki>DXVK_HDR=1</nowiki>}} and to gamescope it passes the argument {{ic|--hdr-enabled}}. If you want to apply the changes in the config file manually replicate all the changes of the [https://github.com/PikaOS-Linux/pkgs-baseos/blob/main/gamescope-session/gamescope-session/debian/patches/0001-update-to-work-on-nobara-with-hdr.patch patch here]. |
||
+ | # open your steam library, filter for tools and right click on '''steam linux runtime soldier''' open it's properties and click on BETAS, choose "client_beta" |
||
+ | # use a linux kernel with [https://gitlab.freedesktop.org/JoshuaAshton/linux-hdr/-/tree/josh-hdr-colorimetry/ Josh Ashton Kernel Patches], see [[Kernel/Traditional compilation]] |
||
+ | |||
+ | Now you are all set up. Go into a new tty by pressing Ctrl+Alt+F2, log in and run {{bc|$ gamescope-session}} |
||
+ | to start the [https://github.com/ChimeraOS/gamescope-session standalone steam session] in HDR. If networking doesnt work you can fix it by installing and enabling [[NetworkManager]]. |
||
{{TranslationStatus|HDR video playback|2022/06/01|730836}} |
{{TranslationStatus|HDR video playback|2022/06/01|730836}} |
2023年5月8日 (月) 17:28時点における版
This page will serve as a guide to the current state of HDR monitor support on Linux. To better understand the challenges involved you can watch the video in this article [1].
HDR ビデオのサポート
Linux での HDR サポートは、作業中ではありますが、ディスプレイサーバーにはまだ実装されていません。
- X.org (および Xorg クライアント): ディスプレイに HDR メタデータを渡すためのサポートはありません。https://gitlab.freedesktop.org/xorg/xserver/-/issues/1037#note_521100 を参照してください。
- Wayland (および Wayland クライアント): HDR メタデータをディスプレイに渡すためのサポートはありません。https://gitlab.freedesktop.org/wayland/weston/-/issues/467 と https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14 を参照してください。
- DRM クライアントは HDR メタデータを直接渡すことができますが、これは通常のユーザースペースクライアントからは利用できず、専用のソフトウェアのみが利用可能です。https://gitlab.freedesktop.org/mesa/drm/-/blob/main/include/drm/drm_mode.h#L809
- System76 have announced their new Rust based Cosmic Desktop will have a brand new Wayland compositor (based on Smithay) which will include support for HDR as well as fractional scaling and HiDPI, see https://blog.system76.com/post/november-at-system76-products-promos--cosmic-de.
HDR gaming support
Since currently neither Wayland nor X11 offer an API that fully supports HDR, your games also wont be able to display correct HDR content on them. Valve's steam compositor gamescope does offer experimental HDR support. To try out valves steam client running trough the HDR capable gamescope do [2]:
- use a HDR capable display
- use an AMD GPU. HDR is currently only supported on AMDGPU.
- use DXVK version 2.1 or later
- use VKD3D-Proton version 2.8 or later
- use either proton experimental or proton GE version 44 and higher. Both come packaged with sufficient DXVK and VKD3D versions.
- install gamescope-gitAUR
- use a patched version of gamescope-session-gitAUR as described in [3]. The patch changes the configuration file
/usr/share/gamescope-session/gamescope-session-script
to include instructions for gamescope and dxvk to enable HDR. For DXVK it sets the environment variableDXVK_HDR=1
and to gamescope it passes the argument--hdr-enabled
. If you want to apply the changes in the config file manually replicate all the changes of the patch here. - open your steam library, filter for tools and right click on steam linux runtime soldier open it's properties and click on BETAS, choose "client_beta"
- use a linux kernel with Josh Ashton Kernel Patches, see Kernel/Traditional compilation
Now you are all set up. Go into a new tty by pressing Ctrl+Alt+F2, log in and run
$ gamescope-session
to start the standalone steam session in HDR. If networking doesnt work you can fix it by installing and enabling NetworkManager.