Skip to content

Install XPS 13 Panther Lake speaker firmware - #14017

Merged
spencerbull merged 11 commits into
quattrofrom
xps13-ptl-cirrus-firmware
Oct 7, 2026
Merged

spencerbull merged 11 commits into
quattrofrom
xps13-ptl-cirrus-firmware

Conversation

@spencerbull

@spencerbull spencerbull commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

The Dell XPS 13 DX13260 Panther Lake variant needs nine 10280e54 Cirrus firmware aliases for its built-in speakers, as reported in #11356. Stable’s stock Cirrus firmware lacks those aliases.

Install the published linux-firmware-cirrus-dx13260 package through omarchy-pkg-add during hardware setup and an existing-install migration. The package added in omarchy-pkgs #823 owns the aliases separately from Arch’s firmware, so ordinary updates and stable refreshes retain them while stock firmware continues to own every binary. The ISO cache includes the package for offline installation; the hardware leaf installs it only on the Panther Lake DX13260. The one-time migration requests a reboot for each user completing it, including when hardware setup has already installed the package.

This PR covers audio only. The XPS display quirks are carried by linux-omarchy and BORE 7.2.8-2 in omarchy-pkgs #819; #6853 tracks the related Wildcat Lake Panel Replay problem. This PR adds no display configuration or generic pacman update handling.

🤖 Generated by GPT-6.1-Sol High in Codex (T3 Code). Reviewed by GPT-6.1-Sol XHigh in Codex and Greptile (model and effort undisclosed).

Explicitly select the Omarchy Cirrus firmware when the installed package predates the 1028:0e54 aliases. Apply it during hardware setup and through an update migration, and request a reboot for each user until the firmware can load. Require the same minimum version in the offline package list so newer Arch snapshots keep their genuine firmware.

Co-Authored-By: GPT-6.1-Sol <[email protected]>
@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High risk] Adds hardware firmware installation and system migration.

The PR appears safe to merge, though a later user can receive an unnecessary reboot prompt.

Findings

  1. P2 Unnecessary reboot prompt ▶

Summary

