Skip to content

Enable Dell XPS 13 sidecar speaker amplifiers - #7032

Merged
dhh merged 1 commit into
omacom:quattrofrom
spencerbull:enable-xps13-sidecar-amps
Aug 25, 2026
Merged

dhh merged 1 commit into
omacom:quattrofrom
spencerbull:enable-xps13-sidecar-amps

Conversation

@spencerbull

@spencerbull spencerbull commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Dell XPS 13 DX13260 plays through one speaker amplifier with no bass: its two CS35L56 sidecar amps never load firmware because sof_sdw only learns the machine needs SOC_SDW_SIDECAR_AMPS in Linux 7.2, through efd80de2de9d. Arch is on 7.1, and Omarchy's own linux-ptl is 7.1.8 with display patches only, so nothing on the machine selects that path today.

This installs dell-xps13-sidecar-amps — a temporary package that selects the same driver path with a module override — on that exact machine and nowhere else, on fresh installs and on existing ones.

Closes #7427.

Design

The detector requires both the DX13260 product name and SKU 0E53. The override forces a quirk value rather than merging into one — sof_sdw assigns sof_sdw_quirk = quirk_override — so a machine that matches by mistake loses whatever quirk the kernel would have chosen for itself.

Pacman registers a package even when its post_install scriptlet fails, so the hardware leaf calls dell-xps13-sidecar-amps-apply itself rather than trusting the install to have applied. A failed legacy cleanup or boot-image rebuild has to reach the caller instead of hiding behind a package pacman considers installed. That is also why the migration marks reboot-required only after the apply succeeds: a migration that exits non-zero keeps no completion marker, so the next run retries the apply even though pacman already has the package.

The leaf runs after intel/ptl-kernel.sh rather than beside the other Dell leaf at the top of install/hardware/all.sh, so its boot-image rebuild sees the Panther Lake kernel that step swaps in rather than the stock one it removes.

install/omarchy-other.packages seeds the ISO's offline mirror; it is not a target-install list, so the package is available to an offline install without landing on non-matching machines. This is the same pattern dell-xps-touchpad-haptics uses.

Merge order

This must not merge or enter an ISO build until omacom-io/omarchy-pkgs#150 has merged and dell-xps13-sidecar-amps 1.0.0-2 is published in the edge x86_64 repository. The builder folds every omarchy-other.packages entry into one pacman -Syw transaction under set -e, so an unpublished package fails every ISO build, including ISOs for hardware that will never use it.

Removal

The override becomes redundant once every bootable kernel carries the upstream commit, and it stays harmless at that point only because upstream sets exactly SOC_SDW_SIDECAR_AMPS for 1028:0e53 and the override forces the same value. Since the module parameter replaces the quirk rather than merging into it, a future kernel that adds a bit to that entry would have it overwritten, so this package should be retired by a migration once Arch ships 7.2.

🤖 Generated by Opus 5 in Claude Code. Reviewed by Codex XHigh.

@spencerbull
spencerbull marked this pull request as ready for review August 16, 2026 02:11

Copy link
Copy Markdown
Contributor Author

Merge hold: please do not merge this PR until omacom-io/omarchy-pkgs#150 has merged and dell-xps13-sidecar-amps 1.0.0-2 is published in the edge x86_64 repository. The code is ready for review now; this is strictly a dependency-order gate.

Copilot AI balanced review requested due to automatic review settings August 16, 2026 02:11

Copilot AI left a comment

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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds support for the Dell XPS 13 (DX13260) “sidecar speaker amplifier” workaround by detecting the hardware, installing/applying the needed package, and triggering a reboot-required state via a migration.

Changes:

  • Add a hardware matcher script for Dell XPS 13 DX13260 sidecar amp detection.
  • Add a packaging script and wire it into the packaging “all” runner.
  • Add a migration to enable the workaround and mark the system as reboot-required.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
migrations/1786560255.sh Runs the sidecar amp enablement on matching hardware and marks reboot-required.
install/packaging/dell-xps13-sidecar-amps.sh Conditionally installs and applies the amplifier workaround package.
install/packaging/all.sh Includes the new packaging script in the standard packaging sequence.
install/omarchy-other.packages Adds the sidecar amps package to the general “other” packages list.
bin/omarchy-hw-dell-xps13-sidecar-amps Adds hardware detection for the DX13260 + SKU 0E53 combination.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread migrations/1786560255.sh Resolved
Comment thread install/omarchy-other.packages Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a64c61ecde

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI review requested due to automatic review settings August 16, 2026 02:25

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

