Skip to content

Complete CS4208 volume and suspend setup for Omarchy #6921 - #1

Open
doctor wants to merge 4 commits into
sunoxen-lab:fix-macbook12-cs4208-audiofrom
doctor:improve/pr-6921-soft-mixer
Open

doctor wants to merge 4 commits into
sunoxen-lab:fix-macbook12-cs4208-audiofrom
doctor:improve/pr-6921-soft-mixer

Conversation

@doctor

@doctor doctor commented Aug 16, 2026 •

Copy link
Copy Markdown

Purpose

This targets the source branch of basecamp/omarchy#6921, so the original author can merge the changes into that PR rather than creating a duplicate Omarchy submission.

Changes on top of omacom#6921

  • add a MacBook9,1/MacBook10,1-specific WirePlumber rule enabling software volume on the CS4208 card while retaining its stereo profile
  • install a oneshot system service that safely sets the hardware mixer to 100% at boot and persists it with ALSA state
  • select suspend-to-idle only on these two models because the CS4208 speaker amplifier does not recover from deep S3, and install the override on both fresh systems and upgrades
  • keep fresh-install system setup separate from per-user WirePlumber setup
  • make the migration idempotent, preserve an already-working hand-installed driver, and repair a package whose module is missing for the running kernel
  • remove stale WirePlumber route state when activating the targeted rule
  • document that suspend-to-idle consumes more battery while suspended than deep S3
  • cover fresh-install, upgrade, repair, unsupported-model, and idempotence cases

The package requested by the original PR is provided by omarchy-pkgs#153, backed by merged upstream driver PR #60.

Validation

  • all 12 focused CS4208 shell tests pass
  • WirePlumber configuration parses with spa-json-dump
  • the systemd unit passes systemd-analyze verify
  • git diff --check
  • live MacBook10,1 clean-boot validation: the patched codec owns the CS4208, PipeWire exposes the expected two-channel stereo sink, and physical Front Left / Front Right tones are audible
  • live suspend validation: the kernel recorded a 20-second PM: suspend entry (s2idle) / PM: suspend exit cycle, all PipeWire services survived, and physical Front Left / Front Right tones remained audible after resume
  • negative control: deep S3 remained physically silent even after the driver's resume callback performed a full codec reinitialization and speaker-route restore, including a delayed retry after platform resume

The aggregate ./test/all run passes the CS4208 coverage and retains two unrelated environment failures: the absent sibling omarchy-iso checkout and the unchanged network-QR test. Neither failing test or implementation area is touched here.

@doctor doctor changed the title Complete CS4208 volume setup for Omarchy #6921 Complete CS4208 volume and suspend setup for Omarchy #6921 Aug 16, 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.

1 participant