NVIDIA: Difference between revisions
imported>Moritzschaefer No edit summary |
imported>Sorrel →Troubleshooting: document hardware.nvidia.powerManagement.enable |
||
Line 313: | Line 313: | ||
vsync = true; | vsync = true; | ||
</nowiki>}} | </nowiki>}} | ||
=== Fix graphical corruption on suspend/resume === | |||
By default only a small portion of VRAM is saved when suspending the system [https://download.nvidia.com/XFree86/Linux-x86_64/460.73.01/README/powermanagement.html]. This can cause graphical issues in some applications when resuming from suspend. To fix it, enable systemd-based suspend, which will save and restore all of VRAM: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
hardware.nvidia.powerManagement.enable = true; | |||
</nowiki>}} | |||
If you have a modern Nvidia GPU (Turing [https://en.wikipedia.org/wiki/Turing_(microarchitecture)#Products_using_Turing] or later), you may also want to investigate the <code>hardware.nvidia.powerManagement.finegrained</code> option: [https://download.nvidia.com/XFree86/Linux-x86_64/460.73.01/README/dynamicpowermanagement.html] | |||
== See also == | == See also == |