Browse Source

Fix screen tearing

main
parent
commit
29800083bc
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 10
      README.org
  2. 10
      modules/nvidia.nix

10
README.org

@ -1207,11 +1207,11 @@ in {
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
# Fix screen tearing. # Fix screen tearing.
# services.xserver.screenSection = ''
# Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
# Option "AllowIndirectGLXProtocol" "off"
# Option "TripleBuffer" "on"
# '';
services.xserver.screenSection = ''
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
'';
# Configure `offload-mode'. # Configure `offload-mode'.
hardware.nvidia.prime = { hardware.nvidia.prime = {

10
modules/nvidia.nix

@ -25,11 +25,11 @@ in {
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
# Fix screen tearing. # Fix screen tearing.
# services.xserver.screenSection = ''
# Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
# Option "AllowIndirectGLXProtocol" "off"
# Option "TripleBuffer" "on"
# '';
services.xserver.screenSection = ''
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
'';
# Configure `offload-mode'. # Configure `offload-mode'.
hardware.nvidia.prime = { hardware.nvidia.prime = {

Loading…
Cancel
Save