Skip to content

Disable system sleep on GB10 machines - #13260

Merged
ryanrhughes merged 6 commits into
omacom:n1xfrom
jdvmi00:spark/unsupported-sleep-dragon-20260925
Oct 10, 2026
Merged

ryanrhughes merged 6 commits into
omacom:n1xfrom
jdvmi00:spark/unsupported-sleep-dragon-20260925

Conversation

@jdvmi00

@jdvmi00 jdvmi00 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

NVIDIA ships DGX OS with sleep disabled on the DGX Spark (NVIDIA forum), and suspend hasn't been shown to work on GB10 machines: on our Spark, s2idle never woke and needed a forced restart, and a DGX OS user reports suspend failing inside NVIDIA's driver (report). This follows DGX OS on every GB10 machine (the DGX Spark, the ASUS Ascent GX10): a systemd sleep drop-in, omarchy-sleep-disabled.conf, disallows suspend and hibernation, the menu hides both, and a migration applies the drop-in to existing installs. Other machines are unchanged.

This builds on #14895, which gives the GB10 its platform name; only the sleep commits are new here.

The new shell test passes, running the GB10 predicate on fixture machines. With the same drop-in on a Spark, logind reports CanSuspend and CanHibernate as "no". The menu change hasn't been checked in the running shell.

@llstrk

llstrk commented Sep 27, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

One issue found in the tested scope: two nearby commands and the manual still act as if suspend and hibernation can be turned on on a Spark. There is also an optional test improvement, because the new test lets several regressions through.

Verified: The drop-in turns off every systemd sleep operation, the new menu check hides Suspend and Hibernate only on a Spark, and the install script and migration behave correctly on Spark and non-Spark machines.

Area Result
Drop-in (systemd v261 source) All four Allow*=no keys cover every sleep operation. logind reports CanSuspend/CanHibernate as no and refuses the Suspend, Hibernate and Sleep calls and the sleep key, lid and idle actions. sleep.conf.d is re-read on every check, so no reload is needed.
Menu guards (production guardScript, 8 combinations of suspend-off × hibernation available × Spark) Suspend shows only when suspend is not toggled off and the machine is not a Spark. Hibernate shows only when hibernation is available and the machine is not a Spark. Every non-Spark combination matches the base branch.
Detector (synthetic DMI directory) Matches NVIDIA / NVIDIA_DGX_Spark with or without a trailing newline. Exits 1 with no stderr for missing or unreadable files and for near-miss values. The strings match DMI output quoted in two public DGX Spark forum reports.
Install script On a Spark it writes exactly [Sleep] plus the four lines, and a rerun leaves the file unchanged. On other machines it creates no directory.
Migration (/etc redirected, sudo stubbed) Non-Spark: no sudo call. Spark without the file: one sudo bash .../nvidia-dgx-spark.sh. File present: skipped. sudo failure: exits nonzero, so the migration stays pending.
Tests The new test passes on head and fails on base. menu-test.sh, menu-guards-test.sh, bin-style-test.sh and test/cli pass on head and base.

omarchy toggle suspend, omarchy hibernation setup and the manual still act as if sleep can be turned on on a Spark

On a Spark, the rows are hidden whatever the toggles or hibernation setup say:

omarchy toggle suspend      -> flips suspend-off; when it turns suspend back on,
                               notifies "Suspend now available in system menu"
                               -> Suspend row stays hidden (! omarchy-hw-dgx-spark)
omarchy hibernation setup   -> offers "Use <RAM size> on boot drive to make hibernation available?"
                               -> creates a swapfile the size of physical RAM
                               -> Hibernate row stays hidden, AllowHibernation=no

manual/36-system-sleep.md still says the toggle "reveals/hides the option" and that the Hibernate option appears once hibernation is set up. The new manual sentence also does not say how to turn sleep back on. Because the rows are gated on the hardware rather than on the sleep policy, removing the drop-in turns sleep back on in logind, but the menu still hides both rows. The hibernation path assumes omarchy-hibernation-setup gets past its early exits on the Spark's kernel (for example the /sys/power/image_size check), which was not checked.

Impact: When a Spark user turns suspend back on, or follows the manual, the message does not match the menu. omarchy hibernation setup can spend a large amount of disk space (the size of physical RAM) on hibernation that stays disallowed.

Suggested change: Gate the two rows on the sleep policy instead of the hardware, for example [[ ! -e /etc/systemd/sleep.conf.d/omarchy-dgx-spark.conf ]] or logind's CanSuspend/CanHibernate, so the menu follows the sleep policy. The file check follows only this drop-in. CanSuspend/CanHibernate reflect every sleep setting, but they would also change which rows show on other machines. Other options are to make omarchy-toggle-suspend and omarchy-hibernation-setup Spark-aware, or to add a sentence to the manual.

Optional test improvement: test/shell.d/dgx-spark-hardware-test.sh replaces the detector with a shell function and only greps the menu text. Each of these changes, applied alone to a copy of the head, still passed the test. Removing AllowHybridSleep=no from the install script failed it, as it should.

Change to a copy of the head New test
Suspend when uses || ! omarchy-hw-dgx-spark (Suspend then shows on a Spark) passes
Detector compares against a product name that never matches passes
The nvidia-dgx-spark.sh line removed from install/hardware/all.sh passes
migrations/1790364978.sh deleted passes

xps13-sidecar-amps-test.sh already covers the same ground for its hardware. It runs the real detector through a DMI env override, checks the all.sh wiring, and runs the migration with sudo stubbed. menu-guards-test.sh evaluates guard expressions in bash against fixtures and stubs. The same approach would need a DMI path override in omarchy-hw-dgx-spark (for example ${OMARCHY_DMI_PATH:-/sys/class/dmi/id}).

Not confirmed on hardware: The PR reports the logind result with the drop-in in place. It does not report running the detector on the Spark, and the menu was not checked. Running omarchy-hw-dgx-spark && echo match on the Spark and opening the System menu once would settle both. The detector requires sys_vendor to be NVIDIA and product_name to be NVIDIA_DGX_Spark, so OEM GB10 systems (for example ASUS Ascent GX10 or Lenovo ThinkStation PGX) that report their own vendor or product name would not be matched. Whether they should be is a scope decision.

Related open PR: #12826 changes the same system.suspend menu line on quattro, so a small textual conflict is likely when the branches meet.


Review information

Test scope: Source review of head b7172ac against base dragon, plus upstream systemd v261 and Linux DMI sysfs source. Sandboxed runs used a synthetic DMI directory, stub commands, a stubbed sudo and redirected /etc paths. The menu guards were evaluated with bash -c rather than the production bash -lc. Real logind, systemd-sleep, sudo, the running menu and DGX Spark hardware were not tested.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@jdvmi00

jdvmi00 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Pushed f8aa8fd:

  • The Suspend and Hibernate rows now follow the sleep setting instead of the hardware, through a hidden omarchy-sleep-disabled check, so removing the drop-in brings them back.
  • omarchy toggle suspend reports that suspend is turned off instead of toggling, and omarchy hibernation setup stops before creating a swapfile.
  • The manual says how to turn sleep back on.
  • The test now runs the real detector against a DMI fixture (OMARCHY_DMI_PATH), checks the all.sh wiring, runs the migration with sudo stubbed and evaluates both menu guards. Each of the four regressions you listed now fails it.

On the Spark, omarchy-hw-dgx-spark matches (NVIDIA / NVIDIA_DGX_Spark) and logind reports CanSuspend, CanHibernate, CanHybridSleep and CanSuspendThenHibernate as no. The menu hasn't been checked in the running shell yet. OEM GB10 systems are out of scope for now.

@omarchybot omarchybot added bug Something isn't working compatibility Make Omarchy work better on everything! labels Sep 27, 2026
@llstrk

llstrk commented Sep 29, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Outcome: At f8aa8fd, the earlier review's finding is resolved; one small test gap remains.

The hibernation-setup test check depends on the machine

Without /sys/power/image_size (an empty /sys, or no kernel hibernation support), omarchy-hibernation-setup exits before the new omarchy-sleep-disabled check, and the test compares the message only when that file exists. Impact: there, deleting the new check still passes.

Suggested change: Move the omarchy-sleep-disabled block above the /sys/power/image_size check and drop the test's if [[ -f /sys/power/image_size ]] wrapper.

Reproducer (passes at f8aa8fd with the new check deleted, without /sys/power/image_size)

Commit: f8aa8fd. Run from the repository root on a machine where /sys/power/image_size does not exist (a container or sandbox with an empty /sys, or a kernel without hibernation support).

  1. Remove the new refusal from bin/omarchy-hibernation-setup and run the PR's test unchanged:
sed -i '/^if omarchy-sleep-disabled; then$/,/^fi$/d' bin/omarchy-hibernation-setup
bash test/shell.d/dgx-spark-hardware-test.sh; echo "exit=$?"

Diff produced by the sed:

@@ -18,10 +18,6 @@
   exit 0
 fi
 
-if omarchy-sleep-disabled; then
-  echo "Hibernation is turned off on this machine" >&2
-  exit 0
-fi
 
 # When --no-rebuild is set, the caller is responsible for the UKI rebuild

Actual output (exit status 0):

ok - the DGX Spark sleep setting runs at install and through a migration
ok - the detector matches only the DGX Spark
ok - the DGX Spark setting disallows every sleep operation and leaves other machines alone
ok - omarchy-sleep-disabled follows the sleep setting
ok - the migration applies the setting once, only on a Spark
ok - the suspend toggle and hibernation setup respect the disabled setting
ok - the menu hides Suspend and Hibernate only while sleep is disabled

The script stops at its /sys/power/image_size check (line 16) before it reaches the refusal, and the test only compares the message inside if [[ -f /sys/power/image_size ]] (lines 101-105).

  1. Test case that does not depend on the machine: replace lines 101-105 of the test with an unconditional message check.
 hibernation=$(run spark "$scratch/spark" bash "$ROOT/bin/omarchy-hibernation-setup" 2>&1) ||
   fail "hibernation setup exits cleanly while sleep is disabled"
-# Without kernel hibernation support the script stops earlier, before this check.
-if [[ -f /sys/power/image_size ]]; then
-  [[ $hibernation == *"Hibernation is turned off on this machine"* ]] ||
-    fail "hibernation setup says hibernation is turned off" "$hibernation"
-fi
+[[ $hibernation == *"Hibernation is turned off on this machine"* ]] ||
+  fail "hibernation setup says hibernation is turned off" "$hibernation"

At f8aa8fd (unmodified bin/omarchy-hibernation-setup), without /sys/power/image_size, actual output (exit status 1):

ok - the DGX Spark sleep setting runs at install and through a migration
ok - the detector matches only the DGX Spark
ok - the DGX Spark setting disallows every sleep operation and leaves other machines alone
ok - omarchy-sleep-disabled follows the sleep setting
ok - the migration applies the setting once, only on a Spark
Hibernation is not supported on your system
not ok - hibernation setup says hibernation is turned off

With the omarchy-sleep-disabled block moved above the /sys/power/image_size check in bin/omarchy-hibernation-setup:

-if [[ ! -f /sys/power/image_size ]]; then
-  echo -e "Hibernation is not supported on your system" >&2
+if omarchy-sleep-disabled; then
+  echo "Hibernation is turned off on this machine" >&2
   exit 0
 fi
 
-if omarchy-sleep-disabled; then
-  echo "Hibernation is turned off on this machine" >&2
+if [[ ! -f /sys/power/image_size ]]; then
+  echo -e "Hibernation is not supported on your system" >&2
   exit 0
 fi

the same test passes (exit status 0, all seven ok lines), and with the block deleted instead it fails with not ok - hibernation setup says hibernation is turned off (exit status 1). With /sys/power/image_size present, the unmodified head and the moved-check version both pass the changed test.

Not executed (source reading only): on a machine that does have /sys/power/image_size, a missing or misplaced refusal is caught, but only after bin/omarchy-hibernation-setup has run past it with the test's sudo stub, which runs its arguments (exec "$@", test lines 40-45). From line 67 on, the script reads the machine's /etc/mkinitcpio.conf.d/omarchy_resume.conf (if hibernation is already set up there, it stops with "Hibernation is already set up" and writes nothing). Otherwise it continues: the gum confirm stub succeeds, it reads /etc/fstab, and when that has no /swap/swapfile line, sudo cp/sudo tee target /etc/fstab (lines 108-111). sudo /usr/bin/mktemp/install/mv target /usr/lib/systemd/system-sleep (lines 38-54, 123-127). For a normal user these writes are refused and the script exits 1 at line 126. Run as root they would succeed, and later steps would write /etc/mkinitcpio.conf.d/omarchy_resume.conf.

Details

Verified (sandbox, stubbed commands, private sleep-config and DMI paths):

  • Menu guards (production guard script; drop-in × suspend toggled off × hibernation available): without the drop-in, all 4 combinations match dragon; with it, Suspend and Hibernate are hidden in all 4.
  • omarchy toggle suspend with the drop-in leaves the flag unchanged and notifies "Suspend is turned off on this machine"; without it, it behaves as on dragon.
  • omarchy hibernation setup with the drop-in and a simulated /sys/power/image_size prints "Hibernation is turned off on this machine", exits 0 and runs no swap or boot commands.
  • Migration: one sudo call on a Spark without the drop-in, none with it or on other machines; a failing sudo exits 1.
  • The updated test passes at f8aa8fd. menu-test.sh, menu-guards-test.sh, bin-style-test.sh and test/cli pass on head and dragon.

Optional notes:

  1. The Hibernate row's omarchy-hibernation-available condition is untested: changing that when to ! omarchy-sleep-disabled alone passes the PR's test, and no other test covers the Hibernate row, yet would show Hibernate on every machine without the drop-in. One more guard evaluation with the availability stub failing (as the suspend-off case already does) would catch it.
  2. omarchy apply hardware (run as root) reruns install/hardware/nvidia-dgx-spark.sh, which rewrites the drop-in after a user has removed it (source, plus a sandbox rerun of that script), and removing it needs sudo. One sentence in the manual would cover both.
  3. With the migration deleted, the test exits 1 without a not ok line, because the grep -l … | head -1 substitution aborts under set -euo pipefail before the readable fail. Adding || true inside the substitution should restore the message (not run).

Hardware: the author's reply reports the detector matching and logind reporting all four Can* values as no on the Spark. The running menu was not checked by the author or here.


Review information

Test scope: Source and sandbox tests at f8aa8fd against b7172ac and dragon; logind, the running menu and Spark hardware not tested.

AI process: Opus 5.5 Medium coordination and synthesis, Opus 5.5 Xhigh technical review and final fact check, GPT 6 Sol Xhigh search for related issues, Opus 5.5 Medium editorial check.

Opt out: To stop receiving these reviews, reply to this comment saying so.

@jdvmi00

jdvmi00 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Thanks — moved the sleep-setting check ahead of the hibernation-support check so the test is machine-independent, and took the three optional notes.

@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at fb16cc1 against dragon. Nothing to fix was found.

Run on an Omarchy worker VM (systemd 261, not a Spark), with the branch linked into the running shell:

  • ./test/cli and test/shell.d/dgx-spark-hardware-test.sh, menu-guards-test.sh, menu-test.sh and bin-style-test.sh all pass.
  • On the VM's own DMI, omarchy-hw-dgx-spark does not match, and the install script and the migration write nothing. The Suspend and Hibernate rows behave as they do on dragon.
  • With the install script run as root against a Spark DMI fixture, the real logind reports CanSuspend, CanHibernate, CanHybridSleep and CanSuspendThenHibernate as no. systemctl suspend is refused with "Sleep verb 'suspend' is disabled by config". The suspend toggle leaves its flag alone, and hibernation setup stops before touching swap.
  • In the running shell, the System menu drops Suspend and Hibernate while the drop-in is there, and shows both again once it is removed. That covers the menu check the description said was still open.

The second opinion was Codex Medium. It found nothing, and agreed that the change is proportionate (most of the 182 lines are the test). It also agreed that --force --no-rebuild from factory reset still works, since that runs inside the factory chroot's /etc, and that the migration's sudo bash finds the detector both in /usr/bin and under omarchy dev link. That agreement was reached with my conclusions in reach, so it is not guaranteed to be independent.

One thing is still open: nobody besides the author has confirmed that suspend fails on a Spark. A worker can only prove what the drop-in does. Whether a Spark needs it rests on the author's report and NVIDIA's DGX OS default. Under omabot's rules a pull request author can't confirm their own hardware fix, so this is not marked verified. It now waits on the maintainer, either to confirm it on a Spark at fb16cc1 or to accept NVIDIA's default as the reason.

Related: #12826 (on quattro) edits the same system.suspend menu line, so the two will conflict on that line when the branches meet.

omarchybot added a commit to jdvmi00/omarchy that referenced this pull request Oct 3, 2026
This branch carried omacom#13260 without fb16cc1, which moves the hibernation guard ahead of the image_size check and fixes its test. Without it, squash-merging either pull request makes the other conflict in the manual and the hardware test and leaves the hibernation guard in twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@birkskyum
birkskyum changed the base branch from dragon to n1x October 9, 2026 22:28
@birkskyum
birkskyum force-pushed the spark/unsupported-sleep-dragon-20260925 branch from fb16cc1 to 7ffe4fc Compare October 9, 2026 22:31
@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High impact] The PR appears safe to merge; the previous documentation issue is fixed.

Summary

The PR turns off suspend and hibernation on GB10 machines and hides both menu choices while the setting exists.

  • GB10 machines keep suspend and hibernation turned off.
  • Omarchy recognizes NVIDIA GB10 desktops as their own platform.
  • GB10 desktops get a default package list for their hardware.

Reviews (4) · Last reviewed commit: "Give the working command that restores t..." · Reviewed by Greptile

@ryanrhughes
ryanrhughes force-pushed the n1x branch 2 times, most recently from dcdea0b to 2f83505 Compare October 10, 2026 04:01
@jdvmi00
jdvmi00 force-pushed the spark/unsupported-sleep-dragon-20260925 branch from 7ffe4fc to 69a8711 Compare October 10, 2026 15:50
Comment thread manual/36-system-sleep.md Resolved
The GB10 desktops (the DGX Spark, the ASUS Ascent GX10) need packages of
their own: the NVIDIA driver, the container toolkit for GPU containers,
rdma-core for the ConnectX-7 network and NVIDIA's profilers, as DGX OS ships
them. They were plain aarch64 to omarchy-hw-platform, so no default set
carried those packages and an image had nothing to install them from.

omarchy-hw-platform now prints aarch64-gb10 for an ACPI machine with the
GB10's GPU (PCI 10de:2e12), and refuses it alongside an Apple or Qualcomm
device tree or the N1x's signatures. Image manifests accept the name. The
family adds install/omarchy-aarch64-gb10.packages to its default set, shares
the aarch64 pacman templates and the edge channel, and registers no
lifecycle package. omarchy-hw-aarch64-gb10 is its predicate.
@birkskyum

Copy link
Copy Markdown
Contributor

I looked at this against today's n1x. It fits the branch well, and dgx-spark-hardware-test.sh, menu-guards-test.sh and test/cli pass here in an ARM container. Three small things.

  1. omarchy-hw-dgx-spark matches NVIDIA_DGX_Spark only. The ASUS Ascent GX10 had its own profile on dragon. Does it need the same sleep setting? If it does, the check could cover both.
  2. omarchy-sleep-disabled has a general name but looks for omarchy-dgx-spark.conf. A general file name, say omarchy-sleep-disabled.conf, would let another machine reuse the menu, toggle and hibernation checks.
  3. AGENTS.md on n1x puts hardware setup under install/hardware/<vendor-or-family>/, so this would be install/hardware/nvidia/dgx-spark.sh. The existing NVIDIA files are top-level too, so that may be one for Ryan.

The ASUS Ascent GX10 and the other GB10 machines share the DGX Spark's chip
and DGX OS, so the setting follows the GB10 platform instead of the Spark's DMI
name. It moves to install/hardware/gb10/, and its drop-in is now
omarchy-sleep-disabled.conf, so another machine could reuse the menu, toggle
and hibernation checks.
@jdvmi00
jdvmi00 force-pushed the spark/unsupported-sleep-dragon-20260925 branch from 69a8711 to d92783f Compare October 10, 2026 17:13
@jdvmi00

jdvmi00 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

Thanks. All three are in.

  1. Yes: the GX10 and the other GB10 machines share the Spark's chip and DGX OS, so this now follows the new aarch64-gb10 platform (Give the NVIDIA GB10 a platform name of its own #14895) instead of the Spark's DMI name. Spencer's gb10 branch keeps suspend off on GB10 as well.
  2. The drop-in is now omarchy-sleep-disabled.conf.
  3. The setup lives in install/hardware/gb10/sleep.sh, the family's folder.

@jdvmi00 jdvmi00 changed the title Disable system sleep on the DGX Spark Disable system sleep on GB10 machines Oct 10, 2026
omarchy apply hardware needs root and --install-user, so the manual's command
to put the drop-in back stopped before doing anything.
@ryanrhughes
ryanrhughes merged commit f59e2d5 into omacom:n1x Oct 10, 2026
1 check passed
ryanrhughes pushed a commit that referenced this pull request Oct 12, 2026
* Give the NVIDIA GB10 a platform name of its own

The GB10 desktops (the DGX Spark, the ASUS Ascent GX10) need packages of
their own: the NVIDIA driver, the container toolkit for GPU containers,
rdma-core for the ConnectX-7 network and NVIDIA's profilers, as DGX OS ships
them. They were plain aarch64 to omarchy-hw-platform, so no default set
carried those packages and an image had nothing to install them from.

omarchy-hw-platform now prints aarch64-gb10 for an ACPI machine with the
GB10's GPU (PCI 10de:2e12), and refuses it alongside an Apple or Qualcomm
device tree or the N1x's signatures. Image manifests accept the name. The
family adds install/omarchy-aarch64-gb10.packages to its default set, shares
the aarch64 pacman templates and the edge channel, and registers no
lifecycle package. omarchy-hw-aarch64-gb10 is its predicate.

* Disable system sleep on the DGX Spark, as DGX OS does

* Follow the DGX Spark sleep setting in the menu, suspend toggle and hibernation setup

* Check the DGX Spark sleep setting before hibernation support

* Turn sleep off on every GB10, under a general setting name

The ASUS Ascent GX10 and the other GB10 machines share the DGX Spark's chip
and DGX OS, so the setting follows the GB10 platform instead of the Spark's DMI
name. It moves to install/hardware/gb10/, and its drop-in is now
omarchy-sleep-disabled.conf, so another machine could reuse the menu, toggle
and hibernation checks.

* Give the working command that restores the GB10 sleep setting

omarchy apply hardware needs root and --install-user, so the manual's command
to put the drop-in back stopped before doing anything.
@jdvmi00
jdvmi00 deleted the spark/unsupported-sleep-dragon-20260925 branch October 14, 2026 00:59
@ryanrhughes ryanrhughes mentioned this pull request Oct 15, 2026
4 tasks done
ryanrhughes added a commit that referenced this pull request Oct 15, 2026
* Add NVIDIA N1x (aarch64) platform support to the runtime

Port of the N1x bring-up onto quattro. Everything is gated on the new
omarchy-hw-n1x detector (ACPI NVDA0200 MediaTek I2C controllers or the
10de:2e06 GB20B GPU, aarch64 only), so x86_64 behaviour is unchanged.

