Micro stutter during video playback

Greetings,

I have recently installed Manjaro-Gnome. I chose the installation with proprietary drivers as I have an nvidia RTX 3060 ti in my system. I have everything setup and working. Steam games work, got my apps, drivers, printer, extensions and tweaks runing. The only thing is whenever I stream a video (youtube, netflix) I have notice micro stutters occuring; as if every few seconds a frame or 2 are skipped. Also I have noticed this to possibly be a global thing as if I drag a window around I will see the same kind of hickup happen there too. I have looked around trying to find a solution but didn’t find anyone else with the exact same problem. I am pretty new to linux and particulary manjaro. I had a fully working 18.04 pop installation working before switching to manjaro. Any help would be greatly appreciated.

By the way, I have tried the solution in this thread How to fix Nvidia screen tearing? - #4 by bogdancovaciu and still the same.

Here is my inxi info:

  Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64 
  root=UUID=15d6095e-96ae-4006-a6dd-b2b2778c0f5d rw quiet splash apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: GNOME 40.5 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B250M-A v: Rev X.0x 
  serial: <filter> UEFI: American Megatrends v: 1205 date: 05/11/2018 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.58 GiB used: 3.23 GiB (20.8%) 
  RAM Report: 
  permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i7-6700K bits: 64 type: MT MCP 
  arch: Skylake-S family: 6 model-id: 5E (94) stepping: 3 microcode: EA 
  cache: L2: 8 MiB bogomips: 64026 
  Speed: 800 MHz min/max: 800/4200 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon 
  art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts erms est f16c flush_l1d 
  fma fpu fsgsbase fxsr hle ht hwp hwp_act_window hwp_epp hwp_notify ibpb 
  ibrs ida intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx 
  monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq 
  pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed 
  rdtscp rep_good rtm sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 
  ssse3 stibp syscall tm tm2 tsc tsc_adjust tsc_deadline_timer vme x2apic 
  xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
  Type: l1tf mitigation: PTE Inversion 
  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 mitigation: Clear CPU buffers; SMT vulnerable 
