omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Quattro: Suspend hard-freezes (s2idle) on ASUS ROG Strix G16 G614FR

Open PraiseTheDuck opened this issue 3 months ago • 3 comments

System details

AMD Ryzen 9 9955HX3D; NVIDIA RTX 5070 Ti Laptop (nvidia-open); BIOS: 315 / 316

What's wrong?

On Omarchy Quattro (4.0.0) stable channel the system hard-freezes with black screen when entering suspend (systemctl suspend or lid close) both in hybrid and dGPU modes.

Journal always ends with:

PM: suspend entry (s2idle)

Only long press of the power button recovers the laptop.

What works:

  1. Same machine on Omarchy Edge channel: suspend/resume works perfectly.
  2. Clean Arch + KDE also works fine.
  3. Older Omarchy 3.8.4 previously worked.

What was tried (no effect on stable):

  1. BIOS 315 and 316
  2. gpiolib_acpi.ignore_interrupt=AMDI0030:00@21,AMDI0030:00@24
  3. pci=noaer + pcie_aspm=off
  4. nvidia S0ix options (NVreg_EnableS0ixPowerManagement=1, PreserveVideoMemoryAllocations=1)
  5. Updating asusctl/asusd to 6.4 from OGC

So, apparently it is a regression in Omarchy stable packages. Edge channel already contains the fix.

PraiseTheDuck avatar Aug 17 '26 18:08 PraiseTheDuck

Different machine here — Framework 13 (Ryzen AI 300, AMD iGPU, no NVIDIA), Omarchy 4.0.0 stable — with the same surface symptom: hard freeze on systemctl suspend, journal ending at PM: suspend entry (s2idle), only a long power-button press recovers. I've spent a while narrowing mine down and want to share the method, plus one correction that may save you time, because I don't think we're chasing the same bug and the difference is easy to establish.

PM: suspend entry being the last line does not mean it hung there

This one cost me a day. journald is frozen during any suspend, so every kernel message after that line lives only in the ring buffer, and the ring buffer dies with the hard reset. A successful suspend looks exactly the same in the journal until the moment it resumes and the log catches up. So "the journal stops at PM: suspend entry" is what a hang and a healthy suspend both look like from the outside — it localises nothing.

Related: CONFIG_DPM_WATCHDOG is unset in the Arch kernel, so a stuck suspend callback never panics, and efi-pstore only records oopses. Nothing is captured automatically.

First: is Omarchy in the path at all?

From a TTY (Ctrl+Alt+F2, so you're not fighting the compositor):

sudo sh -c 'echo mem > /sys/power/state'

That is the raw kernel entry point. No logind, no systemd-sleep, no Omarchy lock screen, no inhibitor drop-ins. If it still freezes, nothing Omarchy ships is involved — the fault is in the kernel or firmware, and the issue belongs upstream rather than here. On my box it freezes identically, which is why I'm commenting instead of opening my own issue.

Expect a hang and a hard power-off. That is the cost of the test.

Then: the pm_test ladder, which localises it in minutes

/sys/power/pm_test makes the kernel run only part of the suspend sequence, pause 5 seconds, and resume. Each rung that passes recovers on its own — no reset needed — so you only pay a hard power-off for the rung that actually breaks:

# run each of these from a TTY, in order
echo freezer  | sudo tee /sys/power/pm_test   # freeze tasks only
echo 1        | sudo tee /sys/power/pm_debug_messages
sudo sh -c 'echo mem > /sys/power/state'      # returns after ~5s if this rung is fine

echo devices  | sudo tee /sys/power/pm_test   # + every ordinary .suspend callback
sudo sh -c 'echo mem > /sys/power/state'

echo platform | sudo tee /sys/power/pm_test   # + .suspend_late/.suspend_noirq + ACPI LPS0
sudo sh -c 'echo mem > /sys/power/state'

echo none     | sudo tee /sys/power/pm_test   # IMPORTANT: reset when you're done

Which rung is the first to hang tells you which class of bug you have:

first rung to hang what it means
freezer a task stuck in uninterruptible I/O — userspace/daemon territory, the one case where a distro config could plausibly be at fault
devices an ordinary driver .suspend callback — for you this is where an NVIDIA problem would show up
platform a .suspend_late/.suspend_noirq callback or the ACPI LPS0 _DSM — firmware/kernel, well below any distro

Two practical notes. Write the results down somewhere outside the session before each run — a hang costs you everything unsaved. And when a rung does hang, redo it from a TTY with

echo N | sudo tee /sys/module/printk/parameters/console_suspend
echo 1 | sudo tee /sys/power/pm_print_times
echo 8 | sudo tee /proc/sys/kernel/printk     # Omarchy's cmdline has loglevel=0 quiet

so the kernel keeps printing to the screen through the late phases. The last calling <device>+ @ ... line with no matching call <device>+ returned ... names the callback that never came back. Photograph it — nothing else survives.

(Don't bother with pm_trace. On my machine the firmware resets the RTC on the next POST, so every breadcrumb decodes to the same fake device. Check whether yours does the same before trusting anything it reports.)

On my box the ladder gave: freezer PASS, devices PASS, platform HANG — so mine is a late/noirq or ACPI LPS0 bug, entirely below Omarchy. Given your RTX 5070 Ti I'd expect yours to stop one rung earlier, at devices, which would be a very different bug from mine and a well-trodden one.

On "edge has the fix"

I checked, because if that were true it would be the fastest route to a fix for you. It doesn't look like it is: v4.0.0...master is 34 commits touching 36 files, and none of them go near sleep, suspend, logind, systemd-sleep, the lock screen, or the NVIDIA packages. The only kernel-cmdline change on edge is initramfs_async=0, added for an unrelated plymouth/initramfs race on kernel 7.1.

Also worth knowing: the files under default/ and install/ mostly apply at install time or through a migration, so running edge is not the same as having applied any of them.

If edge genuinely suspends on your hardware and stable genuinely doesn't, the difference is much more likely to be the package snapshot than Omarchy's own code — the two channels pull from different repo mirrors, so you can easily be on different kernel and nvidia-open-dkms builds. That's directly checkable:

pacman -Q linux linux-firmware nvidia-open-dkms nvidia-utils

Run it on both installs and compare. If the versions differ, that's your bisect, and it points at an upstream regression rather than anything in this repo — which is also much better news, since it means a specific package downgrade will get you working today.

One NVIDIA-specific thing to rule out while you're there: nvidia-suspend.service, nvidia-hibernate.service and nvidia-resume.service need to be enabled, and NVreg_PreserveVideoMemoryAllocations=1 set, for suspend to work reliably with the proprietary/open modules. A devices-rung hang plus those being unset would explain the whole thing.

Happy to compare notes if your ladder result comes out the same as mine — that would make this a good deal more interesting than two unrelated bugs with the same-looking journal.

christianguenter2 avatar Aug 21 '26 11:08 christianguenter2

Resolved in 4.0.1 on the Stable branch.

PraiseTheDuck avatar Aug 29 '26 23:08 PraiseTheDuck

Details discussed here: https://github.com/omacom/omarchy/discussions/8100#discussioncomment-18254166

I've been testing with success the pm_async=0 kernel config updates.

chadillac avatar Sep 03 '26 12:09 chadillac