omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Suspend not working in Omarchy 3.3

Open erikwestlund opened this issue 10 months ago • 18 comments

System details

Framework 13 AI 370

What's wrong?

Updated to the newest Omarchy 3.3 and enabled suspend. I first tested suspending and waking up immediately after, which worked without issue.

I then took a photo of the battery level -- 72% -- hit suspend and closed the machine and went to sleep. I had no applications running at sleep except Chromium.

This morning the machine would not wake from sleep with any key presses, pressing the power button, etc. It needed a long-press hard poweroff. Upon boot, the battery had drained to 18%.

So it appears:

  1. On Framework 13 AMD system, suspend does not reliably wake up
  2. Even were it to, battery drained heavily in sleep -- I would expect a small drain, but not 50%.

Appreciate the efforts to bring suspend to our systems. Happy to continue testing.

erikwestlund avatar Jan 09 '26 12:01 erikwestlund

Since hibernation and suspend are similar,

If anyone has issues with hibernation, go to #4158.

Tsurgcom avatar Jan 09 '26 14:01 Tsurgcom

I think we'll need some help from @eclecticc. I've noticed the same issues on my F13. And we're just using standard Linux tooling for this, so think suspend-to-hibernate and suspend going awry is probably a general issue that would affect many if not all distros.

dhh avatar Jan 09 '26 16:01 dhh

I'm having what appears to be the same problem, only this is a desktop pc (AMD CPU and GPU).

System won't wake up after suspend. I can hear the fans start spinning etc, but nothing else happens. The screen stays blank and key presses have no effect.

Journalctl does not have any entries between the suspend and the next hard reboot (in other words, no sign of attempted waking of the system whatsoever).

Suspend used to work on same system before upgrade to Omarchy 3.3.3 btw.

(Seems like most people have this problem with laptops, so I thought inform that it is also a problem on desktops).

andrewib avatar Jan 10 '26 12:01 andrewib

I agree with DHH this is unlikely just an Omarchy issue.

I think there’s a clue in how much my battery drained on suspend. I lost 50% on the framework 13 on suspend overnight.

Last night I had disabled suspend and my laptop opened fine and lost less battery (the usual 10-20% or so, I unfortunately don’t have exact numbers.)

So something’s going on during suspend, unless my first night suspended was a fluke or it’s my system config in particular.

erikwestlund avatar Jan 10 '26 13:01 erikwestlund

UPDATE: Root cause found - not PSP related

What I found: FUSE mounts (rclone mounting Google Drive) blocking process freeze during suspend.

Diagnosis:

dmesg | grep "refusing to freeze"
# Freezing user space processes failed after 20.006 seconds (8 tasks refusing to freeze)
# task:fd  state:D  fuse_lookup -> request_wait_answer

Fix: Stop FUSE services and unmount before suspend:

# /etc/systemd/system/fuse-suspend.service
[Unit]
Description=Stop rclone and unmount FUSE before suspend
Before=sleep.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'systemctl --user -M USERNAME@ stop rclone-gdrive.service 2>/dev/null || true; sleep 1; fusermount -uz /home/USERNAME/gdrive 2>/dev/null || true; fusermount -uz /run/user/1000/gvfs 2>/dev/null || true; fusermount -uz /run/user/1000/doc 2>/dev/null || true; killall -9 gvfsd-fuse 2>/dev/null || true; exit 0'

[Install]
WantedBy=sleep.target

Important: Simple lazy unmount (fusermount -uz) is NOT enough. Processes already stuck in FUSE calls remain stuck. Must stop rclone service first and kill gvfsd-fuse.

sudo systemctl enable fuse-suspend.service

Check if this affects you:

mount | grep fuse
ps aux | grep -E "(rclone|sshfs)"

Suspend now works perfectly - clean S3 sleep in ~2 seconds.


Original comment (incorrect conclusion):

~~This PSP (Platform Security Processor) error is the root cause. GPU Trust Agent fails to load, aborting suspend and causing system hang.~~ (Incorrect - PSP error is non-fatal)

Hardware:

  • GPU: AMD Radeon Vega 10 (integrated)
  • Omarchy 3.3.3

gulp avatar Jan 10 '26 18:01 gulp

Intel and AMD have some tools to debug entering/exiting suspend:

  • https://github.com/superm1/amd-debug-tools
  • https://github.com/intel/S0ixSelftestTool
  • https://github.com/intel/pm-graph

