Skip to content

Speed up Qualcomm device tree hook and batch hardware packages - #20176

Merged
dhh merged 3 commits into
quattrofrom
speed-up-qualcomm-install
Nov 25, 2026
Merged

dhh merged 3 commits into
quattrofrom
speed-up-qualcomm-install

Conversation

@dhh

@dhh dhh commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Cuts ~8.8s from Snapdragon installs (and ~2.8s from future kernel updates):

  • Fast DTB matching + Limine hook guard (bin/omarchy-update-qualcomm-device-trees): Replace the 128-process od | tr | grep -qE loop with a single python3 pass matching the exact FDT_PROP header, length, and compatible bytes (~2.81s -> ~31ms on 128 × 150 KB DTBs), and exit early when HOOK_CALLER is a non-build Limine caller (limine-install, limine-snapper-sync). Eliminates 3 × 2.8s runs during install (~8.3s saved).
  • Batch hardware omarchy-pkg-add calls: Defer ath12k-board-fallback (outside first-boot deferred hardware rebind) and board audio/speaker packages with OMARCHY_PKG_DEFER=1 so they coalesce into a single pacman -S transaction (~0.5s saved).

Tested with test/shell.d/qualcomm-device-trees-test.sh, test/shell.d/pkg-drop-test.sh, and test/cli.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the latest change fixes the P14 speaker-tuning issue.

Summary

Speeds up Snapdragon setup and device-tree refreshes.

  • The device-tree updater finds a machine's tree in one byte-reading pass.
  • The device-tree updater skips Limine hooks that do not build boot images.
  • Qualcomm hardware setup queues selected audio and Wi-Fi packages together.

The previous speaker-tuning finding is fixed. No new actionable issues were found in the latest change.

Reviews (2) · Last reviewed commit: "Keep ProArt P14 audio package install im..." · Reviewed by Greptile

@dhh
dhh merged commit f767c7a into quattro Nov 25, 2026
6 checks passed
@dhh
dhh deleted the speed-up-qualcomm-install branch November 25, 2026 19:08
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 25, 2026
…m#20176)

* Speed up Qualcomm device tree scan and skip non-build Limine hooks

* Defer ath12k and board audio package installs during hardware pass

* Keep ProArt P14 audio package install immediate for speaker tuning match
@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