[RESPONDED] Video Flickering on Full Screen

Hi all. Brand new Batch 11 Framework 13 owner. Full specs below.

System:
  Host: avantbored Kernel: 6.6.7-arch1-1 arch: x86_64 bits: 64 Desktop: GNOME
    v: 45.2 Distro: EndeavourOS
Machine:
  Type: Laptop System: Framework product: Laptop 13 (AMD Ryzen 7040Series)
    v: A7 serial: <superuser required>
  Mobo: Framework model: FRANMDCP07 v: A7 serial: <superuser required>
    UEFI: INSYDE v: 03.03 date: 10/17/2023
Battery:
  ID-1: BAT1 charge: 39.5 Wh (64.0%) condition: 61.7/60.7 Wh (101.7%)
    volts: 15.7 min: 15.5
CPU:
  Info: 8-core model: AMD Ryzen 7 7840U w/ Radeon 780M Graphics bits: 64
    type: MT MCP cache: L2: 8 MiB
  Speed (MHz): avg: 1080 min/max: 400/5289:6076:5918:5132:5760:5605:5447
    cores: 1: 2718 2: 400 3: 2113 4: 400 5: 1732 6: 400 7: 400 8: 400 9: 1866
    10: 1879 11: 1600 12: 400 13: 400 14: 400 15: 1776 16: 400
Graphics:
  Device-1: AMD Phoenix1 driver: amdgpu v: kernel
  Device-2: Realtek Laptop Camera driver: uvcvideo type: USB
  Display: wayland server: X.Org v: 23.2.3 with: Xwayland v: 23.2.3
    compositor: gnome-shell driver: gpu: amdgpu resolution: 2256x1504~60Hz
  API: EGL v: 1.5 drivers: radeonsi,swrast
    platforms: wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
    renderer: AMD Radeon Graphics (gfx1103_r1 LLVM 16.0.6 DRM 3.54
    6.6.7-arch1-1)
Audio:
  Device-1: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_pci_ps
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  Device-4: ESS S3 Pro DAC & AMP driver: hid-generic,snd-usb-audio,usbhid
    type: USB
  API: ALSA v: k6.6.7-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.0.0 status: active
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e
  IF: wlan0 state: up mac: 14:ac:60:29:82:b3
  IF-ID-1: us-lax-wg-102 state: unknown speed: N/A duplex: N/A mac: N/A
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb type: USB
  Report: btmgmt ID: hci0 state: up address: 14:AC:60:29:82:B4 bt-v: 5.2
Drives:
  Local Storage: total: 3.19 TiB used: 382.82 GiB (11.7%)
  ID-1: /dev/nvme0n1 vendor: Smart Modular Tech. model: SHGP31-2000GM
    size: 1.82 TiB
  ID-2: /dev/sda model: FRMW 1TB Card size: 931.51 GiB type: USB
  ID-3: /dev/sdb vendor: Samsung model: MZALQ512HALU-000L1 size: 476.94 GiB
    type: USB
Partition:
  ID-1: / size: 57.43 GiB used: 19.6 GiB (34.1%) fs: ext4 dev: /dev/nvme0n1p6
  ID-2: /boot/efi size: 96 MiB used: 26.5 MiB (27.6%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: N/A mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 415 Uptime: 13h 13m Memory: total: 64 GiB available: 62 GiB
  used: 7.43 GiB (12.0%) Shell: Bash inxi: 3.3.31

My problem: Videos render fine when in a floating window, but flicker beneath a fully white screen when in full screen mode.

Moving the cursor returns the video, but once the GUI controls disappear, the screen flickers again.

I have tried to take a screenshot of it, but using the GNOME tool actually returns the image.

I have reproduced the problem in Gnome Videos, MPV, and VLC.

Phone picture provided.

1 Like

unsure about EndevorOS (ive never used it) but in other OS’s i’ve tried this helped a lot
sudo kernelstub -o “amdgpu.sg_display=0”
then reboot.

1 Like

If EndevorOS is using systemd-boot, then the above is correct. Not sure, I have not used it.

If grub, edit accordingly:

/etc/default/grub

Add:
amdgpu.sg_display=0

To GRUB_CMDLINE_LINUX=

Update grub.

Also make sure you’re on the latest BIOS.

1 Like

I run this on GRUB because there is a WIN11/EOS dual boot.

I will edit the grub config and report back.

1 Like

The problem reoccurred, even though the line was added to the GRUB config.

Here is the output of journalctl

Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea440000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea441000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea442000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea443000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea444000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea445000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea446000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea447000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea448000 flags=0x0000]
Dec 21 14:31:59 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffea454000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amd_iommu_report_page_fault: 72341 callbacks suppressed
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c0000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c1000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c2000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c3000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c4000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c5000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c6000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c7000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe42c8000 flags=0x0000]
Dec 21 14:32:04 avantbored kernel: amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffe4304000 flags=0x0000]
Dec 21 14:32:11 avantbored rtkit-daemon[1486]: Supervising 11 threads of 8 processes of 1 users.
Dec 21 14:32:11 avantbored rtkit-daemon[1486]: Supervising 11 threads of 8 processes of 1 users.
Dec 21 14:32:11 avantbored rtkit-daemon[1486]: Supervising 11 threads of 8 processes of 1 users.
Dec 21 14:32:11 avantbored rtkit-daemon[1486]: Supervising 11 threads of 8 processes of 1 users.

I just experienced something similar:

  • Framework Laptop AMD 13
  • running Linux
  • suddenly, the screen started to flicker between the normal display and an all-white display
  • nearly identical kernel messages (see below)

However, it didn’t happen while playing videos (I can play videos with mplayer just fine, windowed or fullscreen).

It happend when taking a screenshot (I use a combination of slurp and grim).

The only way to fix it was to kill my composer (sway) and restart it.

It seems to be reproducible so I’ll try the fix suggested above and report back.

[92547.865788] amdgpu 0000:c1:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0005 address=0xfffd1025000 flags=0x0000]
[92552.865514] amd_iommu_report_page_fault: 32601 callbacks suppressed

Edit: first, I rebooted without changing anything - and then I wasn’t able to reproduce the bug. I.e. when I tried to take a screenshot, it worked just fine (no flickering). I’ll wait until the problem happens again to see how frequent it is.

I’ve had the laptop for a few weeks now and hadn’t seen this issue before (even though I usually take lots of screenshots). It might be caused by a recent change. The two recent changes that I can think of are:

  • reset of the BIOS to factory defaults (to troubleshoot another issue), which might include changing the amount of RAM allocated to the GPU (I had initially tweaked the BIOS setting to give more RAM to the GPU, and resetting the BIOS means that it’s now back to default)

  • upgrade the kernel from ??? to 6.8.1

  • add amd-ucode (I hadn’t installed it initially)

To be continuned :slight_smile:

Depending on what kind of linux you are gonna need to turn off scatter gather and use the game optimized igpu memory setting in the bios. That stuff was only very recently fixed, somewhere in 6.9.x (or at least it seems fixed as far as I can tell)

turn off scatter gather and use the game optimized igpu memory setting in the bios

Awesome; the igpu memory setting is one of the things that was changed recently, so with a bit of luck, that’s the reason why.

I don’t remember seeing the scatter gather setting in the BIOS but I’ll figure it out.

Hey, since you seem to be knowledgeable about this - do you know if there is any downside in using the game optimized igpu memory setting, other than reducing the amount of RAM available to the system?

Thanks a bunch!

That’s not in the bios that’s a kernel param.

Appart from wasted ram not that I know of.