The PR adds conditional DX13260 Panther Lake speaker-firmware installation to hardware setup and an existing-install migration, and includes the package in the ISO’s additional package list. The migration now requests a reboot even when hardware setup installed the package first.

Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[DX13260 hardware setup] --> B[Install firmware package if missing]
  C[Each user's pending migration] --> B
  B --> D[Set that user's reboot-required flag]
  D --> E[Next update may prompt for reboot]
Loading

Reviews (11) · Last reviewed commit: "Request a reboot directly in the PTL fir..." · Reviewed by Greptile

A caller-controlled marker path would let the privileged install command replace an unrelated file. Keep the production path fixed and redirect that literal only in isolated test copies. Cover hostile environment overrides without touching system files.

Co-Authored-By: GPT-6.1-Sol <[email protected]>

Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
Comment thread test/shell.d/xps13-ptl-firmware-test.sh Resolved
spencerbull and others added 2 commits October 1, 2026 23:41
Quote the marker path as a Bash literal before escaping it for sed, so TMPDIR metacharacters survive both fixture copying and script evaluation. Rerun the firmware regression under a special-character TMPDIR while preserving the original PATH for real pacman resolution.

Co-Authored-By: GPT-6.1-Sol <[email protected]>

Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
@spencerbull

Copy link
Copy Markdown
Contributor Author

Reviewed 96af8d4c with GPT-6.1-Sol High in T3 Code and a required GPT-6.1-Sol XHigh source second opinion. Initial installation and upgrade work, but this needs a correction before merge.

P2 — supported pacman refresh removes the repair. The firmware leaf installs the shim once, while refresh permits core-first downgrades. On the target guest, the actual omarchy refresh pacman stable downgraded linux-firmware-cirrus from 20260810-3 to 20260810-2, removing the 10280e54 aliases. The migration stayed complete. A subsequent actual omarchy update -y exited successfully but retained 20260810-2, with the hardware detector still true and no repair pending. Codex XHigh contributed this mechanism; source inspection and real transactions verified it. The firmware repair needs to survive this path.

What passed:

  • Genuine packaged 4.0.4-1 → pinned PR candidate through the actual omarchy update -y entrypoint. The emulated DX13260/PTL target installed the real Omarchy 20260810-3 firmware, completed migrations, requested reboot and booted a working desktop. The ordinary VM control kept 20260810-2 with no firmware reboot state. A second real user received the pre-reboot prompt without reinstalling.
  • A new full ISO built from the PR and stable snapshot, with byte-identical PR files, verified filesystem integrity and all nine required aliases. It installed offline with linux-omarchy and matching headers, rebooted, accepted graphical login and ran the packaged Hyprland/Quickshell desktop. With explicit PTL detection inputs, the firmware leaf correctly preserved the preinstalled package without another transaction or reboot marker.
  • The real DX13260/PTL machine already had the same published shim. Both amplifiers loaded v4.5.9 and applied calibration; its physical microphone captured separate left/right speaker test tones. This verifies current hardware output, not a new hardware upgrade.
  • All 13 focused firmware assertions, four surrounding migration/update suites and 69 ISO builder unit tests passed. The CLI suite fails the same VS Code theme assertion on both the base and PR.

Limits: virtual hardware used explicit DMI/lspci fixtures, not physical PTL emulation. Fresh installation ran under nested KVM in an isolated Proxmox worker because native ISO attachment lacked administrator access. The unpublished candidate stages runtime/settings/Neovim and signed prerelease Hype/Monologue packages; stable firmware repositories and priority stay unchanged. The test ISO omits the unavailable pre-existing Apple T2 Wi-Fi package. Its stock-kernel installation failed a separate existing header-selection issue: T2 headers satisfied the generic target, leaving stock Linux without matching headers; the same ISO succeeded with the Omarchy kernel. Neither limitation is hidden as a pass.

The second user's persistent reboot flag also survived another user's reboot, an inherited generic state-lifetime limitation. Prior Greptile environment-path and TMPDIR findings are fixed. Codex's read isolation does not guarantee independence; its new finding was verified through source and runtime evidence.

No source change was pushed. Waiting on a maintainer/author correction to firmware retention across refresh. No merge or approval performed.

🤖 Generated by GPT-6.1-Sol High in T3 Code. Reviewed by GPT-6.1-Sol XHigh.

Disable PSR2 selective fetch and Panel Replay on DX13260 Panther Lake through a Limine drop-in. Apply it during hardware setup and an update migration, rebuild once per machine, and request reboot until both parameters are booted. Reject diagnosed Limine build errors even when the wrapper returns success so interrupted repairs stay pending.

Co-Authored-By: GPT-6.1-Sol XHigh <[email protected]>
@spencerbull spencerbull changed the title Install the XPS 13 Panther Lake speaker firmware from Omarchy Apply the XPS 13 Panther Lake speaker and display fixes Oct 3, 2026
A pending migration must rebuild after restoring its missing display configuration even when another user previously completed the machine-wide rebuild. Remove the fixed marker before writing the drop-in so failed writes and builds remain retryable. Fresh installation already rebuilds after hardware setup through the ISO finalizer.

Co-Authored-By: GPT-6.1-Sol XHigh <[email protected]>

Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
@spencerbull

spencerbull commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated review for db21abd: this is an audio-only, six-file PR installing the published linux-firmware-cirrus-dx13260 package from omarchy-pkgs #823. The three-line hardware leaf only detects the PTL DX13260 and calls omarchy-pkg-add. The six-line migration installs through that leaf and requests a reboot once for each user completing it, including when hardware setup installed the package earlier. There is no shared marker or privileged marker write. Generic pacman updater code and tests match the PR base; display setup is removed.

Physical gonk-ptl validation used stock Omarchy 4.0.4 and stable packages. The published package survived the normal stable refresh replacing the old Cirrus shim with stock firmware, and the normal system-package update phase passed. All nine aliases and their targets remained in the boot image. After reboot, both amplifiers loaded the expected firmware/tuning and the user confirmed both speakers. Package integrity checks were clean.

The exact final source passed isolated signed offline hardware-install-first and migration checks, completed-old-marker preservation, actual package failure/retry, one-time per-user prompts, non-target hardware and nine aliases resolving inside the boot image. Fourteen focused files passed 119 assertions. Removing the prompt, gating it on package absence, or restoring the leaf's privileged marker write each makes a regression fail. The full suite exits 1: eleven shell failures and the CLI VSCode failure match previously reproduced exact-base failures; affected test sources are unchanged. The broad suite is not green.

GPT-6.1-Sol XHigh in Codex reviewed the final simplification and found no new source issue; reviewer independence is not guaranteed. Greptile's valid hardware-install-before-migration finding is fixed by the one-time migration prompt. The previously verified inherited P2 remains: Limine can swallow a failed boot-image rebuild while pacman registers the package. That requires a separate Limine/package-update repair and is not claimed fixed here. Greptile's final-head review completed. Its late-user reboot observation is an accepted tradeoff: a pending user can receive one reboot request after the machine already rebooted; completed migrations do not request another.

Display fixes belong to omarchy-pkgs #819, which carries PTL and WCL kernel quirks in linux-omarchy and BORE 7.2.8-2. #6853 tracks the related WCL issue; the reporter confirmed operation without boot parameters. The patched kernel is on edge and must reach the release channel. This audio PR does not close the display issue or remove existing device boot parameters.

Limits: final consumer source was tested on a disposable VM; published-package audio was tested physically on PTL. There is no new physical WCL validation or complete 4.0.4-to-next-release upgrade claim. The delivered ISO represents earlier head 19e5941 and needs rebuilding for this revision. No merge performed.

🤖 Generated by GPT-6.1-Sol High in Codex (T3 Code). Reviewed by GPT-6.1-Sol XHigh in Codex and Greptile (model and effort undisclosed).

Constrain Cirrus firmware in the package transaction so a stable channel refresh cannot remove the required aliases. Recover old firmware independently of completed migrations, and request reboot only after verifying a successful repair. Preserve package exclusions through native pacman handling while keeping interactive conflict recovery answerable.

Co-Authored-By: GPT-6.1-Sol High <[email protected]>
Co-Authored-By: GPT-6.1-Sol XHigh <[email protected]>
Comment thread bin/omarchy-update-pacman Resolved
Comment thread bin/omarchy-update-pacman Resolved
Honor package exclusions while returning failure when an installation leaves the required Cirrus firmware too old. Print-only and download-only operations remain successful without a repair or reboot request.

Co-Authored-By: GPT-6.1-Sol High <[email protected]>
Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
@jandrusk

jandrusk commented Oct 6, 2026

Copy link
Copy Markdown

Impressive amount of verification here. The firmware-retention design worries me, though. This adds ~100 lines of pacman argument parsing to omarchy-update-pacman, the path every update on every machine goes through, to work around one package on one laptop model. The root cause is that [core] precedes [omarchy] and both ship linux-firmware-cirrus.

Would it be simpler to fix it in omarchy-pkgs instead, by shipping the shim under its own name? For example linux-firmware-cirrus-dx13260 with provides=(linux-firmware-cirrus) and conflicts=(linux-firmware-cirrus), or an alias-only package that installs just the nine 10280e54 links next to stock firmware. Then the hardware leaf only needs omarchy-pkg-add, neither -Syu nor omarchy refresh pacman can downgrade it, and omarchy-update-pacman stays generic.

If the wrapper approach stays, install/omarchy-other.packages now lists linux-firmware-cirrus>=20260810-3 for every ISO build. Please confirm the offline installer doesn't pull the shim onto non-XPS machines.

@spencerbull

Copy link
Copy Markdown
Contributor Author

I like that idea much better than doing all of this workaround for one device. I agree!

Install the separately owned firmware aliases through the package helper so stock firmware updates and stable refreshes retain them. Use a distinct migration to reach machines with the prior migration completed and preserve the reboot prompt until reboot. Restore the generic updater and leave display quirks to the kernel.

Co-Authored-By: Codex GPT-6.1-Sol XHigh <[email protected]>
@spencerbull spencerbull changed the title Apply the XPS 13 Panther Lake speaker and display fixes Install XPS 13 Panther Lake speaker firmware Oct 7, 2026
Comment thread install/hardware/all.sh Resolved
Keep hardware setup limited to installing the firmware package. The migration owns the pending-reboot marker and preserves prompts for every user migrating before reboot.
Each pending user's one-time migration requests a reboot even when hardware setup has already installed the aliases. Let migration completion handle repeat runs and remove the shared marker and its privileged write.

Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
Comment thread migrations/1791265613.sh Resolved
@spencerbull
spencerbull merged commit 0f8af9b into quattro Oct 7, 2026
1 check passed
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