1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00
x1c6-hackintosh/patches/ALCPlugFix
Tyler Nguyen 119c763300
Added modified ALCPlugFix for x1c6
Enabled automatic output switching headphone/speaker upon plug/unplug.
Fix rare audio cracking condition after waking from sleep.
See changelog 4/1/2020
2020-04-01 13:27:53 -05:00
..
alc_fix Added modified ALCPlugFix for x1c6 2020-04-01 13:27:53 -05:00
ALCPlugFix Added modified ALCPlugFix for x1c6 2020-04-01 13:27:53 -05:00
ALCPlugFix.xcodeproj Added modified ALCPlugFix for x1c6 2020-04-01 13:27:53 -05:00
Info.plist Added modified ALCPlugFix for x1c6 2020-04-01 13:27:53 -05:00
README.md Added modified ALCPlugFix for x1c6 2020-04-01 13:27:53 -05:00

Use Hackintool to determine your audio layout's pin configuration. For x1c6 owners with ALC285, it will most likely be the same and you can simply install my prebuilt files.

alc285_pin

Build

By default its code command is for Lenovo ThinkPad X1 Carbon 6th Gen with ALC285 Audio Codec with Combo Jack, you may need to change that in fixAudio function: ALCPlugFix_fixAudio

After fixAudio has been adjusted according to your pin layout, run:

xcodebuild -target ALCPlugFix

Now copy the built ALCPlugFix to alc_fix/.

Install

Running sh ./install.sh will install to /user/local/bin.

By default it search hda-verb in current work directory, if not found it will search in $PATH (May not work when it is running from LaunchDaemon because it is using as root).

Compatible Laptops

  • Lenovo ThinkPad T440P
  • Lenovo ThinkPad T440
  • Lenovo ThinkPad T440S
  • Lenovo ThinkPad L440
  • Lenovo ThinkPad X240
  • Lenovo ThinkPad X1 Carbon 6th Gen

Debug

Add following to launchDaemon file to log to /tmp/ALCPlugFix.log, (or use log stream)

	<key>StandardOutPath</key>
	<string>/tmp/ALCPlugFix.log</string>
	<key>StandardErrorPath</key>
	<string>/tmp/ALCPlugFix.log</string>

ALCPlugFix

This is an improved version of ALCPlugFix from goodwin.

The original and this fork tries to fix headphone audio power state issue in non Apple sound card in macOS.

The improvement include:

  • Refactor
  • Add listener when sleep/wake
  • Fix on sleep wake
  • Let you choose hda-verb so it don't need be in $PATH
  • Enable launching as LauchDaemon
  • Bug fix
  • Install.sh script with update support
  • Uninstall.sh to uninstall ALCPlugFix
  • macOS Catalina support

Credits

  • Goodwin for creating the Software
  • Menchen for the refactoring and new features
  • Joshuaseltzer for creating new install.sh and uninstall.sh
  • Sniki for maintaining the software