[TRACKING] Lots of stuttering and lagging on AMD + Ubuntu 22.04

Hi,

Has anyone experienced lots of lagging and stuttering when using an AMD Ryzen CPU + Ubuntu 22.04? Following all the steps outlined on the guide and installing the oem kernel didn’t seem to help. I’ve also noticed other weirdness like the screen brightness quickly changing and the fan ramping up and down for about a second every few minutes.

Thanks in advance for the help!

1 Like

No, I would have asked you if you had installed the Framework Ubuntu OEM kernel first. Since you’ve done that, I am curious about the power savings you might be using.

I ran Ubuntu 22.04 on my framework 12th gen for over a year without any issues. It was very reliable.

Thanks! My question was aimed at the AMD Ryzen version of the laptop rather than the Intel ones.

Same here, followed all the directions for Ubuntu and ended up with a machine that felt downright terrible. I ended up shrinking my partition and triple booting with Fedora 39 and Windows 11. Both of them seem to be running perfectly fine by comparison. Fedora’s screen brightness was doing the same flickering thing until I turned off auto-brightness.

This is a known problem, they’re working on a new kernel to fix the freezes. Pretty sure it was mentioned in one of the forum posts / guides I read over the past week :laughing:

1 Like

Need additional details:

  • Just making sure you on the correct kernel, as merely installing is not enough. uname -r

  • Is this happening with anything attached (external displays, etc).

  • Connected to power or on battery?

@Matt_Hartley

  • I’m running the OEM kernel.
  • No monitors or other accessories installed.
  • I have noticed that things get worse when the laptop is charging.

image

1 Like


Just wanna chime in and say I’m experiencing the same thing. My laptop is not plugged in, nor has any external monitors plugged in. I have two usb-c cards in the back ports, 1 usb-a on the front left and the 1tb storage card on the front right. I’m experincing lagging and stuttering in wayland desktop. xorg seems to work alright but sometimes locks up completely when I try to log in to it.

1 Like

Yeah same thing. I thought a new oem kernel coming is supposed to fix it?

2 times I wake from suspend and the screen goes black and I have to hard reboot by holding the power button.

Lots of freezes at random times.

Then I’ll get a whole day with no freezes and perfect sleep wakes.

1 Like

All affected,

I am going have setup a test machine matching your configuration (distro, kernel and BIOS). For us to dig deeper here, I’d like to have the following to duplicate.

  • This will assume for all in thread, the correct LTS and kernel are verified by the user. Some have clarified this already.

  • What is open/running when the event happens - how might I replicate this? Expand on “Lots of freezes at random times.”

  • Powered or battery powered (some of you have already addressed this).

  • Updated packages, today, as there is a lot of activity here.

  • And this output:

sudo apt install lshw dmidecode -y && sudo dmidecode | grep -A3 'Vendor:\|Product:' && sudo lshw -C cpu | grep -A3 'product:\|vendor:' && echo "Kernel version: $(uname -r)"

The idea here is we need to be 100% on the same page as new BIOS roll out in the near future (like UEFI shell) and that the right kernel is used 6.1.0-1023-oem.

And lastly…a reminder as we iron this out.

Linux

Unfortunately, the last firmware release provided by AMD to fix critical issues also introduced a regression on Linux. Specifically, certain kernel versions have amdgpu drivers that result in the system hanging. AMD has created the firmware fix for this and is currently completing validation on it. We’ll put this through an accelerated test and release process to get it out to you as quickly as possible. We anticipate this being available in mid October (roughly), and we’ll share it via LVFS.

Note that 7040 Series is still a very new platform and AMD’s open source teams will continue to actively develop and improve Linux kernel driver support beyond this specific firmware fix. We’ll keep updating our guides to point you to recommended configurations, and we’ve created a Community wiki post (here) with an overview of the latest status.

1 Like

@juchong

On BIOS 03.02 for testing now. Thus far, on 6.1.0-1023-oem, no freezing yet.

Update, still no issues experienced. Firefox being used, terminal as well.
Fractional scaling 125%.

@Matt_Hartley

I believe you’re assuming that the issue is graphics-related. I do not believe this is the case. Try setting scaling to 100% and then increase the thermal load of the laptop (but don’t overdo it). Try opening a bunch of browser tabs or running a few programs in the background. The goal is to cause the laptop to thermal throttle while staying below the fan threshold. This behavior also explains the correlation between charging and stuttering since additional heat will wind up getting dumped into the system due to charging.

Just trying to replicate it, graphics or otherwise. Thus far, in Firefox, no success and my journalctl and dmesg have not shown anything concerning. I actually suspect it’s BIOS related, but again, duplicating gives me something to pass along to engineering and for me to test against BIOS we’re testing against.

