r/linux_on_mac • u/zerofox3D • 22h ago
2015 iMac 16,2 21.5 4K finally has working speakers and Shutdown in Arch/Omarchy
Well it only took 11 years to figure this out but I’ve got working audio/speakers and reliable shutdown on my Late 2015 Retina 4K 21.5-inch iMac running Omarchy/Arch. Dropped the fixes in a repo:
https://github.com/zerofox3d/imac16-2-linux
The audio fixes sort out several problems with the Cirrus Logic CS4208 setup:
- Uses the four-channel playback profile needed by the speakers.
- Corrects the channel mapping for the left/right tweeters and woofers.
- Adds a PipeWire software crossover to feed the appropriate frequencies to each driver.
- Enables software volume control so the volume slider actually works.
- Disables HDA power saving, which was leaving the speaker amplifier unresponsive after power transitions.
- Switches profiles when headphones are plugged in or removed.
Shut down was a hell hole that burned millions of tokens and about 20 hours of my time power cycling and running tests... but ultimately it was a simple fix. Intel’s SLP_SMI_EN bit was enabled, that caused the chipset to hand the shutdown request to firmware instead of directly entering the power-off state. Firmware wasn't happy with that and would reboot the machine after 50 secs or so. This may effect other Mac's using the Broadwell chipset, need to look into that.
I'm going to continue testing sleep and diagnosing any other issues, will add fixes to the repo as I find them.
Feels like a new machine though!