diff --git a/nvidia.nix b/nvidia.nix index f35deef..5297906 100644 --- a/nvidia.nix +++ b/nvidia.nix @@ -22,7 +22,12 @@ in # 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 = false; + powerManagement.enable = true; + # the following is from @tlater:matrix.tlater.net (Lix Off Topic, 2026-06-24) + # `powerManagement.enable` maps to this set of NVIDIA driver features: https://download.nvidia.com/XFree86/Linux-x86_64/610.43.02/README/powermanagement.html + # You can read through those docs yourself, but tl;dr: modern GPUs have more memory than can normally be stored on suspend, so they need a workaround. + # The modern open source drivers can use some cool kernel features that were behind the GPL lock beforehand to achieve that, the proprietary drivers are stuck with a hack. But basically, you always want to enable that option on NixOS. + # The `powermanagement.finegrained` stuff on the other hand has to do with multi-GPU setups. The two options should really not be grouped together like this. # Use the NVidia open source kernel module (not to be confused with the # independent third-party "nouveau" open source driver).