Skip to content

Fix MacBook Pro 2015-2017: WiFi signal (-90 dBm) and audio (CS8409) - #11623

Closed
andyholst wants to merge 1 commit into
omacom:quattrofrom
andyholst:hardware-macbook-audio-fresh
Closed

andyholst wants to merge 1 commit into
omacom:quattrofrom
andyholst:hardware-macbook-audio-fresh

Conversation

@andyholst

Copy link
Copy Markdown

Problem

Two issues affect MacBook Pro 2015-2017 on Omarchy:

  1. WiFi signal extremely weak (-90 dBm): BCM43602 with brcmfmac driver loads generic NVRAM config. Signal unusable past 1 meter. 5GHz not working.

  2. No audio: Cirrus Logic CS8409 codec with in-tree snd_hda_codec_cs8409 driver. Speakers don't work, headphone jack switching broken.

Root Causes

WiFi: The brcmfmac driver needs board-specific NVRAM config with proper power amplifier settings and antenna gain parameters for the MacBook's hinge-antenna design. Generic config lacks these.

Audio: The in-tree snd_hda_codec_cs8409 driver doesn't configure the CS8409's speaker pins correctly. The community davidjo/snd_hda_macbookpro driver does.

What Didn't Fix It

WiFi (all fix connecting, NOT signal):

  1. options brcmfmac feature_disable=0x82000
  2. options cfg80211 ieee80211_regdom=US
  3. roamoff=1
  4. NVRAM config from Andy Holst (Bugzilla #193121)

Fixes

WiFi: Install cristianmiranda's improved NVRAM config with proper boardflags, PA settings, and antenna gain. Bundled in repo (no download needed).

Audio: Install davidjo/snd_hda_macbookpro via DKMS (auto-rebuilds on kernel updates).

Results

WiFi Signal: -90 dBm to -58 dBm (32 dBm improvement)
5GHz: Unusable to 360 MBit/s
Audio: No speakers to working speakers + headphones + mic

Changes

File What it does
install/hardware/apple/brcmfmac43602-pcie.txt NVRAM config bundled in repo
install/hardware/apple/fix-brcmfmac-nvram.sh Detects BCM43602, installs config
install/hardware/apple/fix-snd-hda-macbookpro.sh Detects CS8409, installs via DKMS
install/hardware/all.sh Runs fixes during hardware setup
migrations/1786391101.sh WiFi fix for existing installs
migrations/1786391102.sh Audio fix for existing installs
test/shell.d/brcmfmac-nvram-test.sh 18 tests, all passing
test/shell.d/snd-hda-macbookpro-test.sh 9 tests, all passing

Testing

$ bash test/shell.d/brcmfmac-nvram-test.sh
ok - the NVRAM fix script exists
ok - script detects BCM43602 by PCI ID
ok - script installs the correct NVRAM file
ok - script handles MAC address substitution
ok - script rebuilds initramfs
ok - the NVRAM fix runs during hardware setup
ok - the NVRAM config source file exists
ok - NVRAM config contains MAC address placeholder
ok - NVRAM config contains boardflags
ok - NVRAM config contains 2GHz PA parameters
ok - NVRAM config contains 5GHz PA parameters
ok - NVRAM config was installed
ok - MAC address was substituted into NVRAM config
ok - boardflags parameter present
ok - 2GHz PA parameters present
ok - 5GHz PA parameters present
ok - boardflags2 parameter present
ok - boardflags3 parameter present
all tests passed

$ bash test/shell.d/snd-hda-macbookpro-test.sh
ok - the audio fix script exists
ok - script detects Cirrus Logic CS8409
ok - script references snd_hda_macbookpro driver
ok - script uses DKMS for auto-rebuild on kernel updates
ok - script uses omarchy-pkg-add for dependencies
ok - the audio fix runs during hardware setup
ok - script uses variable for driver directory
ok - script checks if already installed
ok - script rebuilds initramfs
all tests passed

Fixes #11613, #11619

WiFi Fix (BCM43602):
- Bundle cristianmiranda NVRAM config in repo (no download needed)
- Install with MAC address substitution
- Signal: -90 dBm to -58 dBm (32 dBm improvement)
- 5GHz now works at 360 MBit/s

Audio Fix (Cirrus Logic CS8409):
- Install davidjo/snd_hda_macbookpro via DKMS
- DKMS auto-rebuilds on kernel updates
- Enables speakers, headphone jack, microphone

Both fixes:
- Detect hardware via lspci
- Skip gracefully on non-Mac hardware
- Add migration for existing installs
- Add tests (18 WiFi + 9 audio)

Fixes omacom#11613, omacom#11619
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.

BCM43602 WiFi signal extremely weak (-90 dBm) on MacBook Pro 2015-2017

1 participant