From f0aabeee50a25d6d8b9ff35c88123670139eb956 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Mon, 1 Jul 2024 14:08:09 +0200 Subject: [PATCH] nvidia: powerManagement.enable => true --- modules/system/hardware/nvidia/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/hardware/nvidia/default.nix b/modules/system/hardware/nvidia/default.nix index 64fbeed..f2eef9b 100644 --- a/modules/system/hardware/nvidia/default.nix +++ b/modules/system/hardware/nvidia/default.nix @@ -25,7 +25,11 @@ in modesetting.enable = true; # Nvidia power management. Experimental, and can cause sleep/suspend to fail. - powerManagement.enable = false; + # Enable this if you have graphical corruption issues or application crashes after waking + # up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead + # of just the bare essentials. + powerManagement.enable = true; + # Fine-grained power management. Turns off GPU when not in use. # Experimental and only works on modern Nvidia GPUs (Turing or newer). powerManagement.finegrained = false;