- Jul 22, 2018
- Supermicro X11SPA-T
- Intel Xeon W-3275 28 Core
- 2xAMD RX 580 8GB
- OS X/macOS
- 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 a Application for patching AppleHDA. The Application supports Desktop and Laptops segments including number of codecs. But this guide is about patching AppleHDA on laptops.
Before you start
- If you've used any other method such as VoodooHDA, AppleALC, or aDummyHDA, make sure to remove those files to avoid conflicts.
- If you're using any injector, make sure to remove it.
- AppleHDADisabler, HDAEnabler should be removed
Now, you have enough information about AppleHDA. To patch AppleHDA, follow the steps outlined below.
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
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:
- After patching the AppleHDA, the next step is to rename the audio device and set the device id to enable audio.
- Open your config.plist file
- Navigate to 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
- You can also use layout ID=3(0x0D) for Mojave, but we recommend to use 2 for better support as this is a manual AppleHDA Patching.
- The DSDT patches for the laptop has been already covered. Make sure that you use HDEF and System_IRQ patch. For more information on DSDT/SSDT patching, read here: https://www.elitemacx86.com/threads/guide-how-to-patch-laptop-dsdt-and-ssdts.178/
- 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
- Mirone use layout-id 3 for laptop's audio codecs.
- For some Audio codecs, such as Conexant, the patches from the config.plist are mandatory. It's a trial and error thing and not needed for all codecs.
- If you need to use aDummyHDA.kext instead of AppleHDA, you'll need to use the patches from the config.plist.
- For laptops, System IRQ patch is necessary.
- For some Audio Codec, FakePCIID+FakePCIID Intel HDMI kext is required. This applies to Skylake and newer laptops.
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.