feat: trying to solve hardware acceleration issue by including libvdpau-va-gl driver support

So far this has not worked in VLC media player, with reasons unknown
This commit is contained in:
Zhongheng Liu 2024-08-13 12:51:43 +08:00
commit 24eb923bbb
No known key found for this signature in database

View file

@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
specialisation = { specialisation = {
@ -14,7 +15,12 @@
}; };
}; };
}; };
hardware.graphics.enable = true; hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
libvdpau-va-gl
];
};
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = { hardware.nvidia = {
prime = { prime = {
@ -27,8 +33,6 @@
}; };
forceFullCompositionPipeline = true; forceFullCompositionPipeline = true;
modesetting.enable = true; modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
# open = true; # open = true;
nvidiaSettings = true; nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.beta; package = config.boot.kernelPackages.nvidiaPackages.beta;