Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Avoid vertical screen tears when you have an Nvidia Graphics card
s="$(nvidia-settings -q CurrentMetaMode -t)"
if [[ "${s}" != "" ]]; then
s="${s#*" :: "}"
nvidia-settings -a CurrentMetaMode="${s//\}/, ForceCompositionPipeline=$MODE, ForceFullCompositionPipeline=$MODE\}}"
# 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