From 29800083bcd276115ee2af20d08d60e5a0275acd Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sun, 15 Aug 2021 10:56:04 -0400 Subject: [PATCH] Fix screen tearing --- README.org | 10 +++++----- modules/nvidia.nix | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index cbec773..363c404 100644 --- a/README.org +++ b/README.org @@ -1207,11 +1207,11 @@ in { services.xserver.videoDrivers = [ "nvidia" ]; # 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'. hardware.nvidia.prime = { diff --git a/modules/nvidia.nix b/modules/nvidia.nix index 68cfa3b..6b7c399 100644 --- a/modules/nvidia.nix +++ b/modules/nvidia.nix @@ -25,11 +25,11 @@ in { services.xserver.videoDrivers = [ "nvidia" ]; # 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'. hardware.nvidia.prime = {