Unlike sleepstudy on Windows they're not very helpful to figure out power consumption during suspend, but it sounds like you guys are experiencing issues with entering/exiting.

JohnAZoidberg avatar Jan 13 '26 17:01 JohnAZoidberg

Can somebody please share kernel logs after this kind of failure ? It may help a lot with debugging this issue Look at the output of journalctl --list-boots and find IDX of failed boot And then journalctl -k -b [replace with founded IDX] > boot.log

killeik avatar Jan 27 '26 11:01 killeik

This seems to have solved Hibernation (and Suspend + auto-Hibernation after 30 minutes) for me and the identified issue of Missing kernel resume parameters. Your kernel cmdline has NO resume= or resume_offset= parameters.:

  • https://github.com/basecamp/omarchy/issues/4259#issuecomment-3804954054

sspaeti avatar Jan 27 '26 12:01 sspaeti

Would be great if we could turn those fixes into a generic patch, so more systems can have a working hibernation option out of the box 👌

dhh avatar Jan 27 '26 12:01 dhh

This seems to have solved Hibernation (and Suspend + auto-Hibernation after 30 minutes) for me and the identified issue of Missing kernel resume parameters. Your kernel cmdline has NO resume= or resume_offset= parameters.:

I wrote it originally in thread of adding hibernation - systems with modern systemd do not need to set resume offset: https://github.com/basecamp/omarchy/pull/1417#issuecomment-3460798847

Can you please share boot logs and also try without resume/resume_offset parameters, just with amdgpu.gpu_recovery=1 amdgpu.noretry=0 ?

killeik avatar Jan 27 '26 13:01 killeik

Can you please share boot logs and also try without resume/resume_offset parameters, just with amdgpu.gpu_recovery=1 amdgpu.noretry=0 ?

I didn't test the two parameters, but I could fix my remaining VPE errors with this fix: https://github.com/basecamp/omarchy/issues/4158#issuecomment-3819678691

Here are some errors I got when the system crashed - which now I know was connected to a failed resume from Hibernation or Suspend. Luckily, this last config solved it finally - will revert back for a longer test - but last hibernation and suspend didn't trigger the VPE and GPU to crash.

Logs:

  Nov 10 15:12:44 - amdgpu: [gfxhub] page fault (Process brave pid 75926)
                    PERMISSION_FAULTS: 0x3 (Memory access violation)

  Nov 10 15:12:54 - amdgpu: ring gfx_0.0.0 timeout
                    (GPU stopped responding)

  Nov 10 15:12:56 - amdgpu: MES failed to respond to msg=RESET
                    amdgpu: Ring gfx_0.0.0 reset failed
                    (Driver CANNOT recover - system dead)

 AMD GPU Crash Analysis

 Root Cause: MES (Micro Engine Scheduler) Failure

 Your AMD Radeon 890M GPU crashed due to the same issue as previous crashes - the MES subsystem becomes unresponsive and cannot recover.

 Crash Timeline (Jan 21, 2026)

 08:32:27 - System resumed from suspend (from Jan 20)
 08:32:27 - VPE queue reset FAILED immediately on resume
 08:32:27 - IB ring test FAILED (-110) - GPU already degraded

 ~52 minutes of operation in degraded state~

 09:24:15 - MES failed to respond (first error)
 09:24:15-09:24:55 - MES failures cascade (15+ failures in 40 seconds)
 09:24:55+ - MES ring buffer completely full
 09:25:xx - System frozen, required hard reboot

sspaeti avatar Jan 29 '26 20:01 sspaeti

Might be related to driver bug: https://bugzilla.kernel.org/show_bug.cgi?id=220812 https://lists.freedesktop.org/archives/amd-gfx/2025-December/134729.html https://github.com/torvalds/linux/commit/6b2989ac5e8c496c1814d7961bee6f2d05382b3e

GMichu avatar Jan 30 '26 10:01 GMichu

I still have a lot of crashes, multiple times a day. Very annoying. Updated to the latest versions just today, but it came back immediately. Based on this hint:

I am using Arch linux on Ryzen AI 9 365. From Monday Feb 09 I used kernel 6.18.8 and from Wednesday - 6.18.9, cmdline amdgpu.cwsr_enable=0. System seems works without hangs and errors (6.18.7 had page fault and 'MES ring buffer is full' problem). I didn't test stability with usage of local LLMs and without cwsr_enable parameter yet. The only problem left is rare flickering in web browsers on some websites (it is also present in kernels 6.17.*), but maybe it linked somehow with Niri or high frequency display, need to do more experiments. https://gitlab.freedesktop.org/drm/amd/-/issues/4749#note_3329617 (got it from here: https://github.com/ROCm/ROCm/issues/5844#issuecomment-3898901671)

