Hibernate Crash & systemd-coredump CPU Spike
System details
Aspire A315-58 (V1.35), 11th Gen Intel(R) Core(TM) i5-1135G7 (8) @ 4.2z, Omarchy 3.3.3
What's wrong?
Hibernate Crash & systemd-coredump CPU Spike
After a recent Omarchy system update, hibernation was enabled from system settings.
Following this change, the system began exhibiting severe performance issues after resume, including:
- Extremely high CPU usage
- Excessive RAM usage
- Loud fan noise
- System slowdown or near-freeze
The root cause was an incomplete and invalid hibernation configuration combined with active systemd core dumps.
Symptoms
systemd-coredumpconsuming ~90–100% CPU- Core dump size reaching multiple gigabytes
- Disk I/O spikes (Btrfs activity)
- Swap activity (
kswapd0) - Electron applications (VS Code) crashing after resume
- System fans running at maximum speed
Example log:
systemd-coredump: Process (code) dumped core
Memory peak: ~2.5GB
CPU time: ~1 minute
System Configuration
- Kernel: Latest
- Filesystem: Btrfs
- Display Server: Wayland (Hyprland)
- GPU: NVIDIA
- Swap:
- Disk swapfile: ~7.5GB
- zram: ~3.5GB (higher priority) All of this are created automatically by omarchy itself
Root Cause
1. Hibernate Enabled Without Proper Kernel Resume Configuration
The kernel command line lacked the required resume= parameter:
cat /proc/cmdline
→ no resume=UUID
2. zram Interfering With Hibernate
zram was enabled with higher swap priority than disk swap:
zram PRIO = 100
disk swap PRIO = 0
Hibernate cannot resume from zram.
This caused memory pages to be stored in an invalid location during hibernation.
3. systemd-coredump Amplified the Failure
After resume, Electron applications (VS Code) crashed due to corrupted memory state.
systemd-coredump then:
- Captured large memory dumps
- Compressed them
- Wrote them to disk
- Consumed massive CPU and RAM
Default configuration had core dumps fully enabled:
[Coredump]
#Storage=external
#ProcessSizeMax=32G
(All values commented → defaults active)
I enabled the hibernation too. Especially when I suspend it and it goes to hibernation after 30 minutes, I'm not able to return or wake the laptop anymore. I need to fresh boot. According to claude, it's: Missing kernel resume parameters. Your kernel cmdline has NO resume= or resume_offset= parameters.
Full analysis:
Missing kernel resume parameters. Your kernel cmdline has NO resume= or resume_offset= parameters:
quiet splash cryptdevice=... root=/dev/mapper/root ... i8042.nomux=1 ...
For hibernation to resume, the kernel needs to know:
1. resume=/dev/mapper/root - where to look for the hibernation image
2. resume_offset=XXXXX - the physical offset of the btrfs swapfile
What the logs show
From boot -1:
- 18:00:04 - System entered suspend
- After 30 minutes, it tried to hibernate (suspend-then-hibernate)
- 20:22:15 - Boot 0 started as a fresh boot, NOT a resume from hibernate
The system hibernated but couldn't resume because the kernel doesn't know where to find the hibernation image.
The bug in omarchy-hibernation-setup
The script at bin/omarchy-hibernation-setup:55-58 only adds the resume hook to mkinitcpio:
echo "HOOKS+=(resume)" | sudo tee "$MKINITCPIO_CONF" >/dev/null
But it never adds the required kernel parameters (resume= and resume_offset=) to /etc/default/limine.
The Fix
You need to:
1. Get the swap offset:
sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
2. Add to /etc/default/limine (append to KERNEL_CMDLINE):
resume=/dev/mapper/root resume_offset=<NUMBER_FROM_STEP_1>
3. Regenerate UKI:
sudo limine-mkinitcpio
Is that something you'd agree with, or does it work on others? I will try when I get some time, just reported it here as it happens since I updated 2 days ago.
same here! after update I need to turn off the computer to be able to use it
Yes, same here. Hibernation worked when I first enabled it, but not after the latest update, have to turn off the computer forcefully when it enters hibernation.
I will try when I get some time, just reported it here as it happens since I updated 2 days ago.
As to my above comment, I tried the fix and it seems to have worked.
Fix Hibernation
Run below to find swapfile pointer:
sudo btrfs inspect-internal map-swapfile -r /swap/swapfile
Edit /etc/default/limine - change line 5 with above number - in my case 128838606 - from:
KERNEL_CMDLINE[default]="cryptdevice=PARTUUID=5e187d81-40bf-419a-a5cd-61d64fc8399d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw
rootfstype=btrfs i8042.nomux=1 i8042.reset=1 i8042.noloop=1 i8042.nopnp=1"
To:
KERNEL_CMDLINE[default]="cryptdevice=PARTUUID=5e187d81-40bf-419a-a5cd-61d64fc8399d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw
rootfstype=btrfs i8042.nomux=1 i8042.reset=1 i8042.noloop=1 i8042.nopnp=1 resume=/dev/mapper/root resume_offset=128838606 amdgpu.gpu_recovery=1 amdgpu.noretry=0"
Parameters added:
- resume=/dev/mapper/root - tells kernel where hibernation image is stored
- resume_offset=128838606 - physical offset of your btrfs swapfile
- amdgpu.gpu_recovery=1 - enables GPU hang recovery
- amdgpu.noretry=0 - allows GPU memory access retries
Step 2: Regenerate UKI
sudo limine-mkinitcpio
Step 3: Reboot and Verify
sudo reboot
After reboot, verify parameters are applied:
cat /proc/cmdline
`# Should show: resume=/dev/mapper/root resume_offset=128838606 amdgpu.gpu_recovery=1 amdgpu.noretry=0`
So Hibernation seems to work now. Only issue I have still is GPU Crash shuts down computer while Google Meet (GPU ring timeout), that seems to be related to Hibernation and only happens when I hibernate (or suspend sometimes).
I will try when I get some time, just reported it here as it happens since I updated 2 days ago.
As to my above comment, I tried the fix and it seems to have worked.
Fix Hibernation
Run below to find swapfile pointer:
sudo btrfs inspect-internal map-swapfile -r /swap/swapfileEdit
/etc/default/limine- change line 5 with above number - in my case128838606- from:KERNEL_CMDLINE[default]="cryptdevice=PARTUUID=5e187d81-40bf-419a-a5cd-61d64fc8399d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs i8042.nomux=1 i8042.reset=1 i8042.noloop=1 i8042.nopnp=1"To:
KERNEL_CMDLINE[default]="cryptdevice=PARTUUID=5e187d81-40bf-419a-a5cd-61d64fc8399d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs i8042.nomux=1 i8042.reset=1 i8042.noloop=1 i8042.nopnp=1 resume=/dev/mapper/root resume_offset=128838606 amdgpu.gpu_recovery=1 amdgpu.noretry=0"Parameters added:
- resume=/dev/mapper/root - tells kernel where hibernation image is stored
- resume_offset=128838606 - physical offset of your btrfs swapfile
- amdgpu.gpu_recovery=1 - enables GPU hang recovery
- amdgpu.noretry=0 - allows GPU memory access retries
Step 2: Regenerate UKI
sudo limine-mkinitcpioStep 3: Reboot and Verify
sudo rebootAfter reboot, verify parameters are applied:
cat /proc/cmdline `# Should show: resume=/dev/mapper/root resume_offset=128838606 amdgpu.gpu_recovery=1 amdgpu.noretry=0`So Hibernation seems to work now. Only issue I have still is GPU Crash shuts down computer while Google Meet (GPU ring timeout), that seems to be related to Hibernation and only happens when I hibernate (or suspend sometimes).
can confirm that this absolutely does the trick for me as well, thank you so much!
anybody in this thread had this problem: https://github.com/basecamp/omarchy/issues/4158#issuecomment-3727710866
First hibernation is okay but the second one is unwakeable
anybody in this thread had this problem: #4158 (comment)
First hibernation is okay but the second one is unwakeable
Yeah, seems I actually have this issue, first hibernation works, but second more or less has the same issue as before the fix above
@tameravci This fixed the subsequent hibernation issues for me, adding amdgpu.ip_block_mask=0xfffff7ff to /etc/default/limine
Nice one it did work: amdgpu.ip_block_mask=0xfffff7ff
It didn't require these flags: amdgpu.gpu_recovery=1 - enables GPU hang recovery amdgpu.noretry=0 - allows GPU memory access retries
I read somewhere that a kernel fix is also on the way
In addition to the above fixes, this amdgpu.cwsr_enable=0 ultimately solves it for me. Since suspending and hibernating for three weeks, I haven't had a single crash anymore. Haven't shut down for a while now, even running Obsidian and Browser with HW accelerated GPU mode.
This is my full /etc/default/limine settings for my TUXEDO InfinityBook Pro 14 Gen10 - AMD as of now:
KERNEL_CMDLINE[default]="cryptdevice=PARTUUID=5e187d81-40bf-419a-a5cd-61d64fc8399d:root root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs i8042.nomux=1 i8042.reset=1 i8042.noloop=1 i8042.nopnp=1 resume=/dev/mapper/root resume_offset=128838606 amdgpu.gpu_recovery=1 amdgpu.noretry=0 amdgpu.ip_block_mask=0xfffff7ff amdgpu.cwsr_enable=0"
I traced this through bin/omarchy-hibernation-setup on quattro and reproduced the part that is Omarchy's on a worker installed from the 4.0.4 ISO.
What is still broken. Setup on 3.3.x wrote only the resume initramfs hook. It added no resume=/resume_offset=, which is what you all found missing from /proc/cmdline. Since 3.4.0 (ffd8509da), setup also writes those parameters to /etc/limine-entry-tool.d/resume.conf, so a fresh setup gets them. A machine that set up hibernation before that still has none. Re-running omarchy hibernation setup, with or without --force, sees HOOKS+=(resume) in /etc/mkinitcpio.conf.d/omarchy_resume.conf and exits with "Hibernation is already set up" before it reaches the code that writes the drop-in. The only repair path, migration 1776246235 on dev, fixes a drop-in with an empty offset and never creates a missing one. omarchy-upgrade-to-quattro carries resume= forward only if it is already on the running cmdline. Nothing on dev or quattro ever adds the parameters to these machines.
Reproduction on a worker. I removed resume.conf and kept the hook, which is the state a 3.3.x setup leaves behind. Setup from quattro printed "already set up", exited 0 and wrote nothing, twice. After limine-mkinitcpio, the UKI's embedded cmdline had no resume= at all. Putting the drop-in back restored resume=/dev/vda2 resume_offset=… in the UKI. A worker cannot show whether a real laptop then wakes. You already did that by hand: adding the two parameters made resume work.
What it is not. zram's higher swap priority does not send the hibernation image to zram, because systemd excludes zram when it picks a hibernation device. The coredump storm comes after the crash: systemd-coredump processing Electron crashes that were already happening. I could not establish what caused those crashes here. The failure on the second hibernate that several AMD machines hit, which amdgpu.ip_block_mask or amdgpu.cwsr_enable=0 works around, does not come from anything in Omarchy's setup. That is a separate amdgpu driver problem.
Related. #7619 reports the same gap later, for a setup that failed to compute the offset. Open PR #11477 makes setup reconcile the drop-in even when the hook is already there. I ran it on the same worker: from the hook-without-drop-in state, it wrote exactly the line the ISO install had. A second run was a no-op. It repairs a machine only when someone re-runs setup, and it adds no migration. Open PR #13768 keeps the early exit, so it does not reach this case.
Second opinion. Codex Medium reviewed the same code independently. It agreed on the mechanism and on #11477, and it pointed out the zram exclusion in systemd's hibernate device selection. It runs on the same machine and can read this session's notes, so its agreement is not guaranteed to be independent.
Next. This waits on the maintainer. Two decisions are open: whether #11477 should land, and whether machines that set up hibernation before 3.4.0 should get the parameters through a migration rather than by re-running setup. A migration would change their boot cmdline, so it is the maintainer's call, and I have not opened a pull request for it.