Ubuntu 24.10 (started with Ubuntu 24.04, upgraded to see if it would fix the problem).
Which kernel are you using?
6.11.0-18-generic
Which BIOS version are you using?
Version: 03.03
Which Framework Laptop 16 model are you using?
AMD Ryzen™ 7040 Series
Overview:
When closing the lid, the laptop screen shuts down after a little bit (hard to tell precisely when with the lid closed, under a minute) and the laptop suspends (I assume, as it is the default behavior for Ubuntu on lid close).
When re-opening the lid, the screen does not come on. No kepresses of any kind will wake up the laptop. The power button in the top right pulses slowly. Pressing the power button also does not wake up the laptop.
The only way to recover is to hold the power button and forcibly shut off the power, then restart.
I have not yet checked the behavior of plugged in vs not.
I disabled secure boot since some threads about similar issues indicated this could potentially be a problem (though I’m not really sure how).
Because each attempt to fix requires a full power cycle, my testing has been limited.
I also have 7040 series and over time have had numerous sleep/wake issues over time.
Some issues are solved by disabling Bluetooth on sleep and enabling on wake via a system service, this helped a lot. I still had one niggle that look exactly like yours above however my power button LED does not pulse it just remains on and the system is unresponsive. It’s not every time either, just randomly.
It seems there’s a lot of issues with the AMD GPU drivers in the kernel which are causing problems. I know there was a big fix in 6.12.9 as well for some GPU sleep issues.
See How I helped fix sleep-wake hangs on Linux with AMD GPUs | nyanpasu64's blog for another AMD GPU sleep hang that will be fixed in 6.14. I believe this may be the issue you’re having.
In the mean-time changing kernel versions to latest or moving to LTS could help as you as well, though this is somewhat difficult in Ubuntu.
I moved away from LTS to try and pick up a newer kernel in case that was the problem, the issue still exhibited on the LTS version.
I believe the issue was fixed by a BIOS update. I believe from 0.0.3.3 to 0.0.3.5.
Since the update, I have not encountered the issue. It may have been unrelated, but if anyone else encounters this issue, I’d recommend trying to make sure you pick up the latest firmware, and it may work.
Glad to hear that in your case it was just a matter of getting the latest firmware version installed. Based on the initial issue, it sounds like your system may have been locking up during the suspend process.
One thing you can do in the future to try to get eyes on where the system is locking up and why is to run journalctl -r -b1 > ~/Documents/crash.txt after you hard reset the machine. This will collect the system’s main log from just the previous boot with the newest lines presented first and dump them as a text file in your Documents folder.
Feel free to reach out again if you encounter any trouble in the future!
Hey, it’s happening again. At least, there are four different symptoms I’ve experience over the past week:
Spontaneous reboots. The device suddenly just reboots while I am actively working, without warning.
Cannot recover after shutting laptop lid without a hard reset (same as the previous issue which I thought the BIOS update had fixed)
When the power level reaches about 28%, the laptop will generally shut off. Sometimes its waits until it is as low as 20%.
Infrequently (maybe 1 in 10) after a boot, the mouse will not work and I will need to power cycle again. Then the mouse works again.
With number 2, this seems to be pretty easily reproducible by not plugging in the laptop when I close the lid (which is a really common occurrence).
I captured the log in crash.txt. I can upload pieces of it if that would be helpful, though the mouse didn’t work on this most recent iteration and so I power cycled again.
Feb 18 09:55:33 jmw-l kernel: Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
Feb 18 09:55:33 jmw-l kernel: secureboot: Secure boot enabled
But in my BIOS settings I have secureboot disabled.
I recall reading some threads that sleep won’t work properly with secure boot enabled so I’m suspicious of that. But it also doesn’t explain the other behavior.
I noticed you mentioned a pattern with the battery charge level. Do all your symptoms occur regardless of being plugged in or on battery power? Can you try with the battery totally disconnected? I’ve seen bad batteries do strange things in other laptops.
Just out of interest, do you have anything plugged into laptop via the expansion slots?
These sorts of problems are normally caused by specific devices not suspending correctly.
E.g. usb docks. Nvme disks. Bluetooth. Etc.
The symptoms occur regardless as to if it’s plugged in.
They occur regardless of any peripherals I have plugged in.
The device seems to suspend when the battery hits about 20-30% but in that case if I plug it in, it will usually recover. The suspend problem happens regardless of power level.
Yeah I’d give it a shot. I’ve seen bad batteries cause symptoms that look like they’re more likely caused by other hardware, or even software. Spontaneous reboots or crashes, display issues, erratic mouse or keyboard action, all sorts of puzzling stuff. It’s usually pretty easy to rule out (and to fix!) so I always like to check for this when troubleshooting anything that’s not obviously a software problem.
I think you’ve got the guide for the 13 there! Here’s the one for the 16:
Though it actually is 18 steps and rated “moderate” difficulty, it is no more than doing all the normal steps required to get to anything on the inside (remove touchpad and spacers, remove keyboard, remove midplate), then removing the battery. Yes, the midplate has 16 or so screws, but they’re all labeled and captive, so you can’t lose them. Even the screws on the battery are captive.
When I think of difficulty in a repair process, it usually amounts to opportunities for things to go wrong, like steps involving heat, chemicals, very fragile parts, finicky alignments, etc. There’s really none of that here. This is really just a bit of a time consumer because of the number of screws in the midplate, but overall, I’d say this should take no more than 10 minutes, and the risk is virtually zero. After going inside my 16 at least a dozen times now, I’d probably be in and out in about 3.
I’ll second what CWAL says about replacing the battery. As long as you can handle a screwdriver (which not everyone on the forums is comfortable with due to either blindness, shaky hands, or etc.), then a battery swap should be no problem. I could probably replace my battery in under 2 minutes if I wanted to.