omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Suspend and Hibernation not working

Open Divyanshu-kumar14 opened this issue 9 months ago • 3 comments

System details

Dell-G15 5530

What's wrong?

Hi,

I'm running Omarchy (linux-zen 6.18.7-zen1-1-zen) on a laptop with an NVIDIA GPU and I've been unable to get suspend or hibernate working.


System:

  • Omarchy with Hyprland
  • Bootloader: Limine
  • Kernel: linux-zen 6.18.7-zen1-1-zen
  • NVIDIA GPU (proprietary drivers)
  • LUKS encrypted BTRFS root with swapfile at /swap/swapfile
  • External USB hub connected

Issue 1: Suspend (systemctl suspend) fails

The system attempts to suspend but immediately wakes back up with the following errors in journalctl:

usb usb1: PM: dpm_run_callback(): usb_dev_suspend returns -16 usb usb1: PM: failed to suspend async: error -16 usb usb2: PM: dpm_run_callback(): usb_dev_suspend returns -16 usb usb2: PM: failed to suspend async: error -16 PM: Some devices failed to suspend, or early wake event detected systemd-sleep: Failed to put system to sleep. System resumed again: Device or resource busy

The system only supports s2idle (Low-power S0 idle used by default for system suspend), not S3 deep sleep. The xhci_hcd USB controller fails to suspend, immediately aborting the sleep attempt. Bluetooth also triggers an immediate wake event.

The kernel parameter usbcore.autosuspend=1 and a udev rule disabling USB wakeup did not resolve the issue. The freeze sleep state also fails with 'Device or resource busy'.


Issue 2: Hibernate (systemctl hibernate) fails with invalid resume config

Hibernate is potentially a viable workaround since the system has a 20GB swapfile and resume_offset=67118336 (verified with btrfs inspect-internal map-swapfile). However, hibernate fails with:

Call to Hibernate failed: Invalid resume config: resume= is not populated yet resume_offset= is

The reason is that the auto-generated cmdline in /boot/limine.conf contains a malformed resume= parameter:

resume=UUID=/dev/mapper/root ← broken, mixes UUID= prefix with a device path

The correct value should be:

resume=/dev/mapper/root

This appears to be generated by limine-entry-tool. Manually editing /boot/limine.conf to fix the resume= parameter does allow hibernate to work, but the fix gets overwritten on kernel updates since /boot/limine.conf is auto-generated.


What I'd love to see fixed:

  1. The resume= parameter generated by limine-entry-tool should be resume=/dev/mapper/root not resume=UUID=/dev/mapper/root for LUKS setups.

  2. Ideally, a way to persist custom kernel cmdline parameters in /home/user/.local/share/omarchy/default/limine/limine.conf that survive kernel updates and limine-entry-tool regeneration.

  3. Longer term, it would be great if Omarchy defaulted to hibernate instead of suspend on systems where s2idle is the only available sleep state, since hibernate bypasses all the USB/NVIDIA suspend issues entirely.

Thanks for all the work on Omarchy — happy to provide any additional logs or testing if helpful.

Divyanshu-kumar14 avatar Feb 25 '26 21:02 Divyanshu-kumar14

Suspend works for me but hibernation does not work across 2 machines. One one official release, another on RC4. Both hibernate fine and reboot fine but my previous session is not restored. Currently can't confirm it's for the same reason, just sharing my experience

sean-imus avatar Feb 25 '26 21:02 sean-imus

@sean-imus But none of it worked for me — I always had to completely shut down my system.

Divyanshu-kumar14 avatar Feb 25 '26 21:02 Divyanshu-kumar14

Hey there, uses to see this very same issue on my G15 5530 with Mint Linux and Debian 12 and Debian 13. It's not really an Omarchy issue but an issue with the firmware on this model.

jrcastine avatar Sep 16 '26 23:09 jrcastine