From 7ff03271d7e3291c1aad75ed2603bf84db944beb Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 26 Dec 2024 17:47:33 +0100 Subject: [PATCH] hosts/solaire: fix wake-up issues with nvidia --- hosts/solaire/config/nvidia.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/solaire/config/nvidia.nix b/hosts/solaire/config/nvidia.nix index 1f2026e..00bc09d 100644 --- a/hosts/solaire/config/nvidia.nix +++ b/hosts/solaire/config/nvidia.nix @@ -2,11 +2,13 @@ hardware.graphics.enable = true; services.xserver.videoDrivers = ["nvidia"]; hardware.nvidia = { + open = false; modesetting.enable = true; - powerManagement.enable = false; - powerManagement.finegrained = false; - open = true; + powerManagement.enable = true; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.beta; }; + + # https://wiki.hyprland.org/Nvidia/#suspendwakeup-issues + boot.kernelParams = ["nvidia.NVreg_PreserveVideoMemoryAllocations=1"]; }