Skip to content

Speed up hardware install pass and avoid premature package flushes - #20166

Merged
dhh merged 1 commit into
quattrofrom
install-hardware-pass-speedup
Nov 25, 2026
Merged

dhh merged 1 commit into
quattrofrom
install-hardware-pass-speedup

Conversation

@dhh

@dhh dhh commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Fixes several bottlenecks and minor issues spotted in /var/log/omarchy-install.log on an aarch64 N1x install (Dell XPS 16):

  • Defer packages in install/hardware/n1x.sh: adds OMARCHY_PKG_DEFER=1 to both omarchy-pkg-add calls so n1x.sh doesn't flush dell-xps-touchpad-haptics mid-pass (previously ~1.08s in n1x.sh plus a second pacman transaction in flush-packages.sh).
  • Keep deferred queue intact when already installed (bin/omarchy-pkg-add): when explicit package args are all already installed, exit immediately without flushing $OMARCHY_PKG_QUEUE_FILE; when flushing with missing packages, filter out already-installed args before calling pacman -S (eliminating up to date -- skipping warnings).
  • Platform-aware leaf skipping (install/helpers/logging.sh): extend omarchy_skip_leaf to cache omarchy-hw-platform once and skip leaves belonging to other platforms (x86, aarch64, aarch64-n1x, aarch64-gb10, aarch64-qualcomm), eliminating ~58 no-op hardware script spawns and ~35+ repeated PCI/ACPI scans on N1x (~0.6–0.7s saved). Also adds the missing hardware/qualcomm/hibernation.sh entry.
  • Avoid sudo as root (install/hardware/set-wireless-regdom.sh): write directly when EUID == 0.
  • Tests (test/shell.d/pkg-drop-test.sh): cover queue preservation when already-installed args are passed and multi-platform leaf skipping.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · Fix the Intel Wi-Fi leaf mapping before merging so ARM machines keep the card-specific workaround.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR changes package timing and hardware-script selection during installation across supported platforms.

Fix the Intel Wi-Fi leaf mapping before merging so ARM machines keep the card-specific workaround.

Findings

  1. P1 ARM skips Intel Wi-Fi fix ▶

Summary

This PR batches N1x packages, preserves deferred packages when requested packages are already installed, and skips setup leaves for other platforms.

  • N1x package requests wait for the later install pass.
  • Hardware setup runs only the scripts for its platform.
  • Root writes the wireless setting without calling sudo.

Reviews (2) · Last reviewed commit: "Speed up hardware install pass and avoid..." · Reviewed by Greptile

@dhh
dhh merged commit 5ea1f6c into quattro Nov 25, 2026
6 checks passed
@dhh
dhh deleted the install-hardware-pass-speedup branch November 25, 2026 17:08
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 25, 2026
hardware/asus/fix-asus-zenbook-a16-speakers.sh | \
hardware/asus/fix-asus-zenbook-14-ux3480qa-audio.sh | \
hardware/asus/fix-asus-proart-pz13-speakers.sh | \
hardware/intel/* | \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 ARM skips Intel Wi-Fi fix

hardware/intel/* includes fix-wifi7-eht.sh, which fixes Intel BE200/BE211 Wi-Fi cards, not Intel CPUs. If an ARM machine uses one of these PCIe cards, this mapping skips the fix before its device check can run. The card keeps the broken Wi-Fi 7 mode, leaving Wi-Fi unusably slow.

Keep this leaf outside the x86-only mapping so its device check still runs.

@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.

2 participants