[Fix] Audio Distortion when using Headphones on Laptops

EliteMacx86

Administrator
Staff member
Joined
Jul 22, 2018
Motherboard
GIGABYTE Z370 AROUS GAMING 3
CPU
Intel Core i9 9900K
Graphics
2xAMD RX 580 8GB
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mac
MacBook Pro
Mobile Phone
Android, iOS
After enabling the Audio, you might encounter audio distortion/crackling sound when using headphones on laptops. To fix this issue, follow the steps below.

Some Audio Codecs which requires this fix
  • Realtek ALC233/ALC3236
  • Realtek ALC255
  • Realtek ALC256/ALC3246
  • Realtek ALC292
  • Realtek ALC294
  • Realtek ALC298
  • Realtek ALC299

Using VoodooHDA, this can be fixed for most of the times. But as per the laptop FAQ, VoodooHDA is not recommended.
  1. Download latest version of CodecCommander
  2. Extract the kext from the release folder.
  3. Mount your EFI Partition.
  4. Navigate to EFI/CLOVER/kexts/Other and place the kext here.
Alternatively, you can install the kext to S/L/E

Copy hda-verb to bin
Open Terminal
Type:
Code:
sudo cp -R /Users/yourusername/Desktop/hda-verb /usr/bin
When promoted, enter your password

Download the Jack fix attached below. This is a script which updates the pin widget control when using Headphones
Code:
hda-verb 0x19 SET_PIN_WIDGET_CONTROL 0x25
hda-verb 0x21 SET_UNSOLICITED_ENABLE 0x83
Copy Jack fix to bin
Open Terminal
Type:
Code:
sudo cp -R /Users/yourusername/Desktop/Jack fix /usr/bin
When promoted, enter your password

Monitor the Audio, and execute the script. The distortion should be fixed

Note: This will also fix switching issues for Headphones and Microphone Outputs. The script works for AppleHDA, AppleALC, CloverHDA, ADummyHDA and VoodooHDA.

Q. Is there any way to execute/run this script automatically?
A. Yes. In System Preferences, go to Users & Groups, select Login items, add Jack Fix to Login Items.

Screen Shot 2019-03-29 at 6.55.51 AM.png


Problem Reporting

Details
  1. Audio Codec
  2. macOS version/CPU/GPU
  3. Copy of IOReg
  4. Method used for enabling Audio
  5. Installed CodecCommander.kext
  6. Output of (in Terminal):
Code:
sudo kextcache -i/
Screen shots:
  • DPCIManager/Status
  • System Information/Hardware/Audio/Intel High Definition Audio (All available devices)
  • System Preferences/Sound/Output
  • System Preferences/Sound/Input
Clover Files :
  • Compress EFI/Clover, exclude the themes folder Do not include complete EFI folder.
Put all files in a folder with your name, compress files as Zip and attach files using site attachments only. Do not use any external links.

Credits:
EliteMacx86
RehabMan
Mahmoud
 

Attachments

Last edited:

Striker

New member
Joined
Oct 20, 2018
Motherboard
Gigabyte B360 Gaming 3 WiFi
CPU
Intel Core i5 9400F
Graphics
Sapphire Nitro plus Radeon RX580
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mobile Phone
iOS
It really works!!!
 
  • Like
Reactions: Mirone

decros

New member
Joined
Dec 12, 2018
Motherboard
Acer Swift 3 sf315-52-81hd
CPU
intel i7 8550u
Graphics
Intel UHD 620
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mac
MacBook Pro
Mobile Phone
Android
It works like a charm. Just what I needed. Today I got audio in Mojave Thanks to this wonderful site, Mirone's AppleHDA patcher, and Rehadman CodeC Comander, and credits to the Jack fix developer, I don't know who is.
 
Last edited by a moderator:
  • Like
Reactions: EliteMacx86

EliteMacx86

Administrator
Staff member
Joined
Jul 22, 2018
Motherboard
GIGABYTE Z370 AROUS GAMING 3
CPU
Intel Core i9 9900K
Graphics
2xAMD RX 580 8GB
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mac
MacBook Pro
Mobile Phone
Android, iOS
It works like a charm. Just what I needed. Today I got audio in Mojave Thanks to this wonderful site, Mirone's AppleHDA patcher, and Rehadman Code Comander, and credits to the Jack fix developer, I don't know who is.
Thanks for the appreciation. A long time ago, i had this issue so began to test with friend's laptops which had same issue. I tried to search and when debugging, i found the what was causing it and finally got the idea from the CodecCommander. Wrote a script and it works like a charm. EliteMacx86, Admin of EliteMacx86 forums is the developer of this fix. As it was a Jack related issue so i choose the name as "Jack Fix" and yes, it does the job. Happy to share.
 
  • Like
Reactions: decros

Mirone

Member
Joined
Nov 19, 2018
Motherboard
GA-Z270M-D3H
CPU
Intel Core i7 - 7700K
Graphics
AMD - RX 560
OS X/macOS
10.15 (Beta)
Bootloader
Clover (UEFI)
Mobile Phone
iOS
  • Like
Reactions: EliteMacx86

EliteMacx86

Administrator
Staff member
Joined
Jul 22, 2018
Motherboard
GIGABYTE Z370 AROUS GAMING 3
CPU
Intel Core i9 9900K
Graphics
2xAMD RX 580 8GB
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mac
MacBook Pro
Mobile Phone
Android, iOS
I made some minor changes and I posted HERE I hope you do not mind.
thanks bro!
It has been so long!
That's great. As long as the original guide is linked and credit is given, i'm ok with it.
:)
 
  • Like
Reactions: Mirone

Mirone

Member
Joined
Nov 19, 2018
Motherboard
GA-Z270M-D3H
CPU
Intel Core i7 - 7700K
Graphics
AMD - RX 560
OS X/macOS
10.15 (Beta)
Bootloader
Clover (UEFI)
Mobile Phone
iOS
@EliteMacx86.
you're right, credits and links are fixed there.
 
  • Like
Reactions: EliteMacx86

Amdo

New member
Joined
Dec 17, 2018
Motherboard
Alienware R5 17
CPU
i7 8750h
Graphics
1070 Mobile
OS X/macOS
10.14.4
Bootloader
Clover (UEFI)
Mac
iMac
Mobile Phone
Android
Hey just wanted to say, this guide worked for me on my Alienware R5 17 - after a day of messing around with AppleALC and what not, I tried VoodooHDA + your guide and it works 100%!!

Thank you! :)
 
  • Like
Reactions: EliteMacx86

EliteMacx86

Administrator
Staff member
Joined
Jul 22, 2018
Motherboard
GIGABYTE Z370 AROUS GAMING 3
CPU
Intel Core i9 9900K
Graphics
2xAMD RX 580 8GB
OS X/macOS
10.14.6
Bootloader
Clover (UEFI)
Mac
MacBook Pro
Mobile Phone
Android, iOS
Hey just wanted to say, this guide worked for me on my Alienware R5 17 - after a day of messing around with AppleALC and what not, I tried VoodooHDA + your guide and it works 100%!!
Great!
Thank you! :)
You're welcome
My script works with AppleHDA, AppleALC, CloverHDA and VoodooHDA. BTW, what's your Audio Codec?