You are not logged in.

#1 2016-08-05 04:24:21

barmadrid
Member
Registered: 2016-07-26
Posts: 22

Nvidia GTX 860M and screen tearing!

I am experiencing screen tearing with my Nvidia 860M card in Gnome 3.20.2.
I followed the Arch guide regarding Nvidia tearing, but it did not help. Tearing while watching videos and scrolling (Firefox or file manager, both).

Here is my "screen" section of 20-nvidia.conf:

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "1920x1080_60 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
    Option         "AllowIndirectGLXProtocol" "off"
    Option         "TripleBuffer" "on"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Running latest Nvidia driver 367.35 and Kernel 4.6.4-1

Any help on fixing the tearing?

Offline

#2 2016-08-05 16:46:06

barmadrid
Member
Registered: 2016-07-26
Posts: 22

Re: Nvidia GTX 860M and screen tearing!

It seems like removing that "metamodes" line from 20-nvidia.conf and running this command:

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

is fixing the problem, but how do I make it to autostart each time?

Offline

#3 2016-08-12 22:53:06

colinkeenan
Member
From: Kansas City, MO USA
Registered: 2013-06-13
Posts: 213
Website

Re: Nvidia GTX 860M and screen tearing!

For me, I did 2 things following the wiki (but notice a different location than stated by the wiki for 20-nvidia.conf), and it stopped tearing:

/home/colin %cat /etc/X11/xorg.conf.d/confs/20-nvidia.conf 
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 358.16  (buildmeister@swio-display-x64-rhel04-12)  Mon Nov 16 19:59:11 PST 2015

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
		Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
		Option         "AllowIndirectGLXProtocol" "off"
		Option         "TripleBuffer" "on"
EndSection

and

/home/colin %cat /etc/profile.d/kwin.sh
export KWIN_TRIPLE_BUFFER=1

The 20-nvidia.conf is basically what you tried, (but was yours in /etc/X11/xorg.conf.d/confs/?). The extra step I took was to create /etc/profile.d/kwin.sh with that one line in it. Of course, my tearing problem was in KDE Plasma which is why I created kwin.sh. I don't know if there's an extra step like this that you can take with Gnome.

Last edited by colinkeenan (2016-08-12 22:58:21)

Offline

#4 2016-08-12 23:16:56

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: Nvidia GTX 860M and screen tearing!

barmadrid wrote:

It seems like removing that "metamodes" line from 20-nvidia.conf and running this command:

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

is fixing the problem, but how do I make it to autostart each time?


This line of code does the same thing as adding "the metamodes line" to the 20-nvidia.conf file. Make sure the conf file is in the correct location.


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

Board footer

Powered by FluxBB