NVIDIA: Difference between revisions

imported>Jonringer
m Add other nvidia packge options
imported>Flexagoon
Add troubleshooting section
Line 293: Line 293:
     hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
     hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_390;
}
}
</nowiki>}}
== Troubleshooting ==
=== Fix screen tearing ===
You may often incounter screen tearing or artifacts when using proprietary Nvidia drivers. You can fix that by forcing full composition pipeline.
{{note|This has been reported to reduce the performance of some OpenGL applications and may produce issues in WebGL. It also drastically increases the time the driver needs to clock down after load.}}
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.xserver.screenSection = ''
  Option        "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
  Option        "AllowIndirectGLXProtocol" "off"
  Option        "TripleBuffer" "on"
'';
</nowiki>}}
=== Fix app flickering with Picom ===
{{file|~/.config/picom/picom.conf|conf|<nowiki>
unredir-if-possible = false;
backend = "xrender";
vsync = true;
</nowiki>}}
</nowiki>}}