Screen tearing in any app. Arch Linux + Sway

Hello fellows

My screen is tearing in every application after a fresh Arch Linux installation

The driver was installed via:

▶ sudo pacman -S nvidia-open-dkms

Sway was run with the following command:

▶ GBM_BACKEND=nvidia-drm __GLX_VENDOR_LIBRARY_NAME=nvidia WLR_NO_HARDWARE_CURSORS=1 sway --unsupported-gpu -d 2> ~/.sway/sway.log

Configuration:

▶ uname -r
6.8.7-arch1-2

▶ nvidia-smi

Sun Apr 28 18:27:17 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.76                 Driver Version: 550.76         CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| 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 RTX 3050        On  |   00000000:10:00.0  On |                  N/A |
|  0%   37C    P8              8W /  130W |     328MiB /   8192MiB |      5%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1148      G   sway                                          185MiB |
|    0   N/A  N/A      1270      G   Xwayland                                        8MiB |
|    0   N/A  N/A      1830      G   alacritty                                      38MiB |
|    0   N/A  N/A      4127      G   alacritty                                      40MiB |
|    0   N/A  N/A      4742      G   /usr/bin/telegram-desktop                       1MiB |
+-----------------------------------------------------------------------------------------+

▶ sway --version
sway version 1.9

▶ ls /sys/module/nvidia_drm/parameters

fbdev  modest

# I tried both configurations for this variable. No difference
▶ sudo cat /sys/module/nvidia_drm/parameters/fbdev

N

▶ sudo cat /sys/module/nvidia_drm/parameters/modeset

Y

nvidia-bug-report.log.gz (429.1 KB)
sway.log.tar.gz (86.3 KB)