I’ve been diagnosing some issues with sleep, and I came across @Mario_Limonciello 's excellent script.
The report is showing:
NVME Sandisk Corp WD Black SN850X NVMe SSD is not configured for s2idle in BIOS
With additional info:
🚦 Sandisk Corp WD Black SN850X NVMe SSD missing ACPI attributes
An NVME device was found, but it doesn't specify the StorageD3Enable
attribute in the device specific data (_DSD).
This is a BIOS bug, but it may be possible to work around in the kernel.
Has anyone encountered and/or fixed this issue?
System: Framework Laptop 13 (AMD Ryzen 7040Series) (Laptop) running BIOS 3.5 (03.05) released 03/29/2024 and EC unknown
Kernel: 6.1.0-21-amd64
I ran it as root and the SSD is showing as configured for s2idle and it’s asking me about suspend cycles.
I’m diagnosing an issue where it wakes from sleep on its own (which is how I found your script).
I tried running with a few sleep cycles of 5 minutes each, and when I returned the system had restarted itself. Looking at the logs, it only made it through the first cycle, and crashed/restarted sometime during the second.
The initial reported issue about the SSD seems to be from me not running as root, so I guess this particular thread can be closed. I’m probably going to switch to something supported, running on Debian 12 has been an absolute nightmare.
That’s the approach I started with. I tried some 6.6 and 6.7 kernels from Debian backports, but for some reason both break my WiFi. Oddly, the card is able to see and even connect to other WiFi networks, like my mobile hotspot, but connecting to my home wifi hangs on device after authentication without any helpful error message other than a timeout. I’m sure that’s fixable.
I’ll keep at it for a bit more and see if I can’t get things rolling with distro hopping. I’ve followed most everything in the guides to no avail.
I’m going to see if I can solve the wifi issue and get 6.7 backports going. I really have no particular allegiance to Debian other than it was the best distro for me when running on Surface hardware, but there’s a bit of “I’ve come this far…” at play…
So my personal opinion is that Debian moves too slowly for modern hardware. You’ll end up with older mesa and linux-firmware for too long.
I think Fedora 40 and Ubuntu 24.04 are great balances between stability and quality. Arch/CachyOS are rolling distros so you’ve always got the latest and greatest, but you also get the regressions the quickest.
I also work on fwupd upstream, and I’ll tell you at least 90% of the release day bugs are Arch users. They’re usually real bugs, they just catch them first because they roll with the punches.
I’m a huge fan of Arch, I eyed it first when sorting which distro to use. CachyOS looks interesting, I’d have to knock the rust off (or the rust accumulated!) from running Debian, but I’m sure it’s just like riding bike – boy do I miss PKGBUILDs!
Which kernel are you running out of the CachyOS offering?
I was able to get the 6.9 cachyos base kernel compiled and installed with the help of that nice script. Things are running great, although I do think I still need to work on some sleep stuff. The lid closed for roughly 7 hours drained about 60% of the battery. I haven’t started messing with anything there, yet.
Make sure you’ve got PPD (0.21 or later!) installed for managing runtime power consumption (I don’t recall if I had it by default in cachy or manually installed) and if you have power issues over suspend you should run scripts/amd_s2idle.py · master · drm / amd · GitLab
Huh? You’re conflating a bunch of stuff. The lid wakeup issue is only on Framework 13. There is no such thing as Framework 15, presumably you mean Framework 16.
What kernel?
If you’re having issues with suspend, share the full output from the script, it will help characterize the situation and most of the debug information needed. Do you have two SSDs? Maybe there is a problem with just one of them? We did make a kernel change that applies policy to more SSDs in the system on AMD side in recent kernels.