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

POC: vulkan-gaming with HDR using latest gamescope and linux-hdr #215343

Closed
wants to merge 6 commits into from

Conversation

PedroHLC
Copy link
Member

@PedroHLC PedroHLC commented Feb 8, 2023

I won't merge this PR while all the packages here modified haven't released a new stable version.

But, we can use it as a milestone, or an always up-to-date guide for HDR.

I'm aware ofborg will tag some maintainers, sorry. Please don't hesitate to remove yourself from review and unsubscribe.

This depends on #187507 (included here)

How to use it?

  1. Merge this to your nixpkgs or use my branch as nixpkgs source.
  2. Add this to your setup:
{ lib, ... }:
{
  # GameScope session
  programs.gamescope.enable = true;
  programs.steam.gamescopeSession.enable = true;

  specialisation.hdr.configuration = {
    system.nixos.tags = [ "hdr" ];
    boot.kernelPackages = lib.mkForce pkgs.linuxPackages_testing_hdr;
    environment.variables =
      {
        DXVK_HDR = "1";
        ENABLE_GAMESCOPE_WSI = "1";
      };
    programs.gamescope.args = lib.mkForce [ "--rt" "--hdr-enabled" ];
  };
}
  1. Reboot, picking the new HDR entry in your bootloader.
  2. Select the new “Steam Gamescope” session, or, login in tty3 and launch steam-gamescope.
  3. Your display should change to HDR mode automatically, Steam colors should be fine.
  4. Search in your steam library for the "Steam Linux Runtime - Soldier" (should be under "Tools") and change in "Properties" > "Beta" for opt into "client_beta".
  5. Go game something, use recent Proton versions (experimental or GE)!

@github-actions github-actions bot added 6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Feb 8, 2023
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Feb 8, 2023
@PedroHLC PedroHLC mentioned this pull request Feb 14, 2023
12 tasks
@PedroHLC PedroHLC force-pushed the gamescope-hdr branch 4 times, most recently from bb32723 to 0d0dcaa Compare February 17, 2023 22:34
@PedroHLC PedroHLC force-pushed the gamescope-hdr branch 3 times, most recently from 1d9fd70 to 76b82c3 Compare March 7, 2023 22:06
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1 10.rebuild-darwin: 1-10 labels Mar 7, 2023
@PedroHLC PedroHLC force-pushed the gamescope-hdr branch 2 times, most recently from 956e027 to 8e430a1 Compare March 13, 2023 14:05
@PedroHLC
Copy link
Member Author

Thanks to @Scrumplex with #219548 we have most of what was needed here in master now, this time using tagged versions + patches.

@ofborg ofborg bot requested a review from Scrumplex March 17, 2023 17:16
@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Mar 17, 2023
@PedroHLC
Copy link
Member Author

Most of this is already merged upstream now, except linux_hdr which will be unstable until upstreamed and does not comply with nixpkgs. If anyone ever needs it, I keep it updated and cached in this project: https://github.com/chaotic-cx/nyx

@PedroHLC PedroHLC closed this May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 101-500 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants