Skip to content

Set hibernation up on an ARM computer only when asked to - #19617

Merged
birkskyum merged 2 commits into
omacom:quattrofrom
birkskyum:hibernation-setup-arm-opt-in
Nov 21, 2026
Merged

birkskyum merged 2 commits into
omacom:quattrofrom
birkskyum:hibernation-setup-arm-opt-in

Conversation

@birkskyum

@birkskyum birkskyum commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

The installer runs omarchy-hibernation-setup on every install, and the script goes ahead wherever the kernel offers hibernation. Omarchy's ARM kernel has hibernation off today, so nothing happens there. omacom/omarchy-pkgs#3179 turns it on so that hibernation can be worked on, and on most ARM computers resuming still resets the machine and loses the session.

  • Setup skips an ARM computer unless it is called with --experimental, and says so.
  • A machine that was set up that way is kept up by later runs without the flag, so the migrations that call setup still reach it. A factory reset removes the resume hook before it calls setup, so the swap file's line in /etc/fstab counts as set up too.
  • x86_64 is untouched. Apple Silicon and machines with sleep turned off were skipped before and still are.

This has to be merged before the kernel change is on edge.

Tests: hibernation-setup-test.sh has a case for an ARM computer. The installer's call sets nothing up, --experimental does, a rerun keeps it up, and so does a factory reset's call. It fails without the change.

The installer runs omarchy-hibernation-setup on every install, and the script went
ahead wherever the kernel offered hibernation. linux-omarchy for aarch64 is about to
offer it, and on most ARM computers resuming still resets the machine and loses the
session. So setup now skips an ARM computer unless it is called with --experimental,
and keeps a machine that was set up that way up on later runs.
@birkskyum
birkskyum marked this pull request as ready for review November 21, 2026 02:50
@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the ARM factory-reset failure is fixed.

Summary

ARM machines skip hibernation setup unless the owner passes --experimental or setup finds signs of an earlier setup.

  • ARM hibernation setup now waits for an explicit opt-in.

Reviews (3) · Last reviewed commit: "Keep an ARM computer's hibernation throu..." · Reviewed by Greptile

Comment thread bin/omarchy-hibernation-setup Resolved
A factory reset removes the resume hook before it calls hibernation setup, and stops
when the swap file isn't back afterwards. With only the hook counting as set up, the
call was skipped on an ARM computer that had hibernation. The swap file's line in
/etc/fstab, which the reset keeps, counts now too.
@birkskyum

Copy link
Copy Markdown
Contributor Author

@greptileai

@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High (GPT-6) read the diff at 65b3cec, the review discussion, and the setup, factory-reset and migration callers. I classified this as a hardware compatibility fix because it prevents automatic setup of unreliable ARM hibernation while preserving an existing setup.

The configured classification reviewer, deepseek-v4p1-flash, returned no usable class, so classification remains unsettled. No class labels were added, no worker tests ran, and no changes were pushed. This is waiting on the maintainer to resolve classification before verification continues; no second code review was performed.

@birkskyum
birkskyum merged commit 9f2e2e9 into omacom:quattro Nov 21, 2026
3 checks passed
birkskyum added a commit that referenced this pull request Nov 25, 2026
Since omacom/omarchy-iso#497 no installer runs omarchy-hibernation-setup, so
the ARM gate from #19617 holds back only the owner who runs it by hand. Drop
the gate and its --experimental flag, which made owners wary of trying it. A
leftover --experimental is ignored like any other unknown argument.
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 25, 2026
…#20076)

Since omacom/omarchy-iso#497 no installer runs omarchy-hibernation-setup, so
the ARM gate from omacom#19617 holds back only the owner who runs it by hand. Drop
the gate and its --experimental flag, which made owners wary of trying it. A
leftover --experimental is ignored like any other unknown argument.
@emirb emirb added this to the 4.6.0 milestone Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants