Heavy video stutter on Framework Laptop 16 (AMD Ryzen™ 7040 Series)

Hi everyone,
I moved from W11 about a week ago and I have encounter a problem that don't know how to fix.
When I try to play a large 3GB video in MP4 the video is stuttering even when using VLC. I used advice from chat GPT such as:

  • Download missing codecs: sudo apt install ubuntu-restricted-extras
    sudo apt install libavcodec-extra

Update drivers:sudo apt update
sudo apt upgrade

and check if setting in VLC are correct and plaid with some and no success.

I would really appreciate help

Best
Tadej

Quick Question: Have you tested in other media players?
Can you let us know your graphics Card?

sudo lshw -C video

description: VGA compatible controller
product: Phoenix1
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:c1:00.0
logical name: /dev/fb0
version: c2
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix vga_controller bus_master cap_list fb
configuration: depth=32 driver=amdgpu latency=0 resolution=2560,1600
resources: iomemory:7c0-7bf irq:47 memory:7c00000000-7c0fffffff memory:90000000-901fffff ioport:1000(size=256) memory:90500000-9057ffff

I also try on the default media player and it's a bit better, but still video is stuttering to a degree that it is unwatchable.

and when I watch it on W11 it works fine. I'm keeping W11 on my device just in case

This is what Perplexity is suggestion, but I'm not sure about it.

Permanent AMDGPU Video Fix
Update Mesa drivers (AMD open-source):

text
sudo apt update && sudo apt full-upgrade
sudo apt install mesa-vulkan-drivers libva-mesa-driver-mesa vainfo
Enable VA-API hardware decoding:

text
sudo apt install vlc-plugin-vaapi libva-wayland2
Test VLC again: Tools > Codec Information > should show "VAAPI" or "VDPAU" under Video decoder.

Welcome to the Forum!

So, You have a Dual-Boot System with Windows, yes? Are Secure Boot and Fast Boot in BIOS disabled? Is Fast Start-Up in Windows disabled?

Because of Codecs: When You open Gnome Software and scroll down, You see a Codecs Button. Click on it and You get a List of Codec Packages. Install them all. In Terminal type sudo apt install ffmpeg zorin-os-restricted-extras to install additional Codec Support. Then reboot and try it again.

Thank you for a quick reply Ponce-De-Leon,
I have disabled Secure Boot and Quick Boot, installed all codecs in the Gnome software and the additional using the Terminal and the stuttering still persist. Actually I have realised that also the you tube also has the same problem even on low ress.
AI is constantly suggesting that this might the wayland issue. Any thoughts?

Why not switch to Xorg and test it?

1 Like

I forgot to ask: Is VLC installed as Flatpak or .deb/APT Version? Because of Youtube: Is the Browser what You use for it installed as flatpak or .deb/APT Version? Did you tried it with disabled Hardware Acceleration in the Browser?

That is worth a Try, too. Only to add how You can do that:

Go to the Login Screen. Click there on Your Profile so that the Password Field appears. When it is appeared, You should see a Gear Icon in the bottom right Corner. Click on it and choose the Option ''Zorin Desktop on Xorg'' and then log in.

What are the downsides for switching to xorg?

I have tried to do it but the gear icon doesn't appear in the login screen

Did you logout? With the lock screen it doesn't work.

there are BIOS updates available for that system

and Radeon Driver updates for Linux on the AMD web site
Linux® Drivers for AMD Radeon™ and Radeon PRO™ Graphics

i haven't tested either.
best of luck Steve ..

1 Like

hi guys,
I have created a new user and everything works well there. So, I must have messed up some settings when I was trouble shooting black screen when trying to record screen with Slack app. And now also the gear icon appears.

Thanks a lot for your help.

BTW do you recommend switching to xorg for better functioning of screen recording apps?

1 Like

Yes, many screenshot/screen recordings/remote screen-sharing programs work much better in Xorg.

It is an older Standard but is more reliable. Wayland is orientated for more modern Hardware but how good it works depends on the Implementation.

Did You made any Changes in the /etc/gdm3/custom.conf File?

To say that in common ... I think it is better to look at the Program You want to use and check if it supports Wayland or not.

The gear icon appear only for the secondary account not for my primary (administrator). So now when I have switched to a new account only for the one that has video issues the great icon appears.

I don't think I did any changes is the `/etc/gdm3/custom.conf. What changes could be making problems?

You have in the File this Passage:

[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false

When the # before #WaylandEnable=false is missing, You don't get the Gear Icon because the wayland Option is disabled.

This is what it is in my file:

Uncomment the line below to force the login screen to use Xorg

#WaylandEnable=false

So, I guess something else must be causing it.

Chat GPT is suggesting for force xorg, since the gear icon is not appearing:

Then we force it.

Run this:

sudo nano /etc/gdm3/custom.conf

Find this line:

#WaylandEnable=false

Uncomment it so it becomes:

WaylandEnable=false

Save:

  • Ctrl+O
  • Enter
  • Ctrl+X

Then reboot:

sudo reboot

This will completely disable Wayland and force Xorg for all users.

Before You do that: When You type in Terminal echo $XDG_SESSION_TYPE what Output do You get?

Wayland

Okay, then You should get a Gear Icon ... You were on the Login Screen and not on the Lock Screen, yes? Because on the Lock Screen, you don't have that Option. That You had the Password Field, I saw.

I know what the log in screen is but the gear icon doesn't appear. I know because it does appear for the secondary user but somehow it doesn't appear for the admin use.