Blender stuttering on X11 and no cursor on Wayland

Hi all.

Long history short, while ago I’ve decided to make a multi platform game, so I have W11, Ubuntu (UE5 supported) and Manjaro Gnome for the rest, since I don’t like a couple of things in Ubuntu.

In my particular case, I can’t stick to the repo version of Blender, since is updated after a new release and some releases come with bugs or problems that may interfere with my workflow, so I use the compressed version from the web site.

But by whatever reason, Blender on X11 have a screen tearing during camera movements, what doesn’t happen on Wayland, but in Wayland there is a cursor glitch where the cursor disappear during some operations like pop-up menus.

hip-runtime-amd is installed and any Blender version recognize HIP render support with amd-gpu.

inxi --full --admin --filter --width

System:
  Kernel: 6.9.5-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.9-x86_64
    root=UUID=46956ad0-3ace-411b-a661-a6f52da7ec55 rw rootflags=subvol=@ quiet
    cryptdevice=UUID=92eac9c5-cff7-46a1-8402-76b52702cac0:luks-92eac9c5-cff7-46a1-8402-76b52702cac0
    root=/dev/mapper/luks-92eac9c5-cff7-46a1-8402-76b52702cac0 splash
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 46.2 tk: GTK v: 3.24.42 wm: gnome-shell
    tools: gsd-screensaver-proxy dm: GDM v: 46.2 Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS v: Rev X.0x
    serial: <superuser required> part-nu: SKU uuid: <superuser required>
    UEFI: American Megatrends v: 5013 date: 03/22/2024
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
  Device-3: ps-controller-battery-d0:bc:c1:46:ae:b1 model: N/A serial: N/A
    charge: N/A status: charging
CPU:
  Info: model: AMD Ryzen 9 3900X bits: 64 type: MT MCP arch: Zen 2 gen: 3
    level: v3 note: check built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
    model-id: 0x71 (113) stepping: 0 microcode: 0x8701033
  Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
    L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
    L3: 64 MiB desc: 4x16 MiB
  Speed (MHz): avg: 2611 high: 3800 min/max: 2200/4672 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2200 2: 2200
    3: 2200 4: 2200 5: 3800 6: 2200 7: 2200 8: 2199 9: 2200 10: 3296 11: 2065
    12: 2069 13: 3800 14: 3800 15: 2200 16: 3800 17: 3600 18: 2200 19: 2200
    20: 2200 21: 2198 22: 3575 23: 2129 24: 2147 bogomips: 182471
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  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 status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_rstack_overflow mitigation: Safe RET
  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: Retpolines; IBPB: conditional; STIBP:
    always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] driver: amdgpu
    v: kernel arch: RDNA-3 code: Navi-3x process: TSMC n5 (5nm) built: 2022+
    pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-3,HDMI-A-1
    empty: DP-1,DP-2,Writeback-1 bus-ID: 2b:00.0 chip-ID: 1002:744c
    class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.0
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: radeonsi gpu: amdgpu display-ID: 0
  Monitor-1: DP-3 model: Dell UP2716D serial: <filter> built: 2019
    res: 2560x1440 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23")
    diag: 685mm (27") ratio: 16:9 modes: max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-1 model: Elgato1440HDR serial: <filter> built: 2019
    res: 2560x1440 dpi: 108 gamma: 1.2 size: 600x338mm (23.62x13.31")
    diag: 689mm (27.1") ratio: 16:9 modes: max: 2560x1440 min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast surfaceless: drv: radeonsi wayland: drv: radeonsi x11:
    drv: radeonsi inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.1-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7900 XTX (radeonsi
    navi31 LLVM 17.0.6 DRM 3.57 6.9.5-1-MANJARO) device-ID: 1002:744c
    memory: 23.44 GiB unified: no display-ID: :0.0
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 2b:00.1 chip-ID: 1002:ab30
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 2d:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Sony DualSense wireless controller (PS5)
    driver: playstation,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 7-2:3 chip-ID: 054c:0ce6 class-ID: 0300
  API: ALSA v: k6.9.5-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: f000 bus-ID: 25:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp37s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Sony DualSense wireless controller (PS5)
    driver: playstation,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 7-2:3 chip-ID: 054c:0ce6 class-ID: 0300
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
RAID:
  Supported mdraid levels: raid0
  Device-1: md0 maj-min: 9:0 type: mdraid level: raid-0 status: active
    size: 1.82 TiB
  Info: report: N/A blocks: 1953258496 chunk-size: 512k super-blocks: 1.2
  Components: Online:
  0: sda1 maj-min: 8:1 size: 931.51 GiB
  1: sdb1 maj-min: 8:17 size: 931.51 GiB
Drives:
  Local Storage: total: raw: 6.62 TiB usable: 6.62 TiB used: 1.2 TiB (18.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Seagate model: XPG GAMMIX S70
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 3.2.F.66 temp: 36.9 C
    scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:1 vendor: Samsung model: SSD 990 PRO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 4B2QJXD7 temp: 36.9 C
    scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10EZEX-08WN4A0
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: 1A02 scheme: GPT
  ID-4: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10EZEX-75WN4A1 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 7113 scheme: GPT
  ID-5: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD10EZEX-75WN4A1 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 7113 scheme: GPT
  ID-6: /dev/sdd maj-min: 8:48 vendor: Western Digital
    model: WD10EZEX-75WN4A1 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 7200 serial: <filter>
    fw-rev: 7113 scheme: GPT
  ID-7: /dev/sde maj-min: 8:64 vendor: Samsung model: SSD 850 EVO 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 3B6Q
Partition:
  ID-1: / raw-size: 50 GiB size: 50 GiB (100.00%) used: 37.97 GiB (76.0%)
    fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-92eac9c5-cff7-46a1-8402-76b52702cac0
  ID-2: /boot/efi raw-size: 2 GiB size: 2 GiB (99.80%) used: 6.5 MiB (0.3%)
    fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:7
  ID-3: /home raw-size: 50 GiB size: 50 GiB (100.00%) used: 37.97 GiB (76.0%)
    fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-92eac9c5-cff7-46a1-8402-76b52702cac0
  ID-4: /var/log raw-size: 50 GiB size: 50 GiB (100.00%)
    used: 37.97 GiB (76.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-92eac9c5-cff7-46a1-8402-76b52702cac0
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 38.9 C mobo: N/A gpu: amdgpu temp: 52.0 C
    mem: 68.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 2
Info:
  Memory: total: 128 GiB note: est. available: 125.7 GiB used: 3.27 GiB (2.6%)
  Processes: 553 Power: uptime: 2m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 50.26 GiB services: gsd-power,
    power-profiles-daemon, upowerd Init: systemd v: 256 default: graphical
    tool: systemctl
  Packages: pm: pacman pkgs: 1342 libs: 320 tools: gnome-software,pamac
    pm: flatpak pkgs: 0 Compilers: clang: 17.0.6 gcc: 14.1.1 Shell: Zsh v: 5.9
    running-in: gnome-terminal inxi: 3.3.35

xrandr                                                           ✔ 
Screen 0: minimum 16 x 16, current 2560 x 1440, maximum 32767 x 32767
DP-3 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
   2560x1440     59.91*+
   1920x1440     59.90  
   1600x1200     59.87  
   1440x1080     59.87  
   1400x1050     59.86  
   1280x1024     59.76  
   1280x960      59.94  
   1152x864      59.78  
   1024x768      59.68  
   800x600       59.86  
   640x480       59.38  
   320x240       59.52  
   1920x1200     59.88  
   1680x1050     59.85  
   1440x900      59.89  
   1280x800      59.81  
   1152x720      59.75  
   960x600       59.63  
   928x580       59.88  
   800x500       59.50  
   768x480       59.38  
   720x480       59.71  
   640x400       59.20  
   320x200       58.96  
   2048x1152     59.90  
   1920x1080     59.88  
   1600x900      59.82  
   1368x768      59.88  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.45  
   720x400       59.55  
   640x350       59.77  
HDMI-1 connected 2560x1440+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
   2560x1440    144.14*+
   1920x1440    144.14  
   1600x1200    144.15  
   1440x1080    144.12  
   1400x1050    144.11  
   1280x1024    144.05  
   1280x960     144.13  
   1152x864     144.09  
   1024x768     144.08  
   800x600      144.18  
   640x480      143.85  
   320x240      142.05  
   1920x1200    144.10  
   1680x1050    144.16  
   1440x900     144.12  
   1280x800     144.00  
   1152x720     143.97  
   960x600      144.01  
   928x580      143.82  
   800x500      143.68  
   768x480      143.69  
   720x480      143.85  
   640x400      144.04  
   320x200      141.40  
   2048x1152    144.09  
   1920x1080    144.04  
   1600x900     144.16  
   1368x768     144.09  
   1280x720     144.03  
   1024x576     143.91  
   864x486      143.63  
   720x400      143.88  
   640x350      143.57  

So, there is something I should install to solve any of the problems? Or some tweak somewhere?

The only solution for X11 with multiple monitors is that all monitors have the same refresh rate, I see you have one at 60 and another at 144. Wayland does not have that problem, it should work fine.

1 Like

I got so comfortable with setup that I forgot to mention that I use a 60 HZ monitor and connect this PC in mirror mode on a Elgato Capture Card on a second computer (the 144 HZ), since I stream some Blender things.

And you’re right, removing the mirror solves the stuttering, what is strange to me, since the mirror mode runs on 60 HZ.

So, there is a way to mirror the screen on 60 HZ (59.95 in gnome panel) and solve this issue or the missing icon on Wayland?

No idea why, but this problem doesn’t occur on Ubuntu.

In X11 you will have better results with two monitors at 60Hz than with one at 120Hz and another at 144Hz, when they are different they both look bad.

Wayland does not require special configuration for monitors with different refresh rates, but I have no experience in Wayland and the error you mention I don’t know what it could be.

Understand the problem help me to find out the solution, so many thanks.

By any reason, I’m one of the people that need to install xf86-video-amdgpu to make it work.

So:

sudo pacman -S xf86-video-amdgpu

After this, xrandr is able to list the monitors properly

 xrandr --listmonitors

One solution seems to use xrandr commands to apply the TearFree On mode for each output, but someone commented that maybe the tearing happens again in some cases, to avoid it, I’ve created a file inside xorg folder.

xrandir for those who wanna try it:

xrandir --output HDMI-A-0 set TearFree on

Just remember to use the list monitors first and them replace HDMI accordingly.

Commands to create the file:

cd /etc/X11

ls

# a folder named xorg.conf.d shoud be available, if don't, create it.

sudo nano xorg.conf.d/20-amdgpu.conf

Section "Device"
        Identifier      "AMD Graphics"
        Driver          "amdgpu"
        Option          "TearFree" "true"
EndSection

After a reboot

xrandr --verbose | grep "TearFree"

The above command should show TearFree: on for each output port of the VGA, in my case, 4 ports, 4 outputs.

Someone commented about the installed driver is set or running “modesetting” instead of amdgpu driver.

Originals link where I got the info.

Link 1
Link 2

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