Repository navigation
Enable Dell XPS 13 sidecar speaker amplifiers - #7032
Conversation
|
Merge hold: please do not merge this PR until omacom-io/omarchy-pkgs#150 has merged and |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
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-ampsto a shared package list (likely installed broadly), but the workaround is intended only for a specific model and is already installed conditionally ininstall/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 conditionalomarchy-pkg-add, or (b) keep the global package entry and remove the conditionalomarchy-pkg-addso 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 whererun_loggedmight 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/...(seeinstall/config/all.sh). If$OMARCHY_PATHisn’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 theif ...; thenblock from the migration and let the sourced script gate itself, or remove theiffrom 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
sudoinside 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 avoidsudoinside).
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]>
69424b1 to
827f295
Compare
|
Rebased this onto The port keeps your design intact — the exact model-plus-SKU gate, the explicit Your refutations of the three Copilot comments were all correct and I verified each independently: migrations run through One correction to the removal note: leaving the package installed after 7.2 is harmless only because upstream sets exactly 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 |
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]>
Summary
The Dell XPS 13 DX13260 plays through one speaker amplifier with no bass: its two CS35L56 sidecar amps never load firmware because
sof_sdwonly learns the machine needsSOC_SDW_SIDECAR_AMPSin Linux 7.2, throughefd80de2de9d. Arch is on 7.1, and Omarchy's ownlinux-ptlis 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
DX13260product name and SKU0E53. The override forces a quirk value rather than merging into one —sof_sdwassignssof_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_installscriptlet fails, so the hardware leaf callsdell-xps13-sidecar-amps-applyitself 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 marksreboot-requiredonly 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.shrather than beside the other Dell leaf at the top ofinstall/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.packagesseeds 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 patterndell-xps-touchpad-hapticsuses.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-2is published in the edge x86_64 repository. The builder folds everyomarchy-other.packagesentry into onepacman -Sywtransaction underset -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_AMPSfor1028:0e53and 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.