Skip to content

FW Desktop: cannot resume from suspend #116

Open

Description

@n-peugnet

Device Information

System Model or SKU

  • Framework Laptop 12 (13th Gen Intel® Core™)
  • Framework Laptop 13 (11th Gen Intel® Core™)
  • Framework Laptop 13 (12th Gen Intel® Core™)
  • Framework Laptop 13 (13th Gen Intel® Core™)
  • Framework Laptop 13 (AMD Ryzen™ 7040 Series)
  • Framework Laptop 13 (AMD Ryzen™ AI 300 Series)
  • Framework Laptop 13 (Intel® Core™ Ultra Series 1)
  • Framework Laptop 16 (AMD Ryzen™ 7040 Series)
  • Framework Laptop 16 (AMD Ryzen™ AI 300 Series)
  • Framework Desktop (AMD Ryzen™ AI 300 PRO Series)

BIOS VERSION

$ sudo dmidecode --string bios-version
03.02

DIY Edition information

Memory: 64Go version
Storage: WD BLACK SN850X 1000GB

Describe the bug

Cannot wake/resume from suspend after some time (around 20 minutes, but not sure exactly how much yet)

Steps To Reproduce

Steps to reproduce the behavior:

  1. run systemctl suspend
  2. wait for some time
  3. try to resume using either the power button or with a USB device
  4. nothing happens, the machine needs to be forced to power off.

Expected behavior

The machine should wake up form suspend.

Screenshots

If applicable, add screenshots to help explain your problem.

Operating System (please complete the following information):

  • OS/Distribution: Debian
  • Version: Forky
  • Linux Kernel Version: Linux framework 6.16.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.16.9-1 (2025-09-27) x86_64 GNU/Linux

Additional context

See also my post on the forum:

I noticed a few strange things related to suspend in dmesg:

$ sudo dmesg | grep suspend
[    0.301919] Low-power S0 idle used by default for system suspend
[    2.596359] nvme 0000:c1:00.0: platform quirk: setting simple suspend

This post seems to indicate that it could be an issue with the NVME drive:

[the sleep state] form which, your system seems to never come back up ... Probably due to unsupported/unstable/misconfigured/buggy firmware/settings of an NVME storage device

This same post suggest to use the S3 sleep state instead but when checking which state is used by suspend I get the following:

$ cat /sys/power/mem_sleep 
[s2idle]

Which means the machine does not support S3 suspend state (should be [s2idle] deep otherwise).

This is unfortunate as I would like to be able to use suspend and I would also like to use S3 suspend instead of S0.

The machine wakes up correctly from S4 state though (systemd hibernate) so I guess I will use only that until this is fixed.