Suppressed comments (5)

install/omarchy-other.packages:66

  • This adds dell-xps13-sidecar-amps to a shared package list (likely installed broadly), but the workaround is intended only for a specific model and is already installed conditionally in install/config/hardware/dell/xps13-sidecar-amps.sh. This can cause the package to be installed on unsupported hardware (or create redundant installs). Prefer one approach: either (a) remove this line and keep conditional omarchy-pkg-add, or (b) keep the global package entry and remove the conditional omarchy-pkg-add so the config script only runs the apply step when matched.
dell-xps13-sidecar-amps

install/config/hardware/dell/xps13-sidecar-amps.sh:6

  • This script is run via run_logged .../xps13-sidecar-amps.sh (executed, not sourced). Without a shebang, execution relies on the caller’s shell behavior and can fail if invoked directly. Add an explicit interpreter line (e.g., #!/bin/bash) to make it reliably executable in all environments where run_logged might exec files.
# Enable the temporary sidecar amplifier workaround on the exact Dell XPS 13 model that needs it.

if omarchy-hw-dell-xps13-sidecar-amps; then
  omarchy-pkg-add dell-xps13-sidecar-amps &&
    sudo dell-xps13-sidecar-amps-apply
fi

migrations/1786560255.sh:4

  • The migration sources the config script via $OMARCHY_PATH/install/..., but the rest of the installer wiring in this PR uses $OMARCHY_INSTALL/config/... (see install/config/all.sh). If $OMARCHY_PATH isn’t guaranteed here (or points somewhere else), this migration will fail to locate the script. Align this path with the canonical variable/path used elsewhere (likely $OMARCHY_INSTALL/config/hardware/dell/xps13-sidecar-amps.sh, or compute from a single shared root variable).
echo "Enable Dell XPS 13 sidecar speaker amplifiers"

if omarchy-hw-dell-xps13-sidecar-amps; then
  source "$OMARCHY_PATH/install/config/hardware/dell/xps13-sidecar-amps.sh" &&
    omarchy-state set reboot-required
fi

migrations/1786560255.sh:6

  • The hardware check is duplicated: the migration checks omarchy-hw-dell-xps13-sidecar-amps, and the sourced script also checks the same condition. This makes the control flow harder to reason about and increases the chance of diverging behavior later. Prefer doing the match check in exactly one place: either remove the if ...; then block from the migration and let the sourced script gate itself, or remove the if from the sourced script and make it assume it’s only called when already matched.
if omarchy-hw-dell-xps13-sidecar-amps; then
  source "$OMARCHY_PATH/install/config/hardware/dell/xps13-sidecar-amps.sh" &&
    omarchy-state set reboot-required
fi

install/config/hardware/dell/xps13-sidecar-amps.sh:5

  • Calling sudo inside an installer/config script can break non-interactive runs (password prompt) or environments where the installer is already running as root. If the project has a standard privilege escalation helper (or a convention that config scripts are executed with the needed privileges), use that instead; otherwise make the privilege model consistent (e.g., run the whole script with elevated permissions and avoid sudo inside).
    sudo dell-xps13-sidecar-amps-apply

The Dell XPS 13 DX13260 drives its two CS35L56 sidecar speaker amplifiers through a quirk that Linux only gains in 7.2, so until Arch ships that kernel the machine plays through one amplifier with no bass. The dell-xps13-sidecar-amps package selects the same driver path with a module override; this installs it on that exact machine and nowhere else.

The detector requires both the DX13260 product name and SKU 0E53, because the override forces a quirk value rather than merging into one, and a machine that gets it wrong loses whatever quirk the kernel would have chosen for itself.

Pacman registers a package even when its post_install scriptlet fails, so the leaf calls dell-xps13-sidecar-amps-apply itself instead of trusting the install to have applied: a failed cleanup or boot-image rebuild has to reach the caller rather than hide behind a package pacman considers installed. That is also why the migration marks reboot-required only after the apply succeeds — a migration that exits non-zero keeps no completion marker and retries the apply on the next run, even though pacman already has the package.

The leaf runs after intel/ptl-kernel.sh rather than beside the other Dell leaf at the top of install/hardware/all.sh, so its boot-image rebuild sees the Panther Lake kernel that step swaps in rather than the stock one it removes.

Co-Authored-By: Codex XHigh <[email protected]>
@omarchybot
omarchybot force-pushed the enable-xps13-sidecar-amps branch from 69424b1 to 827f295 Compare August 25, 2026 15:43
@omarchybot
omarchybot changed the base branch from dev to quattro August 25, 2026 15:44
@omarchybot

Copy link
Copy Markdown
Collaborator

Rebased this onto quattro and retargeted the PR, because the change could not have taken effect as it stood. It was based on dev, which is 3.8.5 and 1806 commits behind; quattro is the default branch and install/config/hardware/ does not exist there at all. Hardware setup moved to install/hardware/, orchestrated by install/hardware/all.sh via bin/omarchy-apply-hardware, and quattro's install/config/all.sh has no hardware lines left in it. An ISO build from a dev checkout also fails outright, since the builder requires install/provisioning/setup-form.sh, which only exists on quattro.

The port keeps your design intact — the exact model-plus-SKU gate, the explicit dell-xps13-sidecar-amps-apply call because pacman registers a package whose scriptlet failed, and reboot-required only after the apply succeeds. Three things changed beyond the paths: the leaf now runs after intel/ptl-kernel.sh so its boot-image rebuild sees the Panther Lake kernel rather than the stock one that step removes; the migration is re-stamped 1787666837, past quattro's latest; and the detector reads its SKU path through OMARCHY_DMI_PRODUCT_SKU, defaulting to the real sysfs attribute, which is how fix-synaptic-touchpad.sh and friends stay testable. That override is what lets test/shell.d/xps13-sidecar-amps-test.sh cover detection, the no-op on other hardware, failure propagation through both the package install and the apply, and the migration's retry semantics under the bash -euo pipefail the quattro runner uses.

Your refutations of the three Copilot comments were all correct and I verified each independently: migrations run through bash "$file", run_logged sources leaves with bash -c 'source ...', and omarchy-other.packages only seeds the ISO offline mirror — every runtime consumer reads omarchy-base.packages instead.

One correction to the removal note: leaving the package installed after 7.2 is harmless only because upstream sets exactly SOC_SDW_SIDECAR_AMPS for 1028:0e53 and the override forces the same value. sof_sdw assigns sof_sdw_quirk = quirk_override rather than OR-ing it, so a future kernel that adds a bit to that entry would have it silently overwritten. Worth a retirement migration once Arch ships 7.2 rather than leaving it to pacman -Rns.

Reviewed by Codex at xhigh, which found no defect in the detector, leaf, or migration logic beyond the branch-targeting problem above. The merge-order hold stands: omarchy-pkgs#150 has to publish dell-xps13-sidecar-amps 1.0.0-2 before this can merge, or every ISO build fails on the unresolved package.

@dhh
dhh merged commit 77305ed into omacom:quattro Aug 25, 2026
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
The Dell XPS 13 DX13260 drives its two CS35L56 sidecar speaker amplifiers through a quirk that Linux only gains in 7.2, so until Arch ships that kernel the machine plays through one amplifier with no bass. The dell-xps13-sidecar-amps package selects the same driver path with a module override; this installs it on that exact machine and nowhere else.

The detector requires both the DX13260 product name and SKU 0E53, because the override forces a quirk value rather than merging into one, and a machine that gets it wrong loses whatever quirk the kernel would have chosen for itself.

Pacman registers a package even when its post_install scriptlet fails, so the leaf calls dell-xps13-sidecar-amps-apply itself instead of trusting the install to have applied: a failed cleanup or boot-image rebuild has to reach the caller rather than hide behind a package pacman considers installed. That is also why the migration marks reboot-required only after the apply succeeds — a migration that exits non-zero keeps no completion marker and retries the apply on the next run, even though pacman already has the package.

The leaf runs after intel/ptl-kernel.sh rather than beside the other Dell leaf at the top of install/hardware/all.sh, so its boot-image rebuild sees the Panther Lake kernel that step swaps in rather than the stock one it removes.

Co-authored-by: Codex XHigh <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 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.

Dell XPS 13 (0E53) has no bass: CS35L56 woofer amps never load firmware without the sof_sdw sidecar quirk

5 participants