Screen Tearing NVIDIA

Hi, newbie here

I’ve got some problems with screen tearing and NVIDIA and was hoping I
could find some help here

This is a Lenovo Y700 laptop with a GeForce GTX 960M card

In short: After migrating from win 10 to garuda KDE it shows tearing all over the system

I had a look around forum threads and the Arch wiki, but feel like I’m still missing some important fundamental knowledge. I have zero knowledge
of how this works or how to test it, so please bear with me.

I have found what I think is somehow related to the problem but I'm not really sure:
Missing UI X server panel in GUI nvidia X server settings.
At least both the Arch wiki and other sources reference items such as this one but I can't find them.

Following the Arch wiki on avoiding screen tearing , I tried running:

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

But when i try to assign this i get:

ERROR: Error resolving target specification '' (No targets match target specification), specified in
assignment 'CurrentMetaMode=nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }'.

I have tried searching the internet for more information on this, but
can’t seem to find out what this means.

Here is some system info:

$ nvidia-smi

Tue May 25 13:28:57 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   36C    P8    N/A /  N/A |      3MiB /  4046MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2319      G   /usr/lib/Xorg                       2MiB |
+-----------------------------------------------------------------------------+
$ lspci -k | grep -E "(VGA|3D)"

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
$ xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
Provider 1: id: 0x23e cap: 0x0 crtcs: 0 outputs: 0 associated providers: 0 name:NVIDIA-G0
$ glxinfo | grep "OpenGL renderer"


OpenGL renderer string: Mesa Intel(R) HD Graphics 530 (SKL GT2)
$ inxi -Fxxxz

