579: Enable NVIDIA power management for Dell XPS 7590 r=Mic92 a=ghisvail



Co-authored-by: Ghislain Vaillant <ghisvail@users.noreply.github.com>
This commit is contained in:
bors[bot] 2023-03-09 08:11:42 +00:00 committed by GitHub
commit 7ba21e76d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,11 +5,21 @@
../../../../common/gpu/nvidia/prime.nix ../../../../common/gpu/nvidia/prime.nix
]; ];
hardware.nvidia.prime = { hardware.nvidia = {
# Bus ID of the Intel GPU. powerManagement = {
intelBusId = lib.mkDefault "PCI:0:2:0"; # Enable NVIDIA power management.
enable = lib.mkDefault true;
# Bus ID of the NVIDIA GPU. # Enable dynamic power management.
nvidiaBusId = lib.mkDefault "PCI:1:0:0"; finegrained = lib.mkDefault true;
};
prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
}; };
} }