Graphics:
  Device-1: NVIDIA vendor: ASUSTeK driver: nvidia v: 470.63.01 
  alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:2489 
  class-ID: 0300 
  Device-2: Logitech QuickCam Communicate Deluxe type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 1-8:4 chip-ID: 046d:0992 
  class-ID: 0102 serial: <filter> 
  Display: x11 server: X.org 1.20.13 compositor: gnome-shell driver: 
  loaded: nvidia resolution: <missing: xdpyinfo> 
  OpenGL: renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a2f0 
  class-ID: 0403 
  Device-2: NVIDIA GA104 High Definition Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 01:00.1 chip-ID: 10de:228b 
  class-ID: 0403 
  Device-3: C-Media USB PnP Audio Device type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-6.3:6 
  chip-ID: 0d8c:0134 class-ID: 0300 
  Device-4: Logitech QuickCam Communicate Deluxe type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 1-8:4 chip-ID: 046d:0992 
  class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.13.19-2-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.38 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel port: d000 
  bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp4s0 state: down mac: <filter> 
  Device-2: TP-Link Archer T2U PLUS [RTL8821AU] type: USB driver: rtl88XXau 
  bus-ID: 1-5:2 chip-ID: 2357:0120 class-ID: 0000 serial: <filter> 
  IF: wlp0s20f0u5 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 4.31 TiB used: 63.92 GiB (1.4%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Lexar model: SSD 
  size: 223.57 GiB block-size: physical: 512 B logical: 512 B 
  speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: R0515A0 
  temp: 44.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital 
  model: WD20EARS-00MVWB0 size: 1.82 TiB block-size: physical: 512 B 
  logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: AB51 
  scheme: MBR 
  ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital 
  model: WD20EZRZ-00Z5HB0 size: 1.82 TiB block-size: physical: 4096 B 
  logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> 
  rev: 0A80 scheme: MBR 
  ID-4: /dev/sdc maj-min: 8:32 vendor: Western Digital 
  model: WDS500G2B0A-00SM50 size: 465.76 GiB block-size: physical: 512 B 
  logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 20WD 
  scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 465.46 GiB size: 457.09 GiB (98.20%) 
  used: 63.92 GiB (14.0%) fs: ext4 dev: /dev/sdc2 maj-min: 8:34 label: N/A 
  uuid: 15d6095e-96ae-4006-a6dd-b2b2778c0f5d 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 292 KiB (0.1%) fs: vfat dev: /dev/sdc1 maj-min: 8:33 label: NO_LABEL 
  uuid: 0FD2-6BB4 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2 
  file: /swapfile 
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 998 MiB fs: ntfs label: Recovery 
  uuid: 01D57BAA49CC4C00 
  ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 329.9 MiB fs: vfat label: N/A 
  uuid: 6DE3-5750 
  ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-4: /dev/nvme0n1p4 maj-min: 259:4 size: 222.26 GiB fs: ntfs label: N/A 
  uuid: 01D57BACB20F82D0 
  ID-5: /dev/sda1 maj-min: 8:1 size: 1.82 TiB fs: ntfs label: N/A 
  uuid: 8242286342285E63 
  ID-6: /dev/sdb1 maj-min: 8:17 size: 1.82 TiB fs: ntfs label: N/A 
  uuid: 048247D88247CCBC 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-5:2 info: TP-Link Archer T2U PLUS [RTL8821AU] type: Network 
  driver: rtl88XXau interfaces: 1 rev: 2.1 speed: 480 Mb/s power: 500mA 
  chip-ID: 2357:0120 class-ID: 0000 serial: <filter> 
  Hub-2: 1-6:3 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 1a40:0101 class-ID: 0900 
  Device-1: 1-6.2:5 info: ThrustMaster XB1 Classic Controller 
  type: <vendor specific> driver: xpad interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 500mA chip-ID: 24c6:581a class-ID: ff00 serial: <filter> 
  Device-2: 1-6.3:6 info: C-Media USB PnP Audio Device type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 3 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 0d8c:0134 class-ID: 0300 
  Hub-3: 1-6.4:7 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 1a40:0101 class-ID: 0900 
  Device-1: 1-6.4.1:8 info: SINOWEALTH Game Mouse type: Mouse,Keyboard 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s 
  power: 256mA chip-ID: 258a:1007 class-ID: 0301 
  Device-2: 1-6.4.2:9 info: BY Tech Usb Gaming Keyboard type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 500mA chip-ID: 258a:0016 class-ID: 0300 
  Device-3: 1-6.4.3:10 info: Saitek PLC Saitek AV8R Joystick type: HID 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s 
  power: 100mA chip-ID: 06a3:0461 class-ID: 0300 
  Device-4: 1-8:4 info: Logitech QuickCam Communicate Deluxe 
  type: Video,Audio driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 
  speed: 480 Mb/s power: 500mA chip-ID: 046d:0992 class-ID: 0102 
  serial: <filter> 
  Hub-4: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 
  speed: 5 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 44 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:
  Processes: 289 Uptime: 50m wakeups: 0 Init: systemd v: 249 tool: systemctl 
  Compilers: gcc: 11.1.0 Packages: pacman: 1295 lib: 326 flatpak: 0 
  Shell: Zsh v: 5.8 running-in: gnome-terminal inxi: 3.3.06```

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and press the three dots … below your post and press the :pencil2: to give us more information so we can see what’s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.
  3. The contents and file name(s) of the files in your etc/X11/mhwd.d/ directory would be helpful as well.

:+1:

P.S. If you want to notify me that you did provide this information, please :heart: this message and I’ll come back and have another look.
P.P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which exact CPU/GPU or Kernel, … you have without typing it every time

1 Like

Here are the contents and file names in etc/X11/mhwd.d/

/etc/X11/mhwd.d ls
nvidia.conf nvidia.conf.backup
nvidia.conf-backup nvidia.conf.nvidia-xconfig-original

finally here is my nvidia.conf:

nvidia-settings: X configuration file generated by nvidia-settings
nvidia-settings: version 470.63.01

Section “ServerLayout”
Identifier “Layout0”
Screen 0 “Screen0” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
Option “Xinerama” “0”
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”
# HorizSync source: edid, VertRefresh source: edid
Identifier “Monitor0”
VendorName “Unknown”
ModelName “Microstep Optix G24C”
HorizSync 162.0 - 162.0
VertRefresh 48.0 - 144.0
Option “DPMS”
EndSection

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “NVIDIA GeForce RTX 3060 Ti”
Option “TripleBuffer” “On”
Option “ConnectToAcpid” “Off”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Device0”
Monitor “Monitor0”
DefaultDepth 24
Option “Stereo” “0”
Option “nvidiaXineramaInfoOrder” “DFP-0”
Option “metamodes” “1920x1080_144 +0+0 {ForceCompositionPipeline=On}”
Option “SLI” “Off”
Option “MultiGPU” “Off”
Option “BaseMosaic” “off”
SubSection “Display”
Depth 24
EndSubSection
EndSection

Thanks for your help!

1 Like

xrandr output, please?

Is there a reason this is turned on?

:thinking:

1 Like

Someone suggested on another post to sometimes reduce stuttering, so i tried it but it didn’t change anything…

xrandr:

DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080     60.00 + 144.00*  120.00   119.93    59.94    50.00  
   1680x1050    119.99    59.95    59.88  
   1440x900     119.85    59.89  
   1280x1024    119.96    75.02    60.02  
   1280x720      59.94    50.00  
   1024x768     119.99    75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)```

You’re on 144 Hz. What’s the FPS of your card?

If you don’t know, open a terminal and execute:

glxgears

fullscreen and let it run until you’ve got 10 measurements and provide those back, please?

:crossed_fingers:

I appreciate your help

glxgears :

Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
720 frames in 5.0 seconds = 143.903 FPS
720 frames in 5.0 seconds = 143.994 FPS
720 frames in 5.0 seconds = 143.957 FPS
721 frames in 5.0 seconds = 144.034 FPS
720 frames in 5.0 seconds = 143.994 FPS
720 frames in 5.0 seconds = 143.994 FPS
720 frames in 5.0 seconds = 143.996 FPS
720 frames in 5.0 seconds = 143.994 FPS
720 frames in 5.0 seconds = 143.996 FPS
720 frames in 5.0 seconds = 143.959 FPS
721 frames in 5.0 seconds = 144.032 FPS
720 frames in 5.0 seconds = 143.995 FPS
720 frames in 5.0 seconds = 143.994 FPS
720 frames in 5.0 seconds = 143.995 FPS```

Weird: that’s actually good. Could you humour me and use the 119.93 setting and report back if it’s gone then???

Did you mean 120? Because in my nvidia-settings the only options are 144, 120, 60 & 50…

You’re on Gnome and I’m on KDE, so I can’t tell you what to do exactly, but you need to change your monitor settings in Gnome, not in the nvidia-settings as your monitor supports this:

If it’s not there neither, just go for 120, please? :man_shrugging:

:crossed_fingers:

Gotcha! Tried both 119.93 & 120 and still same thing… I though it was maybe related to google chrome so I tried with firefox but the problem is also in firefox; its very minor but still annoying. As I said before, its like every few seconds a frame or two are skipped… I wonder if the problem is related to gnome but I don’t really wanna do a new installation or change DE :roll_eyes:

As I’m on KDE, I have no further bright ideas…

:sob:

1 Like

Well I appreciate the effort! I’ve read on a ubuntu post that someone with a very similar issue fixed the problem by using nvidia drm mode. Basically removing

options nvidia-drm modeset=1

in

/lib/modprobe.d/nvidia-kms.conf

I poked around to try and figure out how to do this in manjaro but couldn’t find anything. Any idea?

OMG I think I found the culprit and solution thanks to a linux mint post. It seems that what was causing my stuttering was a gnome extension I had activated called simple monitor (it would show cpu & ram usage in the gnome status area). I turned it off and the stuttering seems to be gone!

1 Like

I’ve marked this answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (If you disagree with my choice, just send me a personal message and explain why I shouldn’t have done this or :heart: or :+1: if you agree)

:innocent:
P.S. In the future, please don’t forget to come back to your question after your issue has been solved and click the 3 dots below the answer to mark a solution like this below the answer that helped you most:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

1 Like

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