Repository navigation
Conversation
The 2016-2017 MacBook Pros switch their speaker amplifiers on over GPIO/I2C, and the in-tree snd_hda_codec_cs8409 driver binds the codec without ever enabling those lines. The card enumerates and PipeWire reports a healthy analog-stereo sink, so the machine looks fine while producing no sound. Install snd-hda-macbookpro-dkms-git, which programs the amps and brings up the CS42L83. T2 Macs take a different audio path and are already handled by fix-t2.sh; every model matched here predates the T2. linux-headers is installed by name because Arch's DKMS pacman hook discovers kernels by globbing usr/lib/modules/*/build. With no headers present it builds nothing and exits quietly, leaving an installed package, an empty dkms status and silent speakers. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Independent confirmation on a second model, plus a packaging problem worth Confirmed on MacBookPro14,1Same symptom and same fix as your 14,2, on subsystem else if (codec->core.subsystem_id == 0x106b3300 || codec->core.subsystem_id == 0x106b3600) {
// macbook pro 14,1?13,1, 14,2
fixup_found = 1;
}Omarchy 4.0.2, kernel 7.1.9-arch1-2, gcc 16, no patching needed. The two The AUR package downloads 151 MB on every kernel updateThis is the part I'd flag before promoting it. That script fetches a full kernel tarball from The AUR PKGBUILD has It doesn't need to be that wayAll of the DKMS rebuilds then run It's up at https://github.com/ari-ahm/snd-hda-macbookpro-dkms if it's useful Doing the patching at build time has a second benefit for a distro: a patch On installing
|
Quattro treats matching kernel headers as a base system guarantee (24417bf): DKMS hardware scripts install only their driver. linux-headers is the stock kernel's, so on a linux-omarchy install it pulls in headers for a kernel that is not there and DKMS builds the module for it too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Reviewed at ce47b35. The diagnosis and the approach look right, but this cannot land yet: the package it installs does not exist in What was checked. The diff was read against current What was found.
The speaker fix itself cannot be proved on a VM. Once the package exists in Second opinion. The configured reviewer is Codex at medium effort. It answered a ping, but it did not review this PR because the day's review budget was spent. This review is one model's reasoning only. |
|
This MacBookPro13,3 (subsystem #11064 is mergeable and skips a machine whose |
|
@andyholst, the cold-boot dump shows an out-of-tree module and enabled GPIO lines. As your comment on #11064 notes, no playback was tested. This does not verify installation or audio at this PR's head, There is also a distinction in #11064's skip: it checks Rechecked this head on the worker: after refreshing package databases, neither GPT-6 in Codex (High) checked the source and ran those checks. Opus 5.5 High and muse-wonder via pi (High thinking) reviewed the source comparison and agreed that the new report does not verify either head; independence is not guaranteed. They disagreed on which competing implementation to retain: #8285 includes the offline package-list entry, while #11064 adds a migration for existing installs. Neither PR was changed or closed. This remains waiting on the maintainer's package-delivery and integration decision. The selected implementation then needs its conflicts resolved and confirmation of the exact head on affected hardware through a reboot and audible playback. |
Pre-T2 MacBooks built around the Cirrus CS8409 HDA bridge boot Omarchy with
completely silent speakers. The card enumerates, PipeWire shows a healthy
analog-stereosink sitting onanalog-output-speaker, nothing is muted — andno sound comes out, which makes it look like a PipeWire routing problem rather
than a driver one.
The cause is that these machines switch their speaker amplifiers on over
GPIO/I2C, and the in-tree
snd_hda_codec_cs8409driver binds the codec withoutever enabling those lines. On a MacBookPro14,2 (subsystem
0x106b3600):snd-hda-macbookpro-dkms-gitreplaces the module with a build that programs theamps and brings up the CS42L83. Same machine afterwards:
T2 Macs already get their audio through
apple-t2-audio-configinfix-t2.sh.This is the pre-T2 sibling of that fix, and every model the regex matches
predates the T2, so the two can't collide.
On installing
linux-headersexplicitlyThis is the part I'd most like a second opinion on, because it's the reason the
bug is so easy to misdiagnose. Arch's DKMS pacman hook discovers kernels by
globbing
usr/lib/modules/*/build(all_kver()in/usr/share/libalpm/scripts/dkms). With no headers installed that glob matchesnothing, so the hook iterates zero kernels, builds nothing, and exits 0. The end
state is an installed package, an empty
dkms status, and silent speakers —with no error anywhere in the pacman output.
linux-headersis already inomarchy-other.packages, but that only guaranteesISO availability, not that it's installed on the target. Since the hook is
PostTransactionand also triggers onusr/lib/modules/*/build/include/,installing both in the same
omarchy-pkg-addcall is race-free.Packaging note
snd-hda-macbookpro-dkms-gitis AUR-only today. I've added it toomarchy-other.packageson the assumption it should be built into the[omarchy]repo the same waymacbook12-spi-driver-dkmswas, since no scriptunder
install/uses the AUR helper andomarchy-pkg-addgoes through pacman.That half needs you: it presumably requires a matching PKGBUILD in the
omarchy-pkgsrepo, which isn't public, so this PR can't carry it. Until thepackage exists in
[omarchy],omarchy-pkg-addwill fail on it — so thisshould probably land alongside (or after) that packaging change rather than
before it. Happy to restructure if you'd rather do the promotion separately, or
if you'd prefer the script call the AUR helper instead.
Testing
speakers and headphones both working after the driver builds and the machine
reboots. The driver compiled clean against kernel 7.1.8 with gcc 16 with no
patching.
dkms statusreportsinstalledafterwards../test/all: 202 of 205 test files pass. The three failures areconfig-test.sh,snapper-test.shandunowned-system-paths-test.sh, allreporting a missing
omarchy-pkgscheckout ("not ok - omarchy-pkgs checkoutfound for PKGBUILD coverage" and equivalents). I verified they fail
identically on clean
quattrowithout this change, so they're environmentalrather than caused by it — but I can't run those three properly, so they're
worth a look on your side given this PR touches
omarchy-other.packages.Scope
Limited to
MacBookPro13,x/MacBookPro14,x, matching the regex already usedby
fix-spi-keyboard.sh. The same driver also covers iMac18,x and iMac19,1(subsystems
0x106b0e00/0f00/1000), but I have no way to test those, so Ileft them out rather than guess at DMI strings. Easy to extend later if someone
with the hardware confirms.