From 2cbf8a918bd2590212f2b752259c3ce30b84cd30 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 1 Dec 2022 10:17:56 +0100 Subject: [PATCH] Enable full composition pipeline to reduce screen tearing --- machines/mimir/hardware-configuration.nix | 25 ++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/machines/mimir/hardware-configuration.nix b/machines/mimir/hardware-configuration.nix index 3adc75e..157b30e 100644 --- a/machines/mimir/hardware-configuration.nix +++ b/machines/mimir/hardware-configuration.nix @@ -50,5 +50,28 @@ }; }; - services.xserver.videoDrivers = [ "nvidia" ]; + services.xserver = { + videoDrivers = [ "nvidia" ]; + + # Section "Screen" + # Identifier "Screen0" + # Device "Device0" + # Monitor "Monitor0" + # DefaultDepth 24 + # Option "Stereo" "0" + # Option "nvidiaXineramaInfoOrder" "DFP-2" + # Option "metamodes" "DP-4: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}" + # Option "SLI" "Off" + # Option "MultiGPU" "Off" + # Option "BaseMosaic" "off" + # SubSection "Display" + # Depth 24 + # EndSubSection + # EndSection + + screenSection = '' + Option "metamodes" "DP-0: nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-4: nvidia-auto-select +3840+0 {ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}" + Option "TripleBuffer" "On" + ''; + }; }