System:    Kernel: 5.12.6-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0 Desktop: KDE Plasma 5.21.5 
tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux 
base: Arch Linux 
Machine:   Type: Laptop System: LENOVO product: 80Q0 v: Lenovo ideapad Y700-17ISK serial: <filter> 
Chassis: type: 10 v: Lenovo ideapad Y700-17ISK serial: <filter> 
Mobo: LENOVO model: Allsparks 7A v: SDK0J40688 WIN serial: <filter> UEFI: LENOVO v: CDCN54WW 
date: 06/13/2017 
Battery:   ID-1: BAT0 charge: 45.8 Wh (100.0%) condition: 45.8/60.0 Wh (76.3%) volts: 16.4 min: 14.8 
model: SMP L14M4P23 type: Li-ion serial: <filter> status: Full 
CPU:       Info: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP arch: Skylake-S rev: 3 cache: 
L2: 6 MiB 
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 41599 
Speed: 3466 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 3466 2: 3428 3: 3253 4: 3302 
5: 3512 6: 3293 7: 3300 8: 3302 
Graphics:  Device-1: Intel HD Graphics 530 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0 
chip-ID: 8086:191b class-ID: 0300 
Device-2: NVIDIA GM107M [GeForce GTX 960M] vendor: Lenovo driver: nvidia v: 465.31 
bus-ID: 01:00.0 chip-ID: 10de:139b class-ID: 0302 
Device-3: Acer Lenovo EasyCamera type: USB driver: uvcvideo bus-ID: 1-6:2 chip-ID: 5986:0672 
class-ID: 0e02 serial: <filter> 
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: modesetting,nvidia 
resolution: 1920x1080~60Hz s-dpi: 96 
OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 21.1.1 direct render: Yes 
Audio:     Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Lenovo driver: snd_hda_intel 
v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a170 class-ID: 0403 
Sound Server-1: ALSA v: k5.12.6-zen1-1-zen running: yes 
Sound Server-2: JACK v: 0.125.0 running: no 
Sound Server-3: PulseAudio v: 14.2 running: yes 
Sound Server-4: PipeWire v: 0.3.28 running: no 
Network:   Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel port: 4000 bus-ID: 08:00.0 
chip-ID: 8086:24f3 class-ID: 0280 
IF: wlp8s0 state: down mac: <filter> 
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 
v: kernel port: 3000 bus-ID: 09:00.0 chip-ID: 10ec:8168 class-ID: 0200 
IF: enp9s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 1-11:3 
chip-ID: 8087:0a2b class-ID: e001 
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter> 
Drives:    Local Storage: total: 1.03 TiB used: 28.75 GiB (2.7%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLW128HEGR-000L2 size: 119.24 GiB speed: 31.6 Gb/s
lanes: 4 rotation: SSD serial: <filter> rev: 1L1QCXB7 scheme: GPT
ID-2: /dev/sda vendor: Western Digital model: WD10SPCX-24HWST1 size: 931.51 GiB speed: 6.0 Gb/s
rotation: 5400 rpm serial: <filter> rev: 1A02 scheme: MBR
Partition: ID-1: / size: 101.99 GiB used: 28.75 GiB (28.2%) fs: btrfs dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 252 MiB used: 546 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1
ID-3: /home size: 101.99 GiB used: 28.75 GiB (28.2%) fs: btrfs dev: /dev/nvme0n1p2
ID-4: /var/log size: 101.99 GiB used: 28.75 GiB (28.2%) fs: btrfs dev: /dev/nvme0n1p2
ID-5: /var/tmp size: 101.99 GiB used: 28.75 GiB (28.2%) fs: btrfs dev: /dev/nvme0n1p2
Swap:      ID-1: swap-1 type: partition size: 17 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme0n1p3
ID-2: swap-2 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram0
ID-3: swap-3 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram1
ID-4: swap-4 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram2
ID-5: swap-5 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram3
ID-6: swap-6 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram4
ID-7: swap-7 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram5
ID-8: swap-8 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram6
ID-9: swap-9 type: zram size: 1.93 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram7
ID-10: swap-10 type: partition size: 14.65 GiB used: 0 KiB (0.0%) priority: 1024 dev: /dev/sda2
Sensors:   System Temperatures: cpu: 50.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:      Processes: 253 Uptime: 21m wakeups: 1 Memory: 15.46 GiB used: 2.1 GiB (13.6%) Init: systemd
v: 248 Compilers: gcc: 11.1.0 clang: 11.1.0 Packages: pacman: 1932 Shell: fish v: 3.2.2
default: Zsh v: 5.8 running-in: konsole inxi: 3.3.04

Thanks for any input you might have, and if you need to know anything
else, please don’t hesitate to ask! :smiley:

Have a look over here: https://wiki.archlinux.org/index.php/NVIDIA/Troubleshooting#Avoid_screen_tearing

5 Likes

Your nvidia drivers setup looks seriously out-of-normal.
How did you install nvidia drivers?
Post

mhwd -li
mhwd -l
pacman -Qs nvidia
1 Like

Thanks for responding jonathon and petsam,
I did try the first command line from the Arch Wiki

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

and got:

ERROR: Error resolving target specification '' (No targets match target specification), specified in assignment
'CurrentMetaMode=nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }'.

I dont have the Advanced button they are refering on the UI in X Server Display config GUI

but I did copy and rename the Xorg configuration file created by:

$ nvidia-xconfig

and following steps as well from the wiki

I installed the drivers from the Auto Install Proprietary Driver option in Hardware config on Garuda

$ mhwd -li
mhwd -l
pacman -Qs nvidia


> Installed PCI configs:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-linux            2021.02.19                true            PCI
video-nvidia-prime-render-offload            2021.02.01               false            PCI
video-optimus-manager            2021.04.19               false            PCI


Warning: No installed USB configs!
> 0000:09:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
network-r8168            2020.05.22                true            PCI


> 0000:01:00.0 (0302:10de:139b) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-optimus-manager            2021.04.19               false            PCI
video-nvidia-prime-render-offload            2021.02.01               false            PCI
video-nvidia-dkms            2020.12.19               false            PCI
video-hybrid-intel-nvidia-390xx-dkms-bumblebee            2020.12.07               false            PCI
video-nvidia-390xx-dkms            2020.12.07               false            PCI
video-linux            2021.02.19                true            PCI


> 0000:00:02.0 (0300:8086:191b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-optimus-manager            2021.04.19               false            PCI
video-nvidia-prime-render-offload            2021.02.01               false            PCI
video-hybrid-intel-nvidia-390xx-dkms-bumblebee            2020.12.07               false            PCI
video-linux            2021.02.19                true            PCI
video-modesetting            2020.07.13                true            PCI
video-vesa            2017.03.12                true            PCI


local/egl-wayland 1.1.7-1
EGLStream-based Wayland external platform
local/gwe 0.15.3-1
A system utility for controlling NVIDIA GPUs
local/lib32-libvdpau 1.4-1
Nvidia VDPAU library
local/lib32-nvidia-utils 465.31-1
NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia 465.31-1
OpenCL implemention for NVIDIA (32-bit)
local/libvdpau 1.4-1
Nvidia VDPAU library
local/libxnvctrl 465.27-1
NVIDIA NV-CONTROL X extension
local/mhwd-nvidia 465.27-1
mhwd-nvidia pci id
local/mhwd-nvidia-390xx 390.143-1
mhwd-nvidia-390xx PCI ID database
local/nvidia 465.31-4
NVIDIA drivers for linux
local/nvidia-dkms 465.31-1
NVIDIA drivers - module sources
local/nvidia-prime 1.0-4
NVIDIA Prime Render Offload configuration and utilities
local/nvidia-settings 465.27-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 465.31-1
NVIDIA drivers utilities
local/opencl-nvidia 465.31-1
OpenCL implemention for NVIDIA
local/xf86-video-nouveau 1.0.17-1 (xorg-drivers)
Open Source 3D acceleration driver for nVidia cards

You have to wait until a Garuda developer responds.
I can't help with this. Sorry.

3 Likes

I'll wait, thanks again and much appreciated.
I’ll keep fiddling and see what I find anyway.

In general you should not use the provided gui tools because they are known to cause issues. You can start by removing what you installed. Just goto Add/Remove Software and type nvidia in the search bar. Uninstall everything that you see. Then I recommend you check out this guide.

1 Like

Sorry for taking so long to respond!; Thanks for the guide, seems like the tearing is gone with the LTS kernel but is still present in the linux-zen and the linux (experimental) kernel.
Some UI elements are still missing in the Nvidia-settings GUI (X Server Information, the whole X Screen panel and X Server Display Config) but the GWE GUI shows GPU usage with the card for the first time.

I'll do some testing with games and stuff but seems that everything is ok.
Will mark this as solved and thank you to everyone who has helped me out with this. I hope it can help someone else in the future too.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.