Created
August 3, 2021 03:48
-
-
Save bergkvist/26605aae4b11f9105d0d8e97a90039f2 to your computer and use it in GitHub Desktop.
Avoid vertical screen tears when you have an Nvidia Graphics card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
s="$(nvidia-settings -q CurrentMetaMode -t)" | |
MODE="${1:-On}" | |
if [[ "${s}" != "" ]]; then | |
s="${s#*" :: "}" | |
nvidia-settings -a CurrentMetaMode="${s//\}/, ForceCompositionPipeline=$MODE, ForceFullCompositionPipeline=$MODE\}}" | |
fi | |
# Check if composition pipeline is enabled: | |
# nvidia-settings -q CurrentMetaMode -t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment