Artefacts and colored squares

Ever since almost 2 weeks ago, after I updated Endeavour, I have had weird artifacts, colored squares and parts of applications who become transparent (I see my desktop background) or in my browser some elements of a webpage disappear (mostly persistent across tab switching). These artifacts blink and disappear for a bit as I move my cursor and switch window.
I use BTRFS so as soon as I saw this kind of behavior I reached for Timeshift before realizing that I would not be able to rollback to before the update because I had to run yay 3 times (for multiple reasons) :person_facepalming:. I did rollback to the earliest automatic snapshot I had (which was after all of the core packages had been updated) but I was still having this issue.
Since then I have done 2 updates and also updated my Framework UEFI (BIOS) from 3.5 to 3.7.
I am fairly certain this is an AMD graphics specific issue and it is made much much worse when I plug in my external monitor. In fact, yesterday was the worst “episode” I have seen. I had my monitor plugged in and it started small with a few colored squares in my taskbar blinking and disappearing for a bit when I switched tab or window but soon more and more of my screen started to disappear until the display froze. I switched to tty3 out of curiosity and as I logged in it worked fine (as you can see in the logs), so I switched back to desktop view which worked for a few seconds before freezing again and then it seemed to give up (I believe KDE Plasma restarted) because it was as if I had just rebooted.
Here are the logs: https://gist.github.com/benji78/0a0b1219b7988d9530495ff13a15024e

For ilustration purposes:


Some info about my Framework Laptop 13 hardware and installed packages:

pacman -Qq | grep -E "mesa|amd|radeon|xf86"
amd-ucode
amdvlk
lib32-amdvlk
lib32-libxxf86vm
lib32-mesa
libxxf86vm
mesa
mesa-utils
xf86-input-libinput
xf86-video-amdgpu
xf86-video-ati
inxi -FAZ --no-host
System:
  Kernel: 6.12.20-1-lts arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.3 Distro: EndeavourOS
Machine:
  Type: Laptop System: Framework product: Laptop 13 (AMD Ryzen 7040Series)
    v: A5 serial: 
  Mobo: Framework model: FRANMDCP05 v: A5 serial: 
    UEFI: INSYDE v: 03.07 date: 02/19/2025
Battery:
  ID-1: BAT1 charge: 47.4 Wh (99.8%) condition: 47.5/55.0 Wh (86.3%)
CPU:
  Info: 6-core model: AMD Ryzen 5 7640U w/ Radeon 760M Graphics bits: 64
    type: MT MCP cache: L2: 6 MiB
  Speed (MHz): avg: 1395 min/max: 400/3501 cores: 1: 1395 2: 1395 3: 1395
    4: 1395 5: 1395 6: 1395 7: 1395 8: 1395 9: 1395 10: 1395 11: 1395 12: 1395
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Phoenix1 driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6
    compositor: kwin_wayland driver: X: loaded: amdgpu unloaded: modesetting
    dri: radeonsi gpu: amdgpu resolution: 2256x1504~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.0.2-arch1.2
    renderer: AMD Radeon 760M (radeonsi phoenix LLVM 19.1.7 DRM 3.61
    6.12.20-1-lts)
  API: Vulkan v: 1.4.309 drivers: N/A surfaces: xcb,xlib,wayland
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt Radeon High Definition
    Audio driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
    driver: snd_pci_ps
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    driver: snd_hda_intel
  API: ALSA v: k6.12.20-1-lts status: kernel-api
  Server-1: PipeWire v: 1.4.1 status: active
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e
  IF: wlan0 state: down mac: 32:24:0e:eb:0b:99
  IF-ID-1: enp193s0f3u1 state: unknown speed: -1 duplex: half
    mac: da:f2:67:79:21:b4
  IF-ID-2: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
  IF-ID-3: virbr0 state: down mac: 52:54:00:df:fa:08
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb type: USB
  Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: 14:AC:60:D8:28:FC bt-v: 5.2
Drives:
  Local Storage: total: 931.51 GiB used: 683.22 GiB (73.3%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD Blue SN570 1TB
    size: 931.51 GiB
Partition:
  ID-1: / size: 896.93 GiB used: 683.18 GiB (76.2%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 998 MiB used: 676 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 896.93 GiB used: 683.18 GiB (76.2%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-4: /var/log size: 896.93 GiB used: 683.18 GiB (76.2%) fs: btrfs
    dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: partition size: 33.6 GiB used: 38 MiB (0.1%)
    dev: /dev/nvme0n1p3
Sensors:
  System Temperatures: cpu: 47.2 C mobo: 43.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.66 GiB
    used: 15.14 GiB (49.4%)
  Processes: 456 Uptime: 19h 52m Shell: Zsh inxi: 3.3.37
1 Like

I’m having similar issues with my AMD (Ryzen 8845hs) Tuxedo laptop since ± 2 weeks ago and I’m on Gnome and not using BTRFS, regular ol’ ext4.
Since I already suspected it to be an AMD graphics issue this confirms it even more for me.

I’ve had these glitches as well and several Gnome shell freezes as well(sometimes application windows phasing through each other).


I’ve had worse glitches than these but didn’t have the time to take a picture of it. Also didn’t test yet if a simple screenshot would capture it or not.

Well would you look at that, it actually shows up on a screenshot when trying to get the same packages info as you.

pacman -Qq | grep -E "mesa|amd|radeon|xf86"

amd-ucode
amdgpu_top
lib32-libxxf86vm
lib32-mesa
lib32-vulkan-radeon
libxxf86vm
mesa
mesa-utils
vulkan-radeon
xf86-input-libinput
xf86-video-amdgpu
xf86-video-ati

inxi -FAZ --no-host

System:
Kernel: 6.13.8-arch1-1 arch: x86_64 bits: 64
Desktop: GNOME v: 48.0 Distro: EndeavourOS
Machine:
Type: Laptop System: TUXEDO product: TUXEDO InfinityBook Pro AMD Gen9
v: Standard serial:
Mobo: NB02 model: GXxHRXx v: Standard serial:
UEFI: American Megatrends LLC. v: N.1.13A10 date: 09/03/2024
Battery:
ID-1: BAT0 charge: 73.9 Wh (100.0%) condition: 73.9/80.1 Wh (92.3%)
CPU:
Info: 8-core model: AMD Ryzen 7 8845HS w/ Radeon 780M Graphics bits: 64
type: MT MCP cache: L2: 8 MiB
Speed (MHz): avg: 1098 min/max: 400/5137 cores: 1: 1098 2: 1098 3: 1098
4: 1098 5: 1098 6: 1098 7: 1098 8: 1098 9: 1098 10: 1098 11: 1098 12: 1098
13: 1098 14: 1098 15: 1098 16: 1098
Graphics:
Device-1: Advanced Micro Devices [AMD/ATI] Phoenix3 driver: amdgpu v: kernel
Device-2: Kingcome FHD WebCam driver: uvcvideo type: USB
Display: wayland server: X.Org v: 24.1.6 with: Xwayland v: 24.1.6
compositor: gnome-shell driver: gpu: amdgpu resolution: 1920x1080~60Hz
API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.0.2-arch1.2
renderer: AMD Radeon Graphics (radeonsi phoenix LLVM 19.1.7 DRM 3.61
6.13.8-arch1-1)
Info: Tools: api: eglinfo,glxinfo gpu: amdgpu_top
x11: xdpyinfo, xprop, xrandr
Audio:
Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt Radeon High Definition
Audio driver: snd_hda_intel
Device-2: Advanced Micro Devices [AMD] ACP/ACP3X/ACP6x Audio Coprocessor
driver: snd_pci_ps
Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
driver: snd_hda_intel
API: ALSA v: k6.13.8-arch1-1 status: kernel-api
Server-1: PipeWire v: 1.4.1 status: active
Network:
Device-1: Motorcomm Micro. YT6801 Gigabit Ethernet driver: yt6801
IF: enp1s0 state: up speed: 1000 Mbps duplex: full mac: b0:25:aa:6b:86:ff
Device-2: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
IF: wlan0 state: down mac: 2a:9d:6b:ef:2c:d6
Bluetooth:
Device-1: Intel AX210 Bluetooth driver: btusb type: USB
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: C0:A5:E8:43:43:91 bt-v: 5.3
Drives:
Local Storage: total: 1.86 TiB used: 1.22 TiB (65.3%)
ID-1: /dev/nvme0n1 vendor: Lexar model: SSD NM790 2TB size: 1.86 TiB
Partition:
ID-1: / size: 1.8 TiB used: 1.22 TiB (67.6%) fs: ext4 dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: partition size: 33.71 GiB used: 0 KiB (0.0%)
dev: /dev/nvme0n1p3
Sensors:
System Temperatures: cpu: 46.5 C mobo: 43.5 C gpu: amdgpu temp: 41.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 32 GiB note: est. available: 30.64 GiB used: 5.77 GiB (18.8%)
Processes: 411 Uptime: 30m Shell: Bash inxi: 3.3.37

So after doing some deep dives yesterday I think I narrowed the issue down to mesa:

There’s probably some drm/amd issues at play as well since a lot of new issues were opened there the past week about amd pageflips or ring gfx time-outs but perhaps they’re related:

There are some suggested fixes in the mesa issue like downgrading mesa versions but hopefully mesa will just get a hotfix release soon.

I used sudo downgrade mesa and switched to mesa 24.3.4 from 2025-01-23 and so far it seems that my artefacts are gone. Godot also seems to launch much smoother than with mesa 25.

1 Like

Thank you so much, I will downgrade mesa just like you did. Hopefully the patch will be releases soon.
I have marked your answer as a solution.

1 Like

No problem, I was worried my fairly new laptop was dying so went down the rabbit hole to find a solution :slight_smile:

Hope it works as well for you as it did for me.

Don’t forget to comment out the IgnorePkg = mesa line from /etc/pacman.conf once it has been fixed in mesa 25 :saluting_face:

If I can remember it by then I’ll send you some sort of message once the fix seems to be working for me. Doesn’t seem like I’m able to DM on this forum but maybe I’ll start a new topic and tag you in it if possible.

1 Like

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