omarchy-hibernation-available returns success when the kernel has hibernation disabled, making the Hibernate menu entry a silent no-op
omarchy-hibernation-available returns success even when the kernel has
hibernation disabled, so the Hibernate menu entry appears and then silently
does nothing when selected.
omarchy-hibernation-available checks three things:
/sys/power/image_sizeexists- non-zram swap is larger than the hibernation image size
/etc/mkinitcpio.conf.d/omarchy_resume.confexists
All three can pass while the kernel still refuses to hibernate. On this machine:
$ omarchy hibernation available; echo $?
0
$ cat /sys/power/state
freeze mem # no "disk"
$ cat /sys/power/disk
[disabled]
The menu entry (default/omarchy/omarchy-menu.jsonc:34) is gated on it:
"system.hibernate": {"icon":"...","label":"Hibernate","when":"omarchy-hibernation-available","action":"systemctl hibernate"},
So the item is shown, systemctl hibernate runs and fails immediately, and
from the user's side clicking it produces no visible result and no error.
Suggested fix: also require that /sys/power/state contains disk, so the
entry is hidden when the kernel will not accept the request.
Separately, and possibly a distinct issue, I have not been able to work out why the kernel disables it here. Everything that normally causes it is ruled out:
CONFIG_HIBERNATION=y,CONFIG_LOCK_DOWN_KERNEL_FORCE_NONE=y- lockdown reports
[none], Secure Boot off - no
nohibernateon the cmdline - no processes hold secretmem (checked both maps and fds), CXL module not loaded
- swapfile 62 GiB (≈ RAM) at priority 0, zram at 100
resume=andresume_offset=present, offset verified againstbtrfs inspect-internal map-swapfile -r- writing
shutdown/platform/suspendto/sys/power/diskis rejected
So the setup looks correct and the kernel still declines. The reportable part here is just that the availability check does not detect this, which turns it into a silent no-op rather than a visible failure.
Omarchy 4.0.0-1, kernel 7.1.8-arch1-3, Framework Laptop 13 Pro (Intel Core Ultra Series 3), btrfs on LUKS, limine + UKI.
Confirmed, and your reading of the mechanism is right: bin/omarchy-hibernation-available never asks the kernel. It checks that /sys/power/image_size exists, that non-zram swap beats that size, and that omarchy_resume.conf is present — all three hold on a machine the kernel will refuse.
Reproduced on a disposable VM rather than argued from source. Raising the running kernel's lockdown to integrity put a healthy machine into your state — /sys/power/state went from freeze mem disk to freeze mem, /sys/power/disk to [disabled], logind's CanHibernate from challenge to na — and the probe still exited 0 with an 8 GiB swapfile at priority 0 and the resume config in place.
What it costs: the when: guard shows the row, and the menu runs its action detached with stdout and stderr on /dev/null, so logind's refusal never reaches you. The machine just stays awake — nothing is written to swap and no session is lost, because the request is refused before anything is frozen. What is lost is trust in the entry, which on a laptop means closing the lid on a machine you believe is hibernating.
A fix is up as #7779. It requires disk in /sys/power/state, which is the same predicate that decides [disabled] on /sys/power/disk, and it closes a second false success found on the way: an image_size that exists but does not read counts as zero in the comparison, and any swap beats zero. It is waiting on a maintainer to review — nothing gets merged by the bot.
On your separate question, one thing a search for nohibernate misses: the kernel also disables hibernation for a hibernate= parameter whose value starts with no, handled separately from noresume and nocompress. Past that, [disabled] is only ever those four conditions, so if lockdown really reads [none] and no such token is on the cmdline, what is left is an active CXL memory endpoint — built-in support counts, so /sys/bus/cxl/devices tells you more than lsmod — or secretmem held by something the scan missed. journalctl -k -b | grep -iE 'lockdown|hibernat|secretmem|cxl' is the cheapest next look.
One gap #7779 deliberately does not close, in case it reaches you later: the probe trusts that omarchy_resume.conf exists rather than that resume= reached the running kernel, so the row also appears between omarchy hibernation setup and the reboot it asks for.
This was reviewed twice. The second opinion, codex at xhigh, agreed on the mechanism, and contributed the image_size hole and the hibernate=no parsing; it reads the same checkout, so its independence is not guaranteed.
Root cause found, and it means I need to retract something from my earlier report: I said no process held secretmem. That was wrong.
The cause is Bitwarden Desktop. Its secure_memory crate auto-selects memfd_secret on kernels with CONFIG_SECRETMEM, and the kernel refuses hibernation while any secretmem is live (secretmem_active()). This is already tracked upstream as bitwarden/clients#21661 — it regressed in Bitwarden v2026.5.0 and the maintainers treat it as an intentional tradeoff, with SECURE_KEY_CONTAINER_BACKEND=mlock as the sanctioned workaround.
Confirmed both directions on this machine, and Bitwarden's own log (~/.config/Bitwarden/app.log) records which backend it chose each launch — Using memfd_secret for secure key storage on every default launch, Forcing mlock secure key container via environment variable once the var is set:
bitwarden running: /sys/power/disk = [disabled]
bitwarden closed: /sys/power/disk = [platform] shutdown reboot suspend test_resume
relaunched (default backend): [disabled] again
relaunched with mlock: [platform] shutdown reboot suspend test_resume
Why my scan missed it, which is the part relevant to #7779: secretmem_active() is a refcount bumped on memfd_secret() and dropped on last file release. It stays elevated with no visible entry in /proc/*/fd or /proc/*/maps from outside: a root scan of every process on the box found nothing while the kernel still reported [disabled]. (Two Bitwarden processes run in a separate PID namespace under the Chromium sandbox, which is the likely reason, though I haven't proven the holder is one of them.) So a userspace search for secretmem holders is not a reliable test, and the only dependable predicate is the kernel's own verdict: disk present in /sys/power/state. That's exactly what #7779 checks, so this is a point in its favour rather than a gap.
Also confirms the three suggested checks were all negative here (no hibernate= token, no /sys/bus/cxl, nothing in the kernel log) — consistent with secretmem being the cause, since it logs nothing.
Worth noting for Omarchy specifically: Bitwarden is a common install, and with the current probe every Bitwarden user on a modern kernel sees a Hibernate entry that silently does nothing. Kernel 7.1.8-arch1-3, bitwarden-bin 2026.8.0.
Reproduced your root cause on a disposable VM without Bitwarden anywhere near it: a small C program that calls memfd_secret() once and holds the fd is enough. /sys/power/state goes from freeze mem disk to freeze mem, /sys/power/disk from [shutdown] reboot suspend test_resume to [disabled], and both come back the moment the holder exits. Kernel 7.1.8-arch1-3, the same as yours.
Two things came out of that worth having on the record.
The gate counts files, not pages. A holder that creates the fd and ftruncates it but never maps it and never touches a page disables hibernation just the same: secretmem_users is incremented when the file is created and decremented from the file's .release. So no memory-accounting number can stand in for it — and there is nothing to read in any case. There has never been a SecretMem: field in /proc/meminfo, from secretmem's arrival in 5.14 to current mainline; /proc/vmstat has no secretmem counter; Mlocked and Unevictable move only for a holder that faulted pages in; and /sys/module/secretmem/parameters/enable is mode 0400.
Your invisibility finding holds, but not for the reason you guessed. A holder that is PID 1 of its own PID namespace is fully visible from the host's /proc under both scans — PID namespaces are hierarchical, so the Chromium sandbox does not hide it. What does hide it: send the fd over a unix socket with SCM_RIGHTS and close your own copy. The in-flight reference sitting in the socket buffer keeps the file alive, so .release has not run, and a root scan of every /proc/*/fd link and every /proc/*/maps finds nothing while /sys/power/disk reads [disabled]. Chromium passes fds over unix sockets as ordinary IPC, so that is a likelier explanation for your empty scan than the namespace, though I have not proven it is what Bitwarden does. Either way your conclusion stands, and stronger than you put it: a userspace scan is not merely unreliable, it can be left with no trace to find.
Ran both versions of the probe against that machine:
old (quattro) #7779
healthy machine exit 0 exit 0
memfd_secret held, holder visible exit 0 exit 1
memfd_secret held, holder invisible exit 0 exit 1
holder released exit 0 exit 0
#7779 contains no userspace scan — it reads the disk token out of /sys/power/state and nothing else — so there is nothing in it to remove, and it covers your case in both directions. It is open, mergeable and waiting on a maintainer; the bot merges nothing.
What it fixes, precisely, because not everything found here is in it: the missing kernel gate, which is your symptom and the Bitwarden case above, and an image_size that exists but does not read, which counted as zero so any swap at all beat it. What it deliberately leaves for separate changes: the probe trusts that omarchy_resume.conf exists rather than that resume= reached the running kernel, so the row still appears between omarchy hibernation setup and the reboot it asks for; and it sums every disk swap while the kernel writes its image to one, ignoring the Used column.
The one thing it cannot do is explain itself, and that is a maintainer's call rather than a defect. After it lands, your Hibernate row will quietly vanish while Bitwarden runs and come back when it closes, with nothing saying why. A when: guard is a boolean whose output is discarded, so it has no channel for a reason; and of the four conditions that clear the disk token, three leave something readable — /proc/cmdline for nohibernate or hibernate=no, /sys/kernel/security/lockdown, the CXL bus — while secretmem leaves nothing at all, so even a dedicated diagnostic could only name it as what is left once the other three are ruled out. Described here rather than filed.
Reviewed twice. The second opinion was codex at xhigh, and it worked from the kernel and systemd sources rather than from this checkout: it established that no SecretMem: field has ever existed in /proc/meminfo, dated the gate's conditions (nohibernate alone before 5.4, lockdown from 5.4, secretmem from 5.14, CXL from 5.19), and corrected two things — logind's CanHibernate asks more than the kernel predicate, so the disk token is necessary rather than sufficient for a hibernation request to succeed; and the menu evaluates its guards asynchronously and opens on the previous batch's answers, so any row can contradict the state it describes for the length of one evaluation.