Screen Tearing NVIDIA Optimus

Hello, I'm currently using Garuda with the MATE desktop and have no issues except for one - Screen Tearing. I have an external display with 75hz that I use as the primary monitor, but screen tearing occurs on the internal display, too.

Any tips?
Laptop specs:
i5-6200u
GeForce 920MX
8GB 2133mhz ram

read

post the inxi here


and
:slight_smile:

1 Like

inxi:

System:    Kernel: 5.10.1-103-tkg-bmq x86_64 bits: 64 compiler: gcc v: 10.2.0
           parameters: intel_pstate=passive BOOT_IMAGE=/@/boot/vmlinuz-linux-tkg-bmq
           root=UUID=70e4b07a-ad2d-4154-8338-df45ddcf24dc rw rootflags=subvol=@ quiet splash
           rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
           resume=UUID=b547f3ae-584b-4fe7-93cd-9bec46bef8c2 loglevel=3
           Desktop: MATE 1.24.1 info: mate-panel wm: marco 1.24.1 dm: LightDM 1.30.0
           Distro: Garuda Linux
Machine:   Type: Laptop System: LENOVO product: 80SM v: Lenovo ideapad 310-15ISK
           serial: <filter> Chassis: type: 10 v: Lenovo ideapad 310-15ISK serial: <filter>
           Mobo: LENOVO model: Toronto 5A2 v: 31900002 WIN serial: <filter>
           UEFI [Legacy]: LENOVO v: 0XCN42WW date: 04/21/2017
Battery:   ID-1: BAT0 charge: 24.2 Wh condition: 24.9/30.6 Wh (81%) volts: 8.4/7.6
           model: CPT-COS 1 L15C2PB5 type: Li-poly serial: <filter> status: Unknown
CPU:       Info: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP arch: Skylake
           family: 6 model-id: 4E (78) stepping: 3 microcode: E2 L2 cache: 3 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19217
           Speed: 2300 MHz min/max: 400/2300 MHz Core speeds (MHz): 1: 2300 2: 2300 3: 2300
           4: 2300
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable
           Type: meltdown mitigation: PTI
           Type: spec_store_bypass
           mitigation: Speculative Store Bypass disabled via prctl and seccomp
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW,
           STIBP: conditional, RSB filling
           Type: srbds mitigation: Microcode
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Lenovo driver: i915 v: kernel
           bus ID: 00:02.0 chip ID: 8086:1916
           Device-2: NVIDIA GM108M [GeForce 920MX] vendor: Lenovo driver: nvidia v: 455.45.01
           alternate: nouveau,nvidia_drm bus ID: 03:00.0 chip ID: 10de:134f
           Device-3: Syntek EasyCamera type: USB driver: uvcvideo bus ID: 1-4:7
           chip ID: 174f:2408
           Display: x11 server: X.Org 1.20.10 compositor: marco v: 1.24.1
           driver: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa display ID: :0
           screens: 1
           Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.0x9.4")
           s-diag: 449mm (17.7")
           Monitor-1: DP-1 res: 1440x900 dpi: 90 size: 408x255mm (16.1x10.0")
           diag: 481mm (18.9")
           OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 20.3.1
           direct render: Yes
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel
           v: kernel alternate: snd_soc_skl bus ID: 00:1f.3 chip ID: 8086:9d70
           Sound Server: ALSA v: k5.10.1-103-tkg-bmq
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo
           driver: r8169 v: kernel port: 4000 bus ID: 01:00.0 chip ID: 10ec:8168
           IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Lenovo
           driver: ath10k_pci v: kernel port: 4000 bus ID: 02:00.0 chip ID: 168c:0042
           IF: wlp2s0 state: down mac: <filter>
           Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 1-7:11 chip ID: 0cf3:e360
Drives:    Local Storage: total: 1.13 TiB used: 492.47 GiB (42.6%)
           SMART Message: Required tool smartctl not installed. Check --recommends
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS240G2G0A-00JH30
           size: 223.57 GiB block size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
           serial: <filter> rev: 0400
           ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD10JPCX-24UE4T0
           size: 931.51 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
           serial: <filter> rev: 1A01
Partition: ID-1: / raw size: 214.77 GiB size: 214.77 GiB (100.00%) used: 83.82 GiB (39.0%)
           fs: btrfs dev: /dev/sda1 maj-min: 8:1
           ID-2: /home raw size: 214.77 GiB size: 214.77 GiB (100.00%) used: 83.82 GiB (39.0%)
           fs: btrfs dev: /dev/sda1 maj-min: 8:1
           ID-3: /var/log raw size: 214.77 GiB size: 214.77 GiB (100.00%)
           used: 83.82 GiB (39.0%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
           ID-4: /var/tmp raw size: 214.77 GiB size: 214.77 GiB (100.00%)
           used: 83.82 GiB (39.0%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Swap:      Kernel: swappiness: 10 (default 60) cache pressure: 75 (default 100)
           ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
           dev: /dev/sda2 maj-min: 8:2
           ID-2: swap-2 type: zram size: 1.92 GiB used: 9.3 MiB (0.5%) priority: 32767
           dev: /dev/zram0
           ID-3: swap-3 type: zram size: 1.92 GiB used: 9.4 MiB (0.5%) priority: 32767
           dev: /dev/zram1
           ID-4: swap-4 type: zram size: 1.92 GiB used: 8.5 MiB (0.4%) priority: 32767
           dev: /dev/zram2
           ID-5: swap-5 type: zram size: 1.92 GiB used: 8.8 MiB (0.4%) priority: 32767
           dev: /dev/zram3
Sensors:   System Temperatures: cpu: 63.5 C mobo: N/A
           Fan Speeds (RPM): N/A
Info:      Processes: 291 Uptime: 11h 22m wakeups: 2 Memory: 7.68 GiB used: 4.21 GiB (54.8%)
           Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: pacman: 1516 lib: 433
           Shell: Zsh v: 5.8 running in: alacritty inxi: 3.2.01

Press Pencil and look what I changed, its all in the wiki link I post.

Check Mate Troubleshooting. It suggests to disable compositing with nvidia. If this solves tearing, maybe use picom for compositing.

2 Likes

Yes, that solves the issue, but I don't really know how to setup picom
Could you please tell me how?

Normally, you would include a picom command in your autostart applications/scripts (the Mate way?).
I suggest you test default settings at first. Then depending on your specific needs (values, multihead etc.), find which configuration fits best and create a conf file in your home dir, following Archwiki advice and reading the manual.

1 Like

Yeah, I figured it out. Thanks for the help guys! Merry Christmas by the way!

2 Likes