This configuration should create a tear free setup.

/etc/profile

export __GL_YIELD="USLEEP"

/usr/share/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
    Identifier "Default nvidia Device"
    Driver "nvidia"
    Option "NoLogo" "True"
    Option "CoolBits" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Default nvidia Device"
    DefaultDepth    24
    Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

for two displays
/usr/share/X11/xorg.conf.d/20-nvidia.conf

Section "Device"
    Identifier "Default nvidia Device"
    Driver "nvidia"
    Option "NoLogo" "True"
    Option "CoolBits" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Default nvidia Device"
    DefaultDepth    24
    Option         "metamodes" "DVI-D-0: nvidia-auto-select +1920+0 { ForceFullCompositionPipeline = On }, HDMI-0: nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

set DPI to 96
/usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf

[SeatDefaults]
# Dump core
xserver-command=X -core -dpi 96

set primary display for lightdm
/usr/share/lightdm/lightdm.conf.d/40-lightdm-kde-greeter.conf

[SeatDefaults]
greeter-session=lightdm-kde-greeter
display-setup-script=/usr/bin/xrandr --output DVI-D-0 --primary --right-of HDMI-0

set Finnish keyboard layout for lightdm
/usr/share/lightdm/lightdm.conf.d/40-lightdm-kde-greeter.conf

greeter-setup-script=/usr/bin/setxkbmap fi

lightdm: /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
lightdm-kde-greeter: /usr/share/lightdm/lightdm.conf.d/40-lightdm-kde-greeter.conf

set SyncToVBlank NVidia setting

$ nvidia-settings --assign="SyncToVBlank=1"

  Attribute 'SyncToVBlank' (hostname:0.0) assigned value 1.
$ nvidia-settings -q SyncToVBlank

  Attribute 'SyncToVBlank' (hostname:0.0): 1.
    'SyncToVBlank' is a boolean attribute; valid values are: 1 (on/true) and 0 (off/false).
    'SyncToVBlank' can use the following target types: X Screen.
Advertisements