Skip to content

An updated version of ALCPlugFix for Huawei Matebook X Pro (2018) with Realtek ALC256 Audio Codec

Notifications You must be signed in to change notification settings

profzei/ALCPlugFix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALCPlugFix - Use for ALC 256

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

Install

By default its code command is for Huawei Matebook X Pro (2018) with Realtek ALC256 Audio Codec with Combo Jack, you may need to change that in fixAudio function.

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

  • Huawei Matebook X Pro (2018)

Build

xcodebuild -target ALCPlugFix

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>

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

About

An updated version of ALCPlugFix for Huawei Matebook X Pro (2018) with Realtek ALC256 Audio Codec

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 81.0%
  • Shell 19.0%