Activity

  1. JohnAZoidberg commented on Oct 11, 2025

    @JohnAZoidberg
    Member

    This is unfortunate as I would like to be able to use suspend and I would also like to use S3 suspend instead of S0.

    S3 has not been supported on AMD systems for the last generations.
    Modern Standby or S0ix/s2idle is the modern replacements and also recent Intel CPUs are requiring it.
    It has many different names, which is confusing "S0 idle" is another name for it. But it is an equivalent form of sleep to S3.

    What are you kernel parameters? cat /proc/cmdline

  2. n-peugnet commented on Oct 11, 2025

    @n-peugnet
    Author

    What are you kernel parameters? cat /proc/cmdline

    BOOT_IMAGE=/@rootfs/boot/vmlinuz-6.16.9+deb14-amd64 root=UUID=47f7df25-eadb-4067-a5e6-cda3b293a453 ro rootflags=subvol=@rootfs quiet fbcon=font:VGA8x16

    The args before quiet may be related to BTRFS and are added automatically, I don't know exactly where or how.

    I also noticed that it does not always happen, it seems to always correctly wake up from short suspends. I did not yet manage to recreate the issue reliably (it happened in total at least 3 times).

  3. Lukew4lker commented on Oct 11, 2025

    @Lukew4lker

    Literally just saw this as I was getting ready to test graphics cards today and I got my system stuck in S0ix on windows and it would not resume. I still need to check windows settings but attached is the EC log. (no graphics card connected, fresh install of Win11)

    S0ix doesn't work.txt

  4. Lukew4lker commented on Oct 11, 2025

    @Lukew4lker

    So I can't replicate this right off the bat. Windows has balanced power mode and is set to sleep when I push the power button. all framework drivers are installed and I'm still on 3.03.

    Last night I turned off the desktop by pushing the power button which is set to put the machine to sleep as configured in windows 11. Started this morning by prepping my test spreadsheets and documenting hardware setups. I noticed the power light flashing which doesn't happen in Linux and went to query the powerstate as I wanted to add that to test scenarios. After documenting, I pushed the power button and the machine wouldn't turn on which leads me to believe it might take longer to surface. I will sleep it overnigh to test again.

  5. n-peugnet commented on Oct 11, 2025

    @n-peugnet
    Author

    I just replicated it by staying in suspend state for 20 minutes, I will try a shorter period to see if it can be reproduced faster.

    EDIT: 15mins seems to be enough to reproduce the issue


    Also note that to be able to boot again I need to keep the power button pressed until the machine powers off, then on the next boot, it will power off by itself after a few minutes. The following boots behave normally.

  6. Lukew4lker commented on Oct 12, 2025

    @Lukew4lker

    Duplicated. The system was put to sleep last night and woke up at about 830. It did not display the issue we were seeing where it wouldn't come out of s5.

    There was an RX580 I needed to collect so the system was put to sleep again and is now exhibiting the problem about an hour or so later. Please see the EC log attached along with setup photos. Let me know if you want to do something with this system as I'm going to leave it in it's current state while I test the Polaris card. BIOS does not have any configuration changes.

    SleepingBeauty20251012.txt

  7. added
    Desktop - AMD Ryzen AI 300
    on Oct 13, 2025
  8. n-peugnet commented on Oct 22, 2025

    @n-peugnet
    Author

    I tried to look a bit about this issue. I noticed these two warnings in dmesg that happen on boot:

    [    7.131367] nvme nvme0: using unchecked data buffer
    [    7.134447] block nvme0n1: No UUID available providing old NGUID
    

    Based on this post:

    The error "block nvme0n1: no uuid available providing old nguid" means the kernel can't retrieve the GUID (NGUID) for the new SSD, which is a detection issue.

    Ensure the SSD is properly seated and connected. Reset BIOS to default and reconfigure. Try a different slot if available. Check if BIOS "Secure Boot" or "Fast Boot" settings are interfering with disk detection.

    ...it could mean that the SSD was not properly seated. which could be related to my issue. So I tried to reseat it with no change.

    Then I tried the M.2 port on the back of the motherboard. It managed to boot but was a lot longer that usual, before the memory check (I disabled fast boot). The log messages were still there so I decided to poweroff the machine and put it back in its original slot, so that it boots as fast as before. But at this moment the drive stopped working:

    Image

    These messages may also be related to my original issue:

    nvme nvme0: controller is down: will reset: CSTS=0xffffffff, PCI_STATUS=0xffff
    nvme nvme0: Does your device have a faulty power saving mode enabled?
    [...]
    nvme 0000:ci:00.0: Unable to change power state from D3cold to D0, device inaccessible.
    

    I didn't try to reseat it in the port of the back, as I thought I just blew my FS. Instead I decided to put it back in the one on the front, rebooted, and everything seems to be back to normal (with still the two warning of the beginning of this post).

  9. vglfr commented on Oct 26, 2025

    @vglfr

    In the same situation I'm getting:

    [  685.944994] PM: suspend entry (s2idle)
    [  685.953329] Filesystems sync: 0.008 seconds
    [  685.955370] Freezing user space processes
    [  685.956529] Freezing user space processes completed (elapsed 0.001 seconds)
    [  685.956531] OOM killer disabled.
    [  685.956531] Freezing remaining freezable tasks
    [  685.979835] Freezing remaining freezable tasks completed (elapsed 0.023 seconds)
    [  685.979847] printk: Suspending console(s) (use no_console_suspend to debug)
    [  689.008115] mt7925e 0000:c0:00.0: Message 00020007 (seq 7) timeout
    [  689.008151] mt7925e 0000:c0:00.0: PM: pci_pm_suspend(): mt7925_pci_suspend [mt7925e] returns -110
    [  689.008170] mt7925e 0000:c0:00.0: PM: dpm_run_callback(): pci_pm_suspend returns -110
    [  689.008181] mt7925e 0000:c0:00.0: PM: failed to suspend async: error -110
    [  689.008311] PM: Some devices failed to suspend, or early wake event detected
    

    Apparently wifi module is to blame. NixOS.

  10. dracid commented on Jan 17, 2026

    @dracid

    Same happened to me a couple of times on latest Bazzite Gnome with latest BIOS.

  11. francisdb commented on Jul 15, 2026

    @francisdb

    I hit this too (Framework Desktop AI Max 300, BIOS 03.05, Fedora 44) and did some systematic digging that answers a few open questions in this thread. Summary: it is a wedge at S0ix entry, not a failure to wake, suspend duration is irrelevant, and the EC stays alive throughout.

    • Frequency / reproducer: roughly 1 in 50 s2idle cycles (~2%). Looping rtcwake -m mem -s 300 reproduces it within a night (5 occurrences across ~270 automated cycles here). It happens on stock Fedora kernels and on patched ones (including the amdgpu device-link fix for the rear-USB issue FW Desktop: rear usb-A dead after suspend when iGPU = 96GB, kernel version < 7.2 #163, which is unrelated to this), at 60 s and 300 s cycle lengths alike.
    • Duration is a red herring: because the machine wedges while entering S0ix, a wake attempt fails no matter how long you wait - trying after 15-20 minutes just happens to be when people notice. I have had clean resumes after 29 h suspends and wedges on 60 s cycles.
    • It wedges at entry, per the EC's own indicators: on every occurrence the power button LED stays SOLID ON instead of switching to the breathing pattern (the EC only starts breathing once the platform actually reaches S0ix), and my fan RGB LEDs keep the last host-set color instead of going dark as on every successful sleep. The EC never saw SLP_S0 assert.
    • No wake source responds: RTC alarm, USB keyboard/mouse, wake-on-LAN magic packet, short power-button press - all dead. Only long-press power-off recovers it.
    • The EC survives the whole event: EC console timestamps run continuously through a 6 h wedge (uptime delta matches wall clock), and host EC traffic simply stops at the moment of the wedge. So EC is healthy; the SoC/PMFW side is what disappears.
    • The kernel is done by then: kernel logs always end after the noirq suspend phase; hung-task/softlockup/hardlockup panic-to-pstore armed across many cycles never fires; amd_pmc s0ix_stats show full residency on every good cycle right up to the fatal one. Everything the OS controls completes; the hang is in the platform firmware handoff into S0ix.

    Given it also reproduces on Windows (comment above with EC logs), this looks squarely like a PMFW/SMU issue for Framework/AMD. Happy to run any instrumented test; the rtcwake loop makes this reproducible in hours. One suggestion for the EC team: the EC console ring buffer wraps in under a minute (periodic fan-stall logging), so by the time the host is force-rebooted the fatal cycle's EC view is gone - an EC-side "S0ix entry timeout" marker or a longer/persistent EC log would make field diagnosis much easier.

  12. francisdb commented on Jul 16, 2026

    @francisdb

    Follow-up with additional findings after more instrumented testing (7 occurrences total now on my machine):

    • Cycle length matters: 300 s suspend cycles reproduce the wedge roughly 10x more often than 60 s cycles (~4% vs ~0.3% per cycle here). Short cycles also trigger "low hardware sleep residency" warnings from amd-s2idle, so my guess is short sleeps often do not settle into the deepest hardware state where the wedge lives.
    • Possible heisenbug: ~200 cycles driven by AMD's amd-s2idle test tool produced zero wedges, while a plain rtcwake -m mem -s 300 loop keeps reproducing it (expected ~2-3 wedges in that many cycles). Whatever the instrumented tool does around the transitions appears to perturb the timing enough to hide the bug.
    • STB is unavailable on this platform: enabling the amd_pmc Smart Trace Buffer (amd_pmc.enable_stb=1) fails: the SMU firmware rejects the S2D init command (SMU cmd failed. err: 0xff) and the whole amd_pmc probe then fails, silently breaking s2idle accounting. (As a side effect the failed probe also leaks its LPS0 handler registration and a module reload then hits a list_add kernel BUG; Reported at https://bugzilla.kernel.org/show_bug.cgi?id=221759)
    • EC console cannot carry the evidence across a reboot: the firmware writes PORT80 checkpoint codes around the sleep transitions into the EC console (3F54/3F58 at entry, 3F64/3F68 at exit here), which would pinpoint where in the entry sequence the firmware died - but the console ring only holds a few hundred lines and the reboot's own EC traffic (POST codes + cros_ec driver probing) wipes it before userspace can read it, even with all host-side EC log spam silenced. A persistent EC-side marker (e.g. "S0ix entry timeout, last PORT80 = X") would make field diagnosis of this issue possible.

    At this point I believe everything host-side observable has been collected; further diagnosis needs PMFW-level tracing or a debug BIOS from Framework/AMD. Happy to run whatever instrumented build you can provide - the rtcwake loop reproduces this within a night (typically 10-45 cycles).

    Also reported at https://bugzilla.kernel.org/show_bug.cgi?id=221760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Desktop - AMD Ryzen AI 300

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions