K1aymore / Nixos-Config

My NixOS config for server/laptop/desktop
MIT License
14 stars 1 forks source link

HDR question #1

Open mrnetlex opened 4 months ago

mrnetlex commented 4 months ago

It's not a issue per se, but I have seen in commit history that you got HDR running on KDE 6 with VK_HDR_LAYER. Should it be enough to do same you did in this commit, because if I replicate this, MPV (with proper config) still wouldn't output in HDR. Any help would be appreciated.

K1aymore commented 4 months ago

Yeah, my current PC setup does have HDR support, it should work with that commit as well. My MPV config is in packages/gui.nix.

It might not work if you don't have an AMD GPU, although I've heard you can get it working with Nvidia.

K1aymore commented 4 months ago

Make sure to add VK_HDR_LAYER as a package with

environment.systemPackages = [
  (pkgs.callPackage ./VK_hdr_layer.nix {})
];

rather than just adding it to your imports.

I have an RX 7600, idk what other GPUs are supported.

mrnetlex commented 4 months ago

I have AMD GPU too (RX 6700XT). Before official release of KDE 6, I was able to boot to Arch, install this vulkan layer from AUR and everything was working fine, so on hardware level everything is good to go. I'm generally happy with NixOS and don't want to distrohop. I experimented some more and find out some things, but would like to compare some things if it wasn't a problem.

  1. If you run MPV with VK_LOADER_DEBUG=error,warn,info do VK_HDR_LAYER is loaded for you? (Or could you just copy what get.)
  2. Does changing SDR brightness in KDE settings change how video looks for you in MPV?
K1aymore commented 3 months ago
  1. If I run it with a video it does say Inserted device layer "VK_LAYER_hdr_wsi" (/nix/store/575ynjkjsw3n4klwdymqjnrxv681s7g7-vulkan-hdr-layer-63d2eec/lib/libVkLayer_hdr_wsi.so), but if I run MPV without a video it just says ffmpeg info and nothing about hdr.
  2. No it does not, that's how I know it's using actual HDR.

Are you using kde2nix or the actual merged plasma6 module? Both should work but you could try using my latest commit with my flake.lock idk.

mrnetlex commented 3 months ago

And in my case Inserted device layer ... is not present. At this point I have no idea why:

I think I should just assume that HDR video in linux at this point are hacks on top of the hacks and I'm just unlucky. Probably best wait for proper implementation or reinstall (maybe there are some leftovers from plasma5 and it shouldn't be too painful with nix).

mrnetlex commented 3 months ago

Ok, I kinda solved it, but I have no idea why does it work like that. When I did my testing before I've always launched files through terminal. Now I tried to open a file with Dolphin for the first time and I got proper HDR. I don't know what could be different, but at least it works now.