I will put it at 100% and run multiple browser tabs in Firefox and Chrome to replicate. I will also toss in s-tui with stress and do some pounding on that as well. Going to also see about doing this while the laptop is charging. Firefox is behind the other windows, Chrome is in the screenshot.

End game - replication - that’s all I am looking to do with this as I suspect the BIOS release is the issue here. If I cannot replicate it, then something being run is triggering this and not being shared so I can replicate it.

With 03.02 BIOS, there is some related things to be worked through and tested corrected in a future release happening soon.

Edit: Tossing everything I can at it. Chrome, Firefox, multiple tabs, YT playing, Basemark stressing in Chrome, s-tui (with stress active), and I am actively using it for file browsing and opening software. I am connected to power, in charging state.

Unfortunately, the last firmware release provided by AMD to fix critical issues also introduced a regression on Linux. Specifically, certain kernel versions have amdgpu drivers that result in the system hanging. AMD has created the firmware fix for this and is currently completing validation on it. We’ll put this through an accelerated test and release process to get it out to you as quickly as possible. We anticipate this being available in mid October (roughly), and we’ll share it via LVFS.

Ideally, we need to specifically identify why this is happening for you, not me, on 03.02 and on later BIOS I am testing as well. As it sits now, it’s a tiny bit warm, lags occasionally…but I have been tossing a LOT at this. Will move my USB-C expansion card around, while testing.

Again, please having my requests being met will help tremendously - literally this, even if it feels unneeded, do so anyway please for those who have not done this thus far (I have @juchong’s kernel details thus far):

sudo apt install lshw dmidecode -y && sudo dmidecode | grep -A3 'Vendor:\|Product:' && sudo lshw -C cpu | grep -A3 'product:\|vendor:' && echo "Kernel version: $(uname -r)"

and

  • This will assume for all in thread, the correct LTS and kernel are verified by the user. Some have clarified this already.
  • What is open/running when the event happens - how might I replicate this? Expand on “Lots of freezes at random times.”
  • Powered or battery powered (some of you have already addressed this).
  • Updated packages, today, as there is a lot of activity here.

and checking dmesg and see if you can catch any errors.

In my testing, it took doing all of this just to get the system to lag at all.

@Matt_Hartley, thanks for taking a look at this! Strangely, I experienced the issue immediately after booting into the new kernel. No user applications were actively running except for the stuff happening in the background as the PC finished booting. I’ve also noticed that the issue " disappears" randomly after suspending and waking the laptop. Sometimes, the laptop will work perfectly, and other times, it will stutter quite a bit.

EDIT: My expansion config as per:
image

  1. USB C
  2. DVI
  3. USB C
  4. USB A

1 Like

Awesome, thank you.

I am almost positive this is BIOS related as me just getting to OEM C is painful. But once there, all was well. Going to move the USB-C around, reattach the charger, etc. You’re doing everything correctly, so this is not on you, appreciate it.

Anything interesting showing up in journalctl -b

Not suggesting their is a solution as I suspect it’s 03.02, but I’d love to have something to latch onto so I can vet this in the upcoming BIOS release (on my other machine).

Appreciate you working through this. It does get better, but it’s a process. :slight_smile:

Okay, this is crazy helpful :raised_hands: - awesome, appreciate it, setting this up now. And just cards, nothing attached? For the sake of replication.

Correct, other than when the charger is connected while charging. Oh! And I’ve always used port 1 to charge.

1 Like

Completely agree. This smells like an old issue I’ve seen on ancient 3rd-gen i3 and i5 CPUs where the CPU would get stuck in an “energy saving” configuration that limited boost. This would also explain the suspend-resume behavior.

1 Like

Quick question, DVI? You mean DP (Display Port) or HDMI expansion card?

In the meantime, testing with:

  1. USB C
  2. DP
  3. USB C
  4. USB A

Edit: 10 tabs, Firefox, and Chrome. YouTube videos actively displayed and opening software. Still not able to replicate the issue. Might be time to start pulling out the expansion cards, running from battery. Stripping down the laptop to the bare bones to see where the failure is happening.

  • Remove any and all expansion cards.
  • Install and run something to stress things.

sudo apt update && sudo apt upgrade -y && sudo apt install sudo apt install s-tui stress -y && s-tui

Then tab over to stress to run a stress test. This will safely pound on the system. Test the touchpad, is there lag? If not, open one program a time, test the touchpad again, freezing yet?

Now this may freeze right off with just the upgrade. If this is the case, everything removed, we’ll bounce this into a ticket as we need to get a look at the logs. When you open the ticket, please copy a link to this thread into the ticket so we know that this is the same issue and person.

Display Port :slight_smile:

I’ll give this a try this evening (after work).

1 Like