# No sound from iMac / MacBook Pro speakers (Cirrus CS8409)

**Symptom:** Linux shows a "Built-in Audio Analog Stereo" output, nothing is muted, and apps seem to play audio, but nothing comes out of the built-in speakers.

**Cause:** these Macs use a Cirrus Logic **CS8409** audio chip that drives separate speaker amplifiers. The CS8409 driver in the standard Linux kernel only supports the Dell versions of this chip, so it never sets up Apple's speaker amplifiers. Audio gets to the chip, but never reaches the speakers.

**Fix:** install the community driver [davidjo/snd_hda_macbookpro](https://github.com/davidjo/snd_hda_macbookpro). It rebuilds the kernel's `snd-hda-codec-cs8409` module with Apple support and installs it with DKMS. The original module is kept and can be restored.

> [!NOTE]
> No first-party fix exists for the speakers. Without a third-party driver, your options are the headphone jack (may work on the stock driver), USB audio, or Bluetooth.

---

## 1. Confirm you have this problem

```bash
cat /sys/class/dmi/id/product_name
```

Look for `iMac18,1`, `iMac18,2`, `iMac18,3`, `iMac19,1`, `MacBookPro13,x` or `MacBookPro14,x`.

```bash
grep -E 'Codec|Subsystem Id' /proc/asound/card*/codec#0
```

You should see `Codec: Cirrus Logic CS8409` and a subsystem ID starting with `0x106b` (Apple). These are the IDs the driver supports:

| Subsystem ID | Mac |
|---|---|
| `0x106b0e00` | iMac 18,1 |
| `0x106b0f00` | iMac 18,2 |
| `0x106b1000` | iMac 18,3 / 19,1 |
| `0x106b3300` | MacBook Pro 13,1 / 14,1 |
| `0x106b3600` | MacBook Pro 14,2 |
| `0x106b3900` | MacBook Pro 14,3 |

Or run `./scripts/validate-mac-audio.sh`. It checks all of this and prints PASS/FAIL lines.

Check that the sound software isn't the problem:

```bash
wpctl status
```

```bash
wpctl get-volume @DEFAULT_AUDIO_SINK@
```

If a sink is listed, it isn't `[MUTED]`, and `speaker-test -c2 -t sine -l1` runs without errors but you hear nothing, it's the driver.

## 2. Review the driver before you install it

The driver runs in the kernel, so read it before you install it. A review of commit **`1931615`** (2026-11-14) found:

- **Install scripts** (`install.cirrus.driver.sh`, `dkms.sh`): on Ubuntu they unpack only `sound/hda` from Ubuntu's own `linux-source` package. On other distros they download kernel source only from `cdn.kernel.org`. Then they apply two patches, build one module and register it with DKMS. They don't use `curl | sh`, encoded commands, cron jobs, services, or changes to `/etc` or user accounts.
- **Driver code:** ordinary HDA codec and I2C amplifier setup. It doesn't use sockets, file I/O, user-mode helpers, credential changes or symbol lookups. The one hook it uses (`exec_verb`) is the same mechanism the official Dell code uses.
- **One weakness (not malicious):** `dkms.sh` makes `/usr/src/snd_hda_macbookpro-0.1` point at the clone, and DKMS rebuilds from it as root on every kernel update. **Clone into a root-owned folder** (as below), not your home directory.

Pin the version you reviewed, so a later push can't change what you install.

## 3. Install

On Ubuntu, the quickest way is `sudo ./scripts/install-cs8409-driver.sh` followed by `sudo reboot`. The script runs the same steps shown below.

To install by hand on Ubuntu 26.04 LTS, run these one at a time.

```bash
sudo apt install -y build-essential git dkms
```

```bash
sudo apt install -y linux-source-$(uname -r | cut -d- -f1)
```

```bash
sudo git clone https://github.com/davidjo/snd_hda_macbookpro.git /opt/snd_hda_macbookpro
```

```bash
sudo git -C /opt/snd_hda_macbookpro checkout 1931615
```

```bash
cd /opt/snd_hda_macbookpro && sudo ./install.cirrus.driver.sh -i
```

The first step after the password can take several minutes, because it searches the whole compressed kernel source archive. A good install ends with:

```
contents of /lib/modules/<kernel>/updates/dkms
-rw-r--r-- 1 root root ... snd-hda-codec-cs8409.ko.zst
```

Then reboot:

```bash
sudo reboot
```

## 4. Verify

```bash
modinfo -n snd_hda_codec_cs8409
```

This should show a path under `/lib/modules/<kernel>/updates/dkms/`, not `kernel/sound/...`.

```bash
journalctl -k -b | grep -i 'trying APPLE'
```

Expect `Primary patch_cs8409 NOT FOUND trying APPLE`. This message is normal: the driver found no Dell match, so it is using the Apple setup.

```bash
speaker-test -c2 -t sine -f 440 -l1
```

You should hear the tone from the built-in speakers.

The kernel log will also say `module verification failed: signature and/or required key missing - tainting kernel`. This is expected for a self-built module when Secure Boot is off.

## 5. After kernel updates

DKMS rebuilds the driver automatically for each new kernel, but this script needs the matching `linux-source` package. If sound stops after an update:

```bash
sudo apt install -y linux-source-$(uname -r | cut -d- -f1)
```

```bash
cd /opt/snd_hda_macbookpro && sudo ./install.cirrus.driver.sh -i
```

Ubuntu HWE kernels have no `linux-source` package, so this method doesn't work on them.

## 6. Uninstall

This restores the original kernel module:

```bash
cd /opt/snd_hda_macbookpro && sudo ./install.cirrus.driver.sh -r
```

```bash
sudo reboot
```

## Known issues (upstream)

The driver author lists these as still being worked on: audio after suspend/resume, headset microphones, and the internal microphone being blocked when a headset is plugged in.

## Credits and trademarks

This guide and the Linux-on-Mac scripts are original work of Shea's Tech, LLC, released under the GNU AGPL v3.0 or later, and contain no third-party code.

| Product or mark | Belongs to | Used here for |
|---|---|---|
| snd_hda_macbookpro | davidjo and contributors (GPL-2.0) | The Apple CS8409 speaker driver: <https://github.com/davidjo/snd_hda_macbookpro> |
| Apple, Mac, iMac, MacBook Pro | Apple Inc. | The hardware this guide covers |
| Cirrus Logic, CS8409 | Cirrus Logic, Inc. | The audio chip in these Macs |
| Ubuntu | Canonical Ltd. | The distribution this guide was tested on |
