Screen Tearing with AMD/nVidia

I don’t tried, but I will try.

Yes, both are working well.

so use the full, should be better, if there are issues, switch to the non full …

Right, okey.

And, can I force it somehow on start, or I must check it manually every boot? Because when I restart the computer, it is unchecked.

no longer using nvidia … but it should be saved, isnt there some save current configuration option in those nvidia settings?

There’s Save to X Configuration file, I think it will be this.

so try that and see if it works … if not we have to add the option manually

Nope, it doesn’t. It’s saving to /etc/X11/xorg.conf, so I maked it throug sudo nano and after restart it’s still disabled.

ok, so post output from:
nvidia-settings --query CurrentMetaMode

Attribute 'CurrentMetaMode' (johnacek:0.0): id=50, switchable=yes,
source=RandR :: DPY-0: 1920x1080_75 @1920x1080 +1920+0 {ViewPortIn=1920x1080,
ViewPortOut=1920x1080+0+0}

create this file:
sudo nano /etc/X11/xorg.conf.d/20-nvidia.conf
and put there this:

Section "Device"
        Identifier "NVIDIA Card"
        Driver     "nvidia"
        VendorName "NVIDIA Corporation"
        BoardName  "NVIDIA TU117M"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    Option         "TripleBuffer"  "On"
    Option         "ForceFullCompositionPipeline" "on"
EndSection

save the file and reboot and test if you have screen tearing

Yes, I have, it’s tearing and it’s disabled in the nVidia settings

so edit the file and change the

    Option         "ForceFullCompositionPipeline" "on"

to look like this

    Option "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline = On}

save it, reboot and test

Nope, still nothing.

remove this xorg.conf:
sudo rm /etc/X11/xorg.conf
reboot and see if it helped

Nope, doesn’t helped.

i think its because of optimus…
edit again the 20-nvidia.conf, and remove anything from it, and replace it with this:

Section "OutputClass"
    Identifier "nvidia-antitear"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "ForceCompositionPipeline" "true"
EndSection

save it, reboot and test tear

Nope, still nothing

damn, so delete the file:
sudo rm /etc/X11/xorg.conf.d/20-nvidia.conf
and install this script:
pamac build nvidia-force-comp-pipeline
reboot and test tear