- Jul 22, 2018
- Supermicro X11SPA-T
- Intel Xeon W-3275 28 Core
- 2xAMD RX 580 8GB
- OS X/macOS
- Mac mini
- MacBook Pro
- Mobile Phone
A Beginner's Guide: How to Patch AppleHDA for LaptopsOverview
Audio is an essential component of any system and it needs to be enabled. There are several ways to enable audio on the hardware. But those are not recommended when using a laptop. The following is a guide for patching AppleHDA for laptops.
On some audio codecs, it can give a kernel panic or crashes. There are several advantages when using AppleHDA. Before using this guide, we recommend you to perform a clean installation of macOS.
Following are the requirements for this guide.
|macOS/OS X Versions||10.14.x, 10.13.x, 10.12.x, 10.11.x|
|Supported Vendors||Realtek, Conexant, IDT, Cirrus Logic, VIA VT|
|AppleHDA||Vanilla/Original AppleHDA in /S/L/E|
Patching AppleHDA for any codec is a complex process and is time consuming. Mirone has developed an Application for patching AppleHDA. The Application supports Desktop and Laptop segments including a number of codecs. But this guide is about patching AppleHDA on laptops.
Before you start
Now, you have enough information about AppleHDA. To patch AppleHDA, follow the steps outlined below.
STEP 1: Getting Codec Information
The very first step is to get the codec information. Getting codec information is necessary as without knowing the audio codec, it will create chaos while following the guide as each codec is unique and needs different edits. To get the codec information, follow the steps below.
- The easiest method to obtain the codec information is to visit your motherboard manufacturer site and look for the Audio information under the specification section.
- Use DPCIManager and look for the codec information under status tab.
- Use a Linux or Ubuntu and in terminal, type :
cat /proc/asound/card0/codec#1 > ~/Desktop/codec_dump.txt
cat /proc/asound/card0/codec#0 > ~/Desktop/codec_dump.txt
STEP 2: Download AppleHDA Patcher
The next step is to download the AppleHDA patcher and then patch the AppleHDA for specific codec
- AppleHDA Patcher (v1.8)
- Download the latest version for better support.
- Extract the App to your Desktop
- Open the App
- Under the Laptop sections, select your Audio Codec
- Click on patch AppleHDA
- Now, under Find, select the Audio Device
- To find the Audio Device, use DPCIManager
- If you find no audio device, select Skip
- Click on patch
- And the AppleHDA Patcher will patch a AppleHDA for the selected Codec
There you'll find three respective folders
The Clover contains:
1. After patching the AppleHDA, the next step is to rename the audio device and set the device id to enable audio.
2. Open your config.plist file
3. Navigate to the Acpi tab and add the following patch in DSDT, patches section of your config.plist.
Comment: Rename HDAS to HDEF Find* [HEX]: 48444153 Replace [HEX]: 48444546
Use Layout ID=3
STEP 4: Installing the Kext
- Copy the AppleHDA.kext to your Desktop.
- Install it using Terminal or any kext installer such as Kext Utility.
sudo cp -R /Users/yourusername/Desktop/AppleHDA.kext /System/Library/Extensions
- After installing the AppleHDA.kext, build the caches using
sudo kextcache -i /
- Restart your laptop
STEP 5: Setting Audio Output/Input
After restarting your system, you'll need to setup audio output and input through your rear audio jack located at back panel and headphones jack located at the front panel. You will need to set your output device to Internal Speakers for sound to work.
- Open System Preferences
- Select Sound
- Under Sound Effects tab, select
- Play feedback when volume is changed
- Select Show volume in menu bar
- Click on Output
- Select Internal Speakers
- When using Headphones, the Output is automatically switched to Headphones.
- Audio Codec
- macOS version
- Copy of IOReg
- Installed AppleHDA.kext or aDummyHDA.kext
- System Information/Hardware/Audio (All the available Devices)
- System Preferences/Sound/Output
- System Preferences/Sound/Input
- Compress EFI/Clover, exclude the themes folder. Do not include complete EFI folder.