Youtube struggling, blackscreen/monitor reset

Hello,

I have been using Fedora for a couple of month now and everything was smooth.

But recently, when I am on the youtube website, when I leave my mouse on a video to see the preview, the preview is all black and only the upper left quarter of the preview is moving but it is some graphical anomalies that are moving, not the preview.
Then, when I try to watch a video, either it does the same as the preview(the sound is good) or it does not move at all.
When this happen (with the video in a tab not the preview), my screen will start lagging/freezing, then it will turn black for about a second before comming back at full brightness. It can go black 2 or 3 times in a row.
When I adjust the brightness it comes back to where it was initially instantly.

It is really annoying as sometimes it can’t play videos normally for 2 to 3 tab refresh.
It only does that on youtube.

The only program running in background is discord. I tried after closing it but same issue.

I tried a clean install, same issue.

I am on wayland.

I have ffmpeg.

I tried coming back to the kernel installed with the live cd, same issue.

My computer is a framework 16 running on Fedora 40 with :
AMD Ryzen 7 7840HS
AMD Radeon 780M
32Gb Ram DDR5

I search online for 2 days and no solution found :confused:
I would be gratefull to anybody that takes time to help me.


Here is an exemple, the same goes for the preview.

Can you provide the output of both

  • inxi -Fzxx
  • dnf list installed mesa* | awk '/^[[:space:]]*mesa-/{print $1, $2}'

for us in </> preformatted text so we can understand the hardware and packages installed?
2024-05-06_12-15-49_Preformatted_Text

There’s a bug in the Mesa packages that has caused this regression.

inxi -Fzxx :

System:
  Kernel: 6.9.9-200.fc40.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.41-37.fc40
  Desktop: GNOME v: 46.3.1 tk: GTK v: 3.24.43 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 40 (Workstation Edition)
Machine:
  Type: Laptop System: Framework product: Laptop 16 (AMD Ryzen 7040 Series)
    v: AG serial: <superuser required> Chassis: type: 10 v: AG
    serial: <superuser required>
  Mobo: Framework model: FRANMZCP07 v: A7 serial: <superuser required>
    part-nu: FRAGAACP0G UEFI: INSYDE v: 03.03 date: 03/27/2024
Battery:
  ID-1: BAT1 charge: 80.8 Wh (94.6%) condition: 85.4/85.1 Wh (100.3%)
    volts: 17.3 min: 15.5 model: NVT FRANDBA serial: <filter>
    status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics bits: 64
    type: MT MCP arch: Zen 4 rev: 1 cache: L1: 512 KiB L2: 8 MiB L3: 16 MiB
  Speed (MHz): avg: 586 high: 1397 min/max: 400/5137 cores: 1: 400 2: 400
    3: 1397 4: 400 5: 400 6: 400 7: 1397 8: 400 9: 400 10: 400 11: 1397 12: 400
    13: 400 14: 400 15: 400 16: 400 bogomips: 121375
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Phoenix1 vendor: Framework driver: amdgpu v: kernel
    arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,
    DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8, Writeback-1 bus-ID: c1:00.0
    chip-ID: 1002:15bf temp: 33.0 C
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 24.1.1
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: BOE Display 0x0bc9 res: 2560x1600 dpi: 188
    diag: 407mm (16")
  API: OpenGL v: 4.6 vendor: amd mesa v: 24.1.4 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon 780M (radeonsi gfx1103_r1 LLVM
    18.1.6 DRM 3.57 6.9.9-200.fc40.x86_64) device-ID: 1002:15bf
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Rembrandt Radeon High Definition Audio vendor: Framework
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: c1:00.1 chip-ID: 1002:1640
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Framework
    driver: snd_pci_ps v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: c1:00.5
    chip-ID: 1022:15e2
  Device-3: AMD Family 17h/19h HD Audio vendor: Framework
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: c1:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.9.9-200.fc40.x86_64 status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1 bus-ID: 01:00.0
    chip-ID: 14c3:0616
  IF: wlp1s0 state: up mac: <filter>
  IF-ID-1: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 bus-ID: 1-5:6 chip-ID: 0e8d:e616
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
Drives:
  Local Storage: total: 2.05 TiB used: 589.87 GiB (28.1%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 2TB
    size: 1.82 TiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
  ID-2: /dev/sda model: 250GB Card size: 232.89 GiB type: USB rev: 3.2
    spd: 10 Gb/s lanes: 1 serial: N/A
Partition:
  ID-1: / size: 934.28 GiB used: 5.69 GiB (0.6%) fs: btrfs dev: /dev/nvme0n1p6
  ID-2: /boot size: 973.4 MiB used: 328.2 MiB (33.7%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-3: /boot/efi size: 96 MiB used: 51.2 MiB (53.3%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 934.28 GiB used: 5.69 GiB (0.6%) fs: btrfs
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.65 GiB used: 4.61 GiB (15.0%)
  Processes: 1002 Power: uptime: 19m wakeups: 0 Init: systemd v: 255
    target: graphical (5) default: graphical
  Packages: Compilers: N/A Shell: Bash v: 5.2.26 running-in: gnome-terminal
    inxi: 3.3.34

dnf list installed mesa* | awk ‘/[1]*mesa-/{print $1, $2}’ :

mesa-dri-drivers.x86_64 24.1.4-2.fc40
mesa-filesystem.x86_64 24.1.4-2.fc40
mesa-libEGL.x86_64 24.1.4-2.fc40
mesa-libGL.x86_64 24.1.4-2.fc40
mesa-libGLU.x86_64 9.0.3-4.fc40
mesa-libgbm.x86_64 24.1.4-2.fc40
mesa-libglapi.x86_64 24.1.4-2.fc40
mesa-va-drivers.x86_64 24.1.4-2.fc40
mesa-vulkan-drivers.x86_64 24.1.4-2.fc40


  1. [:space:] ↩︎

I think the problem comes from Firefox, I changed to LibreWolf and I got no issue.

Since LibreWolf is based on Firefox I guess it comes from the preinstalled version of Firefox that have some problems.

Added framework