I added amdgpu.cwsr_enable=0 - I'm reverting to how it goes when I ran it for a while. (edit after 3 weeks: I think it solved the GPU errors after suspend, didn't had a single one since)

sspaeti avatar Feb 15 '26 18:02 sspaeti

@gulp 's "stop FUSE first" fix worked for me, on my Ryzen AI F13. I had no message in dmesg about refusing to freeze processes, but dmesg was ending immediately after PM: suspend entry (s2idle); Filesystem sync. Now, the sleep process moves on to freezing processes, and comes out of suspend properly afterwards.

[edit] Additionally, I was not using rclone or sshfs - gvfsd was the only fusey thing running. I'd extend his "Am I affected?" check to ps aux | grep -E "(rclone|sshfs|gvfs)".

erikwb avatar Mar 04 '26 20:03 erikwb

Suspend and hibernate work reliably for me on Framework 16. The suspend-then-hibernate works on AC as well; however, it breaks reliably on battery. I couldn't find any relevant bugs reported upstream, so I just made one in https://gitlab.freedesktop.org/drm/amd/-/issues/5068. Hopefully, this will accelerate the fix. Also, couldn't find a better thread in this repo to share the report.

Wondertan avatar Mar 13 '26 01:03 Wondertan

~~Looking at the LED, I can see the sleep button toggling the PC's power state between suspend and awake. Maybe ssh can be used to obtain the journal info? (haven't setup ssh in Omarchy yet)~~

Ok this is completely off-topic. I forgot I was booted into Ubuntu last night, it was an issue with my gdm config. Nevermind!!

SuggonM avatar Mar 14 '26 03:03 SuggonM

For nvidia drivers, you may want to take a look at https://github.com/basecamp/omarchy/discussions/5500

NicolasDorier avatar Apr 30 '26 05:04 NicolasDorier

I went through this report and the thread against current quattro. Nothing was reproduced: this is a Framework 13 AMD suspend and resume failure, and the disposable VMs omabot tests on can't suspend real hardware.

What I found:

  • The FUSE freeze cause found in this thread has been fixed since 3.5.0. @gulp traced a hang to gvfsd-fuse tasks refusing to freeze, and @erikwb confirmed the same fix on a Framework 13 Ryzen AI with only gvfsd running. Omarchy now ships default/systemd/system-sleep/unmount-fuse (added in f92712541, in v3.5.0), which lazy-unmounts fuse.gvfsd-fuse mounts before suspend and hibernate, then restarts gvfs after wake. The 3.x installer, its migration and the 4.x omarchy-settings package all install it executable. It only covers gvfsd-fuse: rclone and sshfs mounts are not unmounted.
  • The amdgpu MES/VPE failures after resume on Radeon 890M are an upstream kernel driver bug, not something Omarchy configures. Omarchy sets no amdgpu parameters and has no Framework 13 AMD-specific suspend handling.
  • I found no Omarchy defect in current source that would explain the original overnight failure. With the details in the report, a suspend that never completed (which would also explain the battery drain), a suspend that drew too much power, and a failed resume all look alike.

Codex Medium reviewed the same question independently. It reached the same conclusions and pointed out that the hook's unmount failures are silent, so whether it worked on a given machine needs checking there. It saw everything above before answering, so its agreement isn't fully independent.

@erikwestlund, and anyone else here still affected: please try again on the current release. If an overnight suspend still fails, please post:

  1. omarchy-debug output, plus cat /sys/power/mem_sleep and cat /proc/cmdline
  2. the kernel log from the failed boot: journalctl -k -b -1 > boot.log, attached in full
  3. ls -l /usr/lib/systemd/system-sleep/ and findmnt -t fuse.gvfsd-fuse,fuse.rclone,fuse.sshfs taken before suspending
  4. whether the machine still answers over SSH or the network when it "won't wake". That tells a display/GPU resume failure apart from a whole-machine hang.

This is waiting on a retest from the reporter. Hibernation problems are tracked separately (#4158 and the newer hibernation issues).

omarchybot avatar Oct 07 '26 23:10 omarchybot