- install/hardware/n1x.sh (runs before nvidia.sh): ensures linux-n1x and
  headers, drops the stock kernel, pins console=tty0 acpi=nospcr and a
  verbose boot through an alphabetically-first Limine drop-in (the entry
  tool prepends += fragments, so that drop-in's fragment lands last and
  wins over omarchy-defaults.conf's quiet loglevel=0), adds a
  linux-n1x-rescue entry with its own KERNEL_CMDLINE key and UKI (Limine
  hands the entry cmdline to systemd-stub as load options, overriding the
  embedded one), keeps the NVIDIA stack unloaded with blacklist plus
  install-to-/bin/false lines because 610.57.04 cannot boot this GPU's GSP
  and its dead render node aborts Hyprland, and sets up key-only SSH for
  the install user plus a per-boot hardware probe.
- install/hardware/nvidia.sh defers to n1x.sh on this platform instead of
  configuring early KMS.
- etc/mkinitcpio.conf.d/omarchy_hooks.conf drops plymouth (crashes in the
  AArch64 initramfs) and microcode on aarch64 and adds the I2C-HID input
  modules the internal keyboard and touchpad need before root is mounted.
- Arch Linux ARM pacman config for installed aarch64 systems; the bundled
  Node.js tarball lookup follows the machine architecture.
- test/shell.d/hw-n1x-test.sh covers the detector and the script contract.

* Drive the N1x panel from the GPU on firmware 1.0 and later

BIOS 1.0.4 lets the 610.57.04 open driver boot the GPU's GSP, so the
NVIDIA blacklist is now limited to pre-release 0.x firmware. On 1.0+ the
script installs the driver, enables nvidia_drm modeset with fbdev, loads
the modules in the initramfs for early KMS, and blacklists the firmware
framebuffer driver on the kernel command line, as NVIDIA does on the
Spark, so Hyprland sees a single DRM device. Verified on the dev unit:
eDP-1 at 1920x1200@120 after an unattended reboot.

* Keep N1x bootable when the NVIDIA DKMS build fails, and track Omarchy's aarch64 repo

- hardware/n1x.sh only enables early KMS when DKMS produced nvidia_drm for the
  N1x kernel; otherwise the NVIDIA stack stays unloaded and Hyprland renders on
  the firmware framebuffer instead of every UKI build failing.
- Remote access moves out of the runtime: the N1x development ISO owns its
  own, separately removable SSH setup.
- Installed aarch64 systems gain pkgs.omarchy.org's edge aarch64 repository,
  ahead of Arch Linux ARM, and omarchy-refresh-pacman no longer copies an
  x86_64 channel config onto them.

* Check every early-loaded NVIDIA module, and report sshd state from the N1x probe

The DKMS check now requires all four modules the initramfs lists, not just
nvidia_drm. The probe reported a recovery key by name on every boot whether or
not sshd was set up; it now prints what systemd says about sshd.

* Name the N1x rescue entry for what it is

It is a text console with the GPU off; SSH comes only from a --dev-ssh image.

* Make the ASUS ProArt P14 (N1x) touchpad register touches

Its PixArt haptic pad reports force on a 0-65535 pressure axis, so
libinput's default touch threshold is never reached. Mark it a pressure
pad in /etc/libinput/local-overrides.quirks, the only file libinput reads
from /etc, and add a migration for existing installs.

* Route ASUS ProArt P14 (N1x) speakers, headphones and microphones

The MediaTek MT8901 SoundWire card (cs42l43 + 2x cs35l56) exposes only
front-end PCMs; without a UCM profile nothing routes them to the codecs
and PipeWire offers a dummy output. Add a profile for this model that
sets the AFE interconnect and reuses alsa-ucm-conf's cs42l43/cs35l56
controls. It lives under its own Omarchy UCM directory, selected through
a conf.d link for the card's long name, for omarchy-settings to install
under /usr/share/alsa/ucm2. A migration restarts PipeWire to pick it up.

* List Omarchy's aarch64 repository first on existing N1x installs

pacman-aarch64.conf puts [omarchy] ahead of Arch Linux ARM so Omarchy's
builds, the NVIDIA driver among them, win. Installs from earlier N1x
images list it last. Move the section in place, leaving the rest of the
file as it is.

* Boot N1x laptops quietly so Plymouth stays up through unlock and shutdown

The N1x console drop-in added loglevel=7, systemd.show_status=1 and
friends for bring-up, after Omarchy's quiet splash so they would win.
Kernel and systemd messages then printed over Plymouth once the disk
was unlocked and again during shutdown. Keep only console=tty0 and
acpi=nospcr on the normal entry; the rescue entry stays verbose.

* Light the N1x panel for Plymouth's LUKS prompt

The panel stays at its dim power-on backlight until the NVIDIA backlight
is first written: its DPCD brightness registers read zero while nvidia_0
reports 100. systemd-backlight is the first to write it, after the disk
is unlocked, so the LUKS prompt was nearly black. An initramfs hook right
after plymouth sets 60%; the saved level still returns after unlock.

* Give the ASUS ProArt P14 the RAM its firmware reserves for Windows' GPU

The 128 GB ProArt P14's firmware reserves 62.5 GiB as the N1x GPU's
dedicated memory under Windows. Linux's NVIDIA driver runs the GPU from
system memory, so the reservation sits idle and the laptop boots with
61 GiB, and the BIOS has no setting to shrink it.

linux-omarchy-n1x's efi_reclaim_reserved= hands the idle 61.9 GiB to
the kernel, leaving reserved the firmware's DRAM training buffer and
the top 512 MiB, where the GPU's firmware runs. Only add it when the
firmware still reserves exactly the block it was measured on.

* Add a speaker tuning for the ASUS ProArt P14 (N1x)

On Windows, ASUS's Dolby Atmos layer voices this laptop's speakers on
top of the Cirrus amplifier tuning; on Linux they sounded muffled. Start
from the static speaker voicing in ASUS's Dolby tuning for this model
(its 600 Hz speaker PEQ and 20-band optimizer curve, fitted to 0.06 dB),
then voice the low mids by ear in place of Dolby's adaptive dialog
enhancement: a 300 Hz mud cut, a softer 600 Hz bump and a broad 2.5 kHz
vocal lift. Above 4 kHz it is Dolby's curve.

It applies only once the amplifiers have ASUS's tuning for this laptop,
which the curve assumes.

* Install ASUS's speaker amplifier tuning on the ProArt P14 (N1x)

The amplifiers ran their ROM defaults, quiet and unvoiced, without
ASUS's tuning for this laptop. Install asus-proart-p14-speaker-firmware
on the H7407BA, ahead of the speaker tuning that builds on it, and add
both to existing installs.

* Let omarchy-pkg-drop run as root like omarchy-pkg-add

* Ship N1x laptops on linux-omarchy-n1x without the bring-up scaffolding

- Install linux-omarchy-n1x, which carries the N1x platform, USB4 and ASUS
  ProArt P14 patches, and drop the stock and linux-n1x kernels.
- Let limine-mkinitcpio-hook build the rescue entry as the kernel's fallback
  UKI, so it follows kernel updates, instead of a one-off copied UKI.
- Keep Plymouth in the initramfs on aarch64 again; only the N1x gets the
  I2C keyboard modules for the LUKS prompt.
- Suspend to idle, as the firmware's deep sleep returns at once.
- Keep the USB4 host routers powered and leave PCI room for docks on the
  ProArt P14, where USB4 is validated.
- Hold the GPU stack back only on Dell's pre-release firmware; the version
  sort let ASUS firmware through by accident.
- Run omarchy-n1x-probe on demand instead of on every boot.

* Move existing N1x installs to linux-omarchy-n1x

Installs the kernel, writes the same keyboard, sleep, USB4 and rescue-entry
drop-ins as a fresh install, removes the one-off rescue UKI and the
every-boot probe, and drops linux-n1x once the machine no longer runs it.
The boot order only changes once DKMS has built the NVIDIA modules for the
new kernel.

* Leave the N1x console setting to the ISO installer

The installer now gives every aarch64 install console=tty0 acpi=nospcr,
the setting the N1x's serial console table needs, so n1x.sh no longer
writes its own copy of it.

* Keep Arch Linux ARM's signing key trusted on aarch64

Arch Linux ARM signs every package in its repositories, archlinux-keyring
included, with its build key 68B3537F39A313B3E574D06777193F152BDBE6A6, and
only archlinuxarm-keyring carries it. pacman's "Import PGP key?" prompt adds
the key without trusting it, after which every update stopped at "unknown
trust" with nothing to repair it.

Before the keyring refresh, an aarch64 machine whose key is not valid
populates it from the installed archlinuxarm-keyring, or fetches it by
fingerprint, signs it locally and installs the package when that is missing,
the way the Omarchy key is bootstrapped. keys.openpgp.org does not carry it,
so it comes from keyserver.ubuntu.com. After the refresh, a key that is still
untrusted fails the update instead of reporting the keys correct.

* Keep the N1x USB4 tunnel root ports awake so docks' PCIe devices appear

The ProArt P14's USB4 tunnel root ports (10de:22cf) cannot signal a hotplug
while runtime-suspended, in D3hot or D3cold alike. They suspend about 100 ms
after going idle, so by the time a dock is plugged in and bolt authorizes it,
the PCIe tunnel comes up behind a sleeping port and nothing is enumerated: the
dock shows as authorized, its USB and display work, and its Ethernet never
appears until something happens to read the port's config space. On a fresh
install from the n1x ISO, two of three physical replugs of a CalDigit TS4
left it without its NIC, one of them for 97 minutes. Holding the ports in D0
brought the NIC up 16 ms after authorization on every try, and a deauthorize
and authorize cycle went from no NIC after 30 s to the NIC in 1 s.

Keep the three ports in D0 with a udev rule, written alongside the USB4
command line on the ProArt, and add it to existing ProArt installs with a
migration that also applies it to the running system. linux-omarchy-n1x
should eventually resume the root port when it activates a PCIe tunnel
instead; this costs the idle power of three root ports until then.

* Answer ARP only for each interface's own address

With the kernel's default ARP behaviour every interface answers for every
local address. Plug a dock's Ethernet into the same network the laptop's
Wi-Fi is on, and the Wi-Fi answers NetworkManager's address-conflict probe
for the new wired address: the probe reaches the Wi-Fi a few hundred
milliseconds late over the air, after the address is already up. NetworkManager
then sees "conflict detected ... with host <the laptop's own Wi-Fi MAC>" and
withdraws the wired routes while still reporting the connection as connected,
so all traffic quietly stays on Wi-Fi. It is a race, so it only happens on
some activations. LAN hosts also learn the Wi-Fi address on the wired MAC
and the other way round. A fresh N1x install docked to a CalDigit TS4 lost
its wired routes on two of its first three activations this way.

Set arp_ignore=1 and arp_announce=2 for all and default interfaces: answer
only for the interface's own address and announce from it. With that, the
late probes still reach the Wi-Fi but go unanswered, and three further
activations and a replug saw no conflict. The settings go in their own file
because an older source's aarch64 omarchy-settings-dev replaces
99-omarchy-sysctl.conf with a single line. A migration applies them to the
running system.

* Start the N1x rescue entry with initramfs_async=0

The rescue entry carries its own command line and missed the
initramfs_async=0 every other entry gets.

[Ryan: cherry-picked from 3b93764 onto n1x. Its other half, removing only
the stray kernels that are installed, is already how n1x removes them
(omarchy-pkg-drop skips what isn't installed). The migration that moves
existing N1x installs writes the same rescue line, so it gets the flag too.]

* Route the Dell XPS 16 N1x speakers, headphones and microphones through a UCM profile

* Stop systemd 262's NvPCR setup from failing three units on every boot

* Give the Dell XPS 16 N1x the RAM its firmware reserves for Windows' GPU, as on the ProArt P14

* Give the N1x swap on zram, the memory tuning and realtime audio scheduling

omarchy-settings ships the x86_64 memory stack on aarch64 now (swap on zram,
zswap off, the reclaim sysctls, systemd-oomd's slice policy), but installs
from the earlier N1x images ran with no swap at all. They also lacked rtkit,
which nothing pulls in on aarch64, so PipeWire got no realtime scheduling.

rtkit joins the aarch64 package list, and a migration gives existing N1x
installs rtkit and zram-generator and starts the zram swap without a reboot.

* Turn on USB4 and Thunderbolt on the N1x: keep the USB4 resources powered and set aside bus numbers for docks

[Ryan: cherry-picked onto n1x, which already sets the ASUS ProArt P14 up with
the larger windows and root-port rule validated on it (Spencer: "take
yours"). This setting becomes the one for every other N1x, the XPS 16 among
them, and its migration leaves the ProArt to 1791077437.]

* Keep the N1x GPU firmware's room below its memory out of the reclaimed RAM, since a large external display reaches into it

* Drop the N1x rescue hook and entry that the fallback entry replaces

The n1x-xps16 branch built the N1x rescue entry as its own UKI and rebuilt it
from a pacman hook running omarchy-refresh-n1x-rescue. On n1x the
limine-mkinitcpio-hook fallback entry does that job and the command does not
exist, so an install that ran that branch would fail the hook on every kernel
update and keep a rescue entry for an old kernel. Remove both there.

* Skip lib32 graphics drivers on aarch64, where Steam runs its native arm64 client and multilib does not exist

omarchy-install-gaming-gpu-lib32 asked for lib32-nvidia-utils on the N1x, which no aarch64 repository has, so omarchy-install-gaming-steam (and the Heroic, Lutris and Battle.net installers) stopped before installing anything. omarchy-pkgs now builds steam for aarch64 on Valve's native arm64 client (omacom/omarchy-pkgs#842), which needs no lib32 drivers, so the same installer works on both architectures.

* Boot the ASUS ProArt P14 keyboard with media keys on the top row, as the laptop ships, and keep F1-F12 on Fn+Esc

* Give Snapdragon and the NVIDIA N1x platform names of their own

Both families need code of their own: Snapdragon its linux-firmware-qcom,
the N1x its own kernel and NVIDIA stack. Both were plain aarch64 to
omarchy-hw-platform, so omarchy-pkg-defaults left those packages out, and an
image build, which defers hardware setup to first boot and may be offline
then, had nothing to install them from.

omarchy-hw-platform now prints aarch64-qualcomm for a "qcom," device tree
and aarch64-n1x for an ACPI machine with the N1x's MediaTek I2C controllers
(NVDA0200) or its GPU (PCI 10de:2e06), and refuses an N1x signature
alongside an Apple or Qualcomm device tree. Image manifests accept both
names, and an older builder's "qualcomm" reads as aarch64-qualcomm. Each
family adds install/omarchy-aarch64-<family>.packages to its default set,
shares the aarch64 pacman templates and the edge channel, and registers no
lifecycle package. omarchy-hw-aarch64-qualcomm and omarchy-hw-aarch64-n1x
are the family predicates; omarchy-hw-n1x stays as a hidden alias for older
N1x images. A single model's quirks (the ProArt P14's, the XPS 16's) stay
behind omarchy-hw-match on its DMI name.

* Install Gliff on aarch64 too, now that Omarchy's edge repository builds it there

* Restore Snapdragon X and Yoga Slim 7x support on n1x (#14834)

* Add Snapdragon X and Yoga Slim 7x support to n1x (#14759)

* Carry the Windows-on-ARM device trees in every UKI on Qualcomm SoCs

Snapdragon laptops boot with the device tree for their exact model and the
firmware provides none. The live ISO already boots them with a systemd-stub
UKI that carries every candidate tree as .dtbauto sections and picks one by
SMBIOS hardware id; the installed system built its UKIs with no tree at all,
so the first reboot after the install had nothing to boot.

Add the omarchy-hw-qualcomm-soc probe (root device-tree compatible starts
with qcom,) and a hardware leaf that lists the trees in /etc/kernel/uki.conf,
which mkinitcpio hands to ukify for every UKI limine-mkinitcpio-hook builds.
The list is a snapshot of /boot/dtbs/qcom taken when the leaf runs; the file
header says so, and the enumeration retires when ukify accepts globs.

* Kernel parameters Snapdragon laptops need under Windows-on-ARM firmware

The same set Fedora's Snapdragon images and the live ISO carry, as a
limine-entry-tool drop-in so limine-update folds it into every entry, with
each parameter's reason and retirement condition in the file.

* Install the Adreno Vulkan driver on Qualcomm SoCs

Adreno GPUs are platform devices, so the lspci vendor scan in vulkan.sh
never sees them; ask the SoC probe instead.

* Qualcomm firmware package, and blacklist the audio DSP until its blobs exist

Arch Linux ARM keeps the redistributable Qualcomm blobs in
linux-firmware-qcom; the installed system had none of them. The vendor-signed
DSP firmware comes later from the owner's Windows partition; until it is
there the DSP driver's failing probe resets the USB-C mux, which drops a
USB-C root disk and hangs the boot (seen on the HP EliteBook Ultra G1q).

* Copy the vendor-signed Qualcomm firmware from Windows during install

install/hardware/qualcomm/firmware.sh installs qcom-firmware-extract next to
linux-firmware-qcom and runs it in the target: the files the device tree
names (GPU zap shader, audio and compute DSP images) are taken from the stage
the ISO saved before the disk was written, or from a Windows partition still
on disk, into /usr/lib/firmware/updates. The audio-DSP blacklist now follows
what is actually missing (qcom-firmware-extract --list-missing) instead of a
path glob, so it clears itself once the firmware is present.

install/omarchy-other.packages lists qcom-firmware-extract (arch=any) so the
offline mirror carries it.

* Keep the Qualcomm DSPs off when the root disk is on USB

With real DSP firmware the Type-C port controller takes over the ports once
the ADSP is up and resets them, which drops a root disk behind a USB-C port
(G1q, external NVMe: cdsp up at 10.8 s, I/O errors and a read-only root at
22 s). Installs whose root disk reports TRAN=usb keep qcom_q6v5_pas
blacklisted (no audio or battery reporting) until the kernel stops resetting
connected ports; internal-disk installs are unchanged.

* Address Snapdragon setup review feedback

* Trim Snapdragon implementation comments

* Keep missing Qualcomm firmware from aborting setup

* Preserve safe Snapdragon setup on failed firmware inspection

* Syntax-check each Snapdragon setup script

* Add Lenovo Yoga Slim 7x board support (#8673)

* Add Yoga Slim 7x board support

* Trim Yoga board setup comments

* Skip Yoga DSP startup when disabled

* Initialize Yoga display before disk unlock

* Include compressed and extracted Yoga display firmware

* Use the laptop console for Yoga disk unlock

* Reuse board-matched zap firmware and exercise Yoga failure paths

* List every package Snapdragon setup installs for the ISO mirror

* Say how to rebuild the UKI and why firmware is searched by suffix

---------

Co-authored-by: Jimmy Van Veen <jimmy.van.veen@gmail.com>

* Move Snapdragon setup onto the aarch64-qualcomm platform

n1x now names Snapdragon laptops aarch64-qualcomm and gives them a package
list of their own. The setup leaves ask omarchy-hw-aarch64-qualcomm, so the
separate device tree probe goes, and the packages they install sit in
install/omarchy-aarch64-qualcomm.packages instead of omarchy-other.packages,
so only Snapdragon images carry them.

The Yoga Slim 7x is matched by its DMI product name (83ED) through
omarchy-hw-match, like every other single model, instead of by its device
tree.

* Ask an image's first boot to rebuild when the device tree list changes

The UKI carries the device trees only once it is rebuilt. An image's first
boot rebuilds after its last step when a step changed the files it watches,
and /etc/kernel/uki.conf is not one of them, so the device tree step now asks
for the rebuild through OMARCHY_IMAGE_BOOT_REBUILD. An unchanged list is left
alone and asks for nothing.

An install from the ISO needs nothing here: the installer's final
limine-update builds the UKIs after hardware setup.

* Keep trying for the Yoga's compute DSP after the audio DSP is up

The starter stopped at the first pass in which the audio DSP was running, so
a compute DSP that appeared later or failed its first start was never tried
again. Both are now tried until both are up or the attempts run out. The
audio DSP still decides the result, since battery, audio and USB-C hang off
it.

* Say beside the Snapdragon leaves who builds the boot image

They write boot settings and build nothing, like every hardware leaf. The
installer's final limine-update builds the UKIs after hardware setup, and an
image's first boot rebuilds once after its last step.

* Run the Snapdragon setup tests under the real platform detector

* Name n1x.sh as the leaf the Snapdragon ones follow on boot images

---------

Co-authored-by: Jimmy Van Veen <jimmy.van.veen@gmail.com>

* Install NVIDIA's 32-bit packages only on x86_64 (#10752)

The 32-bit libraries come from multilib, which only x86_64 has. On an aarch64
machine with an NVIDIA GPU, such as the DGX Spark, asking for
lib32-nvidia-utils stops the hardware setup and with it the installation. The
N1x does not reach this path; it has its own driver setup.

* Keep Intel Surface fixes off Snapdragon Surfaces (#14389)

* Keep Intel Surface fixes off Snapdragon Surfaces

omarchy-hw-surface matches any Microsoft Surface, so on a Surface Pro 11
(Snapdragon X Elite) the installer added Marvell Wi-Fi firmware and wrote an
initramfs module list naming Intel LPSS modules that do not exist on ARM.
Limit both fixes to x86_64 and leave the detector unchanged, so ARM Surface
setup can still use it.

Validated with test/shell.d/surface-hardware-test.sh, which fails on the
previous scripts, and the Snapdragon hardware test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Test that the Surface keyboard fix still runs on Intel Surfaces

The shell test only covered the keyboard fix on aarch64, so it would still pass if the guard skipped every architecture. Add an x86_64 case that checks the lsmod probe runs; the mock prints no module names, so nothing is written to /etc.

The keyboard script also reads the DMI product name from sysfs, which ARM machines and containers may not have, and under set -e that failed read would abort the test before the probe check. Mock that read as an Intel Surface so the test does not depend on the host's firmware tables.

Validated with test/shell.d/surface-hardware-test.sh, which now fails when the guard skips x86_64, and passes with cat shimmed to fail on /sys/class/dmi/id/product_name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Let the Surface keyboard test check the module list it writes

The keyboard script wrote its initramfs module list to a hard-coded /etc path, so the test could only check that lsmod ran and had to keep its lsmod mock silent to stay clear of the host. Read the directory from OMARCHY_SURFACE_MKINITCPIO_DIR with the same default, as the Yoga and Qualcomm scripts do, and point the test at a scratch directory.

The test now feeds the mock a pinctrl line and checks the exact MODULES list on x86_64, checks that an Intel Surface without a pinctrl module writes nothing, and checks that a Surface Pro 11's pinctrl_sm8550_lpass_lpi writes nothing on aarch64.

Validated with test/shell.d/surface-hardware-test.sh, which fails when the module list drops surface_kbd or when the path is hard-coded again, and with ./test/shell.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Ask omarchy-hw-x86 in the Intel Surface checks

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>

* Give the NVIDIA GB10 a platform name of its own (#14895)

The GB10 desktops (the DGX Spark, the ASUS Ascent GX10) need packages of
their own: the NVIDIA driver, the container toolkit for GPU containers,
rdma-core for the ConnectX-7 network and NVIDIA's profilers, as DGX OS ships
them. They were plain aarch64 to omarchy-hw-platform, so no default set
carried those packages and an image had nothing to install them from.

omarchy-hw-platform now prints aarch64-gb10 for an ACPI machine with the
GB10's GPU (PCI 10de:2e12), and refuses it alongside an Apple or Qualcomm
device tree or the N1x's signatures. Image manifests accept the name. The
family adds install/omarchy-aarch64-gb10.packages to its default set, shares
the aarch64 pacman templates and the edge channel, and registers no
lifecycle package. omarchy-hw-aarch64-gb10 is its predicate.

* Disable system sleep on GB10 machines (#13260)

* Give the NVIDIA GB10 a platform name of its own

The GB10 desktops (the DGX Spark, the ASUS Ascent GX10) need packages of
their own: the NVIDIA driver, the container toolkit for GPU containers,
rdma-core for the ConnectX-7 network and NVIDIA's profilers, as DGX OS ships
them. They were plain aarch64 to omarchy-hw-platform, so no default set
carried those packages and an image had nothing to install them from.

omarchy-hw-platform now prints aarch64-gb10 for an ACPI machine with the
GB10's GPU (PCI 10de:2e12), and refuses it alongside an Apple or Qualcomm
device tree or the N1x's signatures. Image manifests accept the name. The
family adds install/omarchy-aarch64-gb10.packages to its default set, shares
the aarch64 pacman templates and the edge channel, and registers no
lifecycle package. omarchy-hw-aarch64-gb10 is its predicate.

* Disable system sleep on the DGX Spark, as DGX OS does

* Follow the DGX Spark sleep setting in the menu, suspend toggle and hibernation setup

* Check the DGX Spark sleep setting before hibernation support

* Turn sleep off on every GB10, under a general setting name

The ASUS Ascent GX10 and the other GB10 machines share the DGX Spark's chip
and DGX OS, so the setting follows the GB10 platform instead of the Spark's DMI
name. It moves to install/hardware/gb10/, and its drop-in is now
omarchy-sleep-disabled.conf, so another machine could reuse the menu, toggle
and hibernation checks.

* Give the working command that restores the GB10 sleep setting

omarchy apply hardware needs root and --install-user, so the manual's command
to put the drop-in back stopped before doing anything.

* Let a Snapdragon laptop boot a kernel that builds its platform drivers as modules (#14952)

Arch Linux ARM's kernel builds the X1 pin control, interconnect, PMIC and bus
drivers in, and translates device memory access by default. Omarchy's own
aarch64 kernel builds those drivers as modules and defaults to IOMMU
passthrough, so on it a Snapdragon laptop got an initramfs without them, and
on the Yoga Slim 7x the keyboard, touchpad and touchscreen read back empty
descriptors and never appeared.

The Snapdragon setup now names those drivers for the initramfs, each one
optional, and boots with iommu.passthrough=0. Neither changes anything on Arch
Linux ARM's kernel. The device tree list takes the trees of Omarchy's own
kernel first, where that kernel keeps them under its package name.

Tested on a Yoga Slim 7x running linux-omarchy-n1x 7.2.8.

* Boot the DGX Spark without a UKI until Limine is fixed (#13426)

* Boot the DGX Spark without a UKI until Limine stops returning all memory

* Preserve Spark Direct Boot and test failed boot rebuilds

* Rebuild a Spark whose Omarchy EFI entry is inactive

* Point out an inactive Omarchy EFI entry left without its UKI

* Name the command that removes an inactive Omarchy EFI entry

* Keep a Direct Boot Spark's UKI when hardware setup runs

* Verify the Spark boot setting before rebuilding

* Match the DGX Spark by its DMI name for the boot setting

The firmware delay has only been seen on the DGX Spark, so the setting stays
with that model: a GB10 whose DMI product name is NVIDIA_DGX_Spark, checked with
omarchy-hw-match as other single models are. It moves to
install/hardware/nvidia/, and a GX10 keeps its UKI.

* Check the kernel and initramfs hashes when factory reset runs without UKIs

The reset only checked the hashes of UKIs under /EFI/Linux, so on a DGX Spark,
which boots the kernel and initramfs directly, the check found nothing to
compare and passed. It now checks every hashed file limine.conf loads, leaving
snapshot copies under limine_history, which the rebuild does not touch.

* Hide Direct Boot on a Spark that boots without a UKI

Direct Boot points the firmware at the Omarchy UKI, and a DGX Spark with the
boot setting has none, so the menu offered an entry that could only fail with
"No Omarchy UKI found". The menu now hides it while that setting is in place.

* Find the Omarchy EFI entry with the Direct Boot helper in Setup

omarchy-setup-direct-boot kept its own pattern for the Omarchy EFI entry, which
missed an inactive entry and matched any label that starts with Omarchy.
omarchy-boot-direct --number now prints the boot number of every Omarchy entry,
active or not, and Setup > Direct Boot uses it.

* Add omarchy-hw-match-device-tree for models that share a DMI name (#15064)

* Add omarchy-hw-dt-match for models that share a DMI name

The Surface Pro 11 models report one DMI name and differ in the device tree's compatible strings, so omarchy-hw-match cannot tell them apart. This helper matches a whole compatible string, ignoring case as the kernel does, and takes several strings for a model that goes by more than one.

* Fall back to the sysfs device tree in omarchy-hw-dt-match

A root without /proc/device-tree but with /sys/firmware/devicetree/base went unmatched, and naming both fixture roots ignored sysfs. Read the first of the two that is there, as omarchy-hw-platform reads both.

* Compare compatible strings in the C locale in omarchy-hw-dt-match

Bash folds case by the session's locale. In a Turkish one I becomes a dotless i, so MICROSOFT,DENALI-OLED no longer matched microsoft,denali-oled.

* Rename omarchy-hw-dt-match to omarchy-hw-match-device-tree

Spelled out, so the name needs no decoding, and starting with omarchy-hw-match, so the two list side by side as omarchy hw match and omarchy hw match device tree.

* Keep the lid from suspending a laptop on a display whose connector type is Unknown

* Have the N1x firmware reserve 4 GiB for the GPU instead of reclaiming its 62.5 GiB in the kernel

* Install the N1x's kernel under its new name, linux-omarchy

omarchy-pkgs renames linux-omarchy-n1x to linux-omarchy (omarchy-pkgs
#1038): the aarch64 kernel takes the name the x86_64 one has.

The N1x package list and its hardware setup ask for it by that name
now: the packages to install, the fallback image and boot order Limine
is given, and the check that one such kernel is installed.

The migrations that moved N1x laptops onto linux-omarchy-n1x are left
as they were. The laptops that ran them are being reinstalled, and a
fresh install runs none of them.

* N1x setup: leave the kernel to the installer and the package list

The hardware setup installed linux-omarchy and its headers itself, and
kept NVIDIA's older linux-n1x in place until the machine had booted the
new kernel. Both were for laptops moving over from linux-n1x, and those
are being reinstalled.

On an install from the ISO neither does anything: the installer puts the
kernel and its headers on the machine and checks they match, and the
N1x package list names them. The list is now the one place in this
repository that names the N1x's kernel.

Other kernels are still dropped, so Limine shows one.

* Turn on CPPC autonomous selection on the N1x, so power profiles take effect

cppc_cpufreq leaves autonomous selection off, so the CPUs follow the
kernel governor and the energy performance preference power-profiles-
daemon sets per profile changes nothing. NVIDIA's RTX Spark driver for the
daemon relies on it being on, as their images set it. The firmware hands
over each core with its CPPC floor raised to its ceiling for a faster
boot, which autonomous selection would keep, so the cores would never
slow down.

As NVIDIA's power-knobs package does, a udev rule restores each policy's
full range when cppc_cpufreq loads and when a CPU comes online, then turns
autonomous selection on, which programs the floor and ceiling from that
range. The setup writes it on new installs and a migration on existing
N1x machines; it takes effect at the next boot.

* Use NVIDIA's MT8901 UCM profiles in place of Omarchy's

These are NVIDIA's profiles from alsa-ucm-conf#862 (822569010c),
unchanged. They pick a profile per SoundWire codec topology instead of
per machine, and cover the ProArt P14 and the Dell XPS 16 along with
NVIDIA's other RTX Spark boards. The Dell loses the headset microphone,
which NVIDIA does not declare on that board.

The files move again when alsa-ucm-conf merges #862 under the card's
upstream name, mt8901-sdw.

* Translate the notice that suspend is turned off on this machine

* Install Gliff on existing aarch64 machines in a migration of its own

* Retry the N1x boot rebuild until the reclaim option is gone

---------

Co-authored-by: Spencer Bull <spencerbull2554@gmail.com>
Co-authored-by: Spencer Bull <spencer@omarchy.org>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Jimmy Van Veen <jimmy.van.veen@gmail.com>
Co-authored-by: Jim Martin <jimmartin@gmail.com>
Co-authored-by: Brandon W <103607286+turbineBMW@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Emir Beganovic <beganovic.emir@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working compatibility Make Omarchy work better on everything!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants