Screen pauses every few seconds after installing nvidia drivers

Hello, I recently installed nvidia drivers but every second or so the screen freezes. I would try using the video-linux driver but that one gives me a black screen and is why I installed nvidia’s.

Here’s some info about my system.

inxi --admin --verbosity=7 --filter --width

System:
  Kernel: 6.1.25-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=d5024b2a-a9c6-4db5-aac8-93861cdd44e3 rw quiet
    cryptdevice=UUID=11237b65-30ab-4d73-89bf-763ceb6771c2:luks-11237b65-30ab-4d73-89bf-763ceb6771c2
    root=/dev/mapper/luks-11237b65-30ab-4d73-89bf-763ceb6771c2 splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: iBUYPOWER product: INTEL v: N/A
    serial: <superuser required>
  Mobo: ASUSTeK model: PRIME Z590-P v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 0407 date: 01/14/2021
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 15.48 GiB used: 3.61 GiB (23.3%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: 11th Gen Intel Core i5-11600KF bits: 64 type: MT MCP
    arch: Rocket Lake gen: core 11 level: v4 note: check built: 2021+
    process: Intel 14nm family: 6 model-id: 0xA7 (167) stepping: 1
    microcode: 0x57
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 480 KiB desc: d-6x48 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 12 MiB
    desc: 1x12 MiB
  Speed (MHz): avg: 4326 high: 4700 min/max: 800/4900 scaling:
    driver: intel_pstate governor: powersave cores: 1: 4651 2: 3900 3: 4700
    4: 4632 5: 3900 6: 3900 7: 4555 8: 4539 9: 4700 10: 3900 11: 4641 12: 3900
    bogomips: 93924
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 avx512_bitalg avx512_vbmi2
    avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma
    avx512vbmi avx512vl bmi1 bmi2 bts clflush clflushopt cmov constant_tsc
    cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms
    est f16c flexpriority flush_l1d fma fpu fsgsbase fsrm fxsr gfni ht hwp
    hwp_act_window hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq
    pdcm pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed
    rdtscp rep_good sdbg sep sha_ni smap smep ss ssbd sse sse2 sse4_1 sse4_2
    ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer
    tsc_known_freq umip vaes vme vmx vnmi vpclmulqdq vpid x2apic xgetbv1 xsave
    xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: Micro-Star MSI
    driver: nvidia v: 530.41.03 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-03) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.0 chip-ID: 10de:21c4 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.8 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1800 s-dpi: 95 s-size: 1027x481mm (40.43x18.94")
    s-diag: 1134mm (44.65") monitors: <missing: xrandr>
  API: OpenGL v: 4.6.0 NVIDIA 530.41.03 renderer: NVIDIA GeForce GTX 1660
    SUPER/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3 chip-ID: 8086:43c8
    class-ID: 0403
  Device-2: NVIDIA TU116 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:1aeb class-ID: 0403
  API: ALSA v: k6.1.25-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: off with: wireplumber status: active
    tools: pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active tools: pacat,pactl
Network:
  Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
    vendor: ASUSTeK driver: rtw_8821ce v: N/A modules: rtw88_8821ce pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 5000 bus-ID: 05:00.0 chip-ID: 10ec:c821
    class-ID: 0280
  IF: wlp5s0 state: down mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 4000 bus-ID: 06:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: ASUSTek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-2.2:4 chip-ID: 0b05:18eb class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-11237b65-30ab-4d73-89bf-763ceb6771c2 maj-min: 254:0
    type: LUKS dm: dm-0 size: 931.21 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:4 size: 931.22 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 3.67 TiB used: 10.58 GiB (0.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:2 vendor: Samsung model: SSD 980 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 3B4QFXO7 temp: 40.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: MSI model: M370 1TB
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: EDFMD1.0 temp: 33.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DM008-2UB102
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 0001 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 type: USB model: USB DISK 2.0 size: 7.22 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter>
    rev: PMAP scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 931.21 GiB size: 915.52 GiB (98.32%) used: 10.58 GiB (1.2%)
    fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-11237b65-30ab-4d73-89bf-763ceb6771c2 label: N/A
    uuid: d5024b2a-a9c6-4db5-aac8-93861cdd44e3
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 472 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:3 label: N/A
    uuid: 850D-D44E
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme1n1p1 maj-min: 259:1 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/sda1 maj-min: 8:1 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/sda2 maj-min: 8:2 size: 1.82 TiB fs: ntfs label: N/A
    uuid: 92E8EBE2E8EBC299
  ID-4: /dev/sdb1 maj-min: 8:17 size: 3.88 GiB fs: iso9660
  ID-5: /dev/sdb2 maj-min: 8:18 size: 4 MiB fs: vfat label: MISO_EFI
    uuid: B25B-A794
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-2:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-2.2:4 info: ASUSTek Bluetooth Radio type: Bluetooth
    driver: btusb interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 500mA
    chip-ID: 0b05:18eb class-ID: e001 serial: <filter>
  Device-2: 1-7:3 info: INSTANT USB Keyboard type: Keyboard,Mouse
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s
    power: 100mA chip-ID: 30fa:2251 class-ID: 0300
  Device-3: 1-8:5 info: Phison Platinum USB drive mini type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 200mA
    chip-ID: 13fe:4200 class-ID: 0806 serial: <filter>
  Device-4: 1-11:6 info: USB OPTICAL MOUSE type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 1.5 Mb/s
    power: 100mA chip-ID: 30fa:0400 class-ID: 0301
  Hub-3: 1-12:7 info: Microchip (formerly SMSC) Hub ports: 4 rev: 2.0
    speed: 480 Mb/s power: 2mA chip-ID: 0424:2504 class-ID: 0900
  Device-1: 1-13:8 info: ASUSTek AURA LED Controller type: HID
    driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 16mA
    chip-ID: 0b05:19af class-ID: 0300 serial: <filter>
  Hub-4: 2-0:1 info: Super-speed hub ports: 9 rev: 3.1 speed: 20 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-6: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A gpu: nvidia temp: 48 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 43%
Info:
  Processes: 291 Uptime: 59m wakeups: 0 Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1163 libs: 352 tools: pamac pm: flatpak pkgs: 0 Shell: Zsh v: 5.9
  default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.26

Hello,

First i would recommend to enable early kms by one of the methods described here

Then you could alter a bit the /etc/X11/mhwd.d/nvidia.conf file. Replace the Section "Device" from your file with this:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "TripleBuffer"  "On"
    Option  "ConnectToAcpid"    "Off"
    Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
EndSection

Make sure that in the same config the HorizSync and VertRefresh values in the Section "Monitor" are not missing or blank. See how to deal with that here

I recommend the use of zram-generator … is the best option IMO regardless how much RAM the system has. See also this:

Also, also …

There is a BIOS update for PRIME Z590-P|Motherboards|ASUS Global

    Option "AllowEmptyInitialConfiguration" "true"
    Option "AllowIndirectGLXProtocol" "false"
    Option "TripleBuffer" "true"

These placed in Section Screen have helped in my config as well.

Thank you for the suggestions.

I’ve enabled early KMS, using this method:

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Replaced the device section of /etc/X11/mhwd.d/nvidia.conf

HorizSync VertRefresh are both have values.

Updated my bios.

I didn’t do the swap yet. I intend to, but I’d like to get this sorted first if possible.

Nothing’s changed the screen is still pausing every few seconds.

I’ve tried adding your suggestions to Section Screen, but nothing’s changed.

You did run:
sudo mkinitcpio -P
then
sudo update-grub

after doing those modifications in grub and mkinitcpio file?

Also, sometimes you have to run
sudo mhwd-gpu --setmod nvidia --setxorg /etc/X11/mhwd.d/nvidia.conf
after modifying the file … but now i have a question, on what ports you connect your monitor and what cables, have you tried different ones?

No I did not. I have done so now. Screens still pausing.

I’ve got 3 monitors. One actual monitor and 2 TVs.
The monitor is using the card’s HDMI port and the TVs are using the display ports with HDMI cable and display port adapters. After trying different combinations of ports and adapters, it looks like the cause is one of TVs I’m using. When it is not plugged in there is no stutter, tried using a different hdmi cable and it still stuttered.

If you can check that TV on another system/PC and you get the same, then the TV must be next to get fixed to a service shop.