Jump to content
vit9696

AppleALC — dynamic AppleHDA patching

5,115 posts in this topic

Recommended Posts

Just now, najeeb_anwer said:

 

That works! Thanks. I have some questions:

 

1) What changes were made in the CLOVER folder. I know that you updated the DSDT.aml and changed the config.plist to remove Devices/Audio/Inject. Anything else?

 

2) If I understand correctly, you are injecting alc-layout-id in HDEF using DSDT.aml. Any reason why this was not working with the CLOVER injection or by using alcid=19 as a boot argument?

 

3) Is there a way to get the HDMI audio working? The HDMI audio does not show up as an output device.

 

Thanks for your help.


1. If you use _DSM method in DSDT then config.plist won't overide it except patch _DSM to XDSM first to override _DSM method of DSDT.

But i made simple solutions,, i set _DSM of HDEF in your DSDT. No need to inject properties of HDEF in config.plist again (config.plist won't override it)

2. I prefer DSDT / SSDT ways then config.plist / boot argument

3. HDMI eGPU need to set HDAU device in PEG0 (Depend your Graphics Cards)

Share this post


Link to post
Share on other sites
Advertisement
9 minutes ago, Andres ZeroCross said:


Don't think patch AppleHDA is easy, i need to try for each NODE ID of the OUPUT.
Below is your diagram of Codec Audio,, I try 0x17 and 0x18 before.
image.thumb.png.9b216e4cf53a67f1b13c3b7a54924eba.png

Now, i try to use Node 0x1B as your Green Jack rear as Output Speaker

Try to use this...

AppleALC.kext.zip


Still the Same.

I know, I am a programmer and I don't even know how can you do that :D
Really appreciate what you do, I hope that one day I can do it myself.

ALC3220 LayoutID 21 test 3.ioreg.zip

Share this post


Link to post
Share on other sites
4 minutes ago, yehia2amer said:


Still the Same.

I know, I am a programmer and I don't even know how can you do that :D
Really appreciate what you do, I hope that one day I can do it myself.

ALC3220 LayoutID 21 test 3.ioreg.zip


Take a screenshot at ouput audio in SYstem preference when you plugin jack to Green port and Front jack audio. Don't put jack in same times.

Edited by Andres ZeroCross

Share this post


Link to post
Share on other sites
4 minutes ago, Andres ZeroCross said:


Take a screenshot at ouput node in SYstem preference when you plugin jack to Green port and Front jack audio. Don't put jack in same times.


Ooops my fault, they both work now.
 

Working: 

Headphones (Green Front)

Line-Out (Green Rear)

Microphone/Line In (Blue Rear)

 

Not Working:

Microphone (Pink Front)

1443446435_ScreenShot2018-11-30at6_08_10AM.thumb.png.8d4c7ffbc5a0ae90cdcb085a842efc58.png

Share this post


Link to post
Share on other sites
9 minutes ago, yehia2amer said:


Ooops my fault, they both work now.
 

Working: 

Headphones (Green Front)

Line-Out (Green Rear)

Microphone/Line In (Blue Rear)

 

Not Working:

Microphone (Pink Front)

1443446435_ScreenShot2018-11-30at6_08_10AM.thumb.png.8d4c7ffbc5a0ae90cdcb085a842efc58.png


This is friday,, i need to shalat in mosque. Will be back after 2 hours.

Try this kext first,, and post the result for front mic.

AppleALC.kext.zip

Share this post


Link to post
Share on other sites
19 minutes ago, Andres ZeroCross said:


1. If you use _DSM method in DSDT then config.plist won't overide it except patch _DSM to XDSM first to override _DSM method of DSDT.

But i made simple solutions,, i set _DSM of HDEF in your DSDT. No need to inject properties of HDEF in config.plist again (config.plist won't override it)

2. I prefer DSDT / SSDT ways then config.plist / boot argument

3. HDMI eGPU need to set HDAU device in PEG0 (Depend your Graphics Cards)

 

Okay, thanks.

My graphics cards are:

NVidia GeForce 9200M (this one is disabled in DSDT)

NVidia GeForce 9400M G 256MB (this is the one I use)

 

Can you please let me know how to set HDAU device in PEG0 for this graphics card? Maybe just a link to a website that shows how to do this?

Share this post


Link to post
Share on other sites
2 minutes ago, najeeb_anwer said:

 

Okay, thanks.

My graphics cards are:

NVidia GeForce 9200M (this one is disabled in DSDT)

NVidia GeForce 9400M G 256MB (this is the one I use)

 

Can you please let me know how to set HDAU device in PEG0 for this graphics card? Maybe just a link to a website that shows how to do this?


just upload your currently IOREG Output and DSDT.aml. I will check it 2 hours later

Share this post


Link to post
Share on other sites
4 minutes ago, Andres ZeroCross said:


This is friday,, i need to shalat in mosque. Will be back after 2 hours.

Try this kext first,, and post the result for front mic.

AppleALC.kext.zip

 

Not working.


Yeah me too, I need to go get some sleep before Salah, Can we complete tomorrow ?,  it is 6:30 AM here in Egypt and i didn't sleep yet.


Thanks a lot for your help and جمعة مباركة

ALC3220 LayoutID 21 test 4.ioreg.zip

Share this post


Link to post
Share on other sites
26 minutes ago, yehia2amer said:

 

Not working.


Yeah me too, I need to go get some sleep before Salah, Can we complete tomorrow ?,  it is 6:30 AM here in Egypt and i didn't sleep yet.


Thanks a lot for your help and جمعة مباركة

ALC3220 LayoutID 21 test 4.ioreg.zip


Use this kext and check
1. When Rear Jack + Front Jack Audio is plug in same time, then audio must be working from Headhone, and if jack front plug off then audio will be from Rear speaker (Swtichable). Check if swtichable work or not
2. Check Input,, Internal Micrphone is Front Mic Jack and Line In is Blue Port / Mic In Rear.

Post the result

AppleALC.kext.zip

Share this post


Link to post
Share on other sites
1 hour ago, najeeb_anwer said:

 

Attached. Thanks again.

DSDT.aml.zip

Najeeb’s MacBook Pro.zip

 

New problem. I rebooted and now the audio does not work anymore.

The IOREG still shows that HDEF has the properties that you injected.

Lilu.kext and AppleALC.kext are loaded.

But AppleHDA.kext loads (shows up in kextstat) and then about a minute later it no longer shows up.

Share this post


Link to post
Share on other sites
Just now, najeeb_anwer said:

 

New problem. I rebooted and now the audio does not work anymore.

The IOREG still shows that HDEF has the properties that you injected.

Lilu.kext and AppleALC.kext are loaded.

But AppleHDA.kext loads (shows up in kextstat) and then about a minute later it no longer shows up.

 

Open terminal,, and type

"sudo kextcache -i /"

Paste the output of terminal here

 

Share this post


Link to post
Share on other sites
5 minutes ago, Andres ZeroCross said:

 

Open terminal,, and type

"sudo kextcache -i /"

Paste the output of terminal here

 

 

Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d5489c10 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d5332540 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d533aff0 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d3cd7650 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f88d3c27bc0 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
KernelCache ID: 4F1F99B310157790073721F43F0A5ED8
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f9ec8c55550 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9ec8eebd50 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca2e7860 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca352e70 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9eca4c7ec0 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }

 

Share this post


Link to post
Share on other sites
Just now, najeeb_anwer said:

 

Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d5489c10 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d5332540 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f88d533aff0 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f88d3cd7650 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f88d3c27bc0 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
KernelCache ID: 4F1F99B310157790073721F43F0A5ED8
Kext with invalid signatured (-67013) allowed: <OSKext 0x7f9ec8c55550 [0x7fff8f95db30]> { URL = "AppleDataSetManagement.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.AppleDataSetManagement" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9ec8eebd50 [0x7fff8f95db30]> { URL = "AppleKextExcludeList.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.driver.KextExcludeList" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca2e7860 [0x7fff8f95db30]> { URL = "IOBluetoothFamily.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.iokit.IOBluetoothFamily" }
Kext with invalid signatured (-67030) allowed: <OSKext 0x7f9eca352e70 [0x7fff8f95db30]> { URL = "BroadcomBluetoothHostControllerUSBTransport.kext/ -- file:///System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/", ID = "com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" }
Kext with invalid signatured (-67054) allowed: <OSKext 0x7f9eca4c7ec0 [0x7fff8f95db30]> { URL = "msdosfs.kext/ -- file:///System/Library/Extensions/", ID = "com.apple.filesystems.msdosfs" }

 


Take a screenshot contain of your EFI/CLOVEr/Kexts/10.14 and EFI/CLOVEr/Kexts/10.14. SOrry for bad english

Share this post


Link to post
Share on other sites
3 minutes ago, Andres ZeroCross said:


Take a screenshot contain of your EFI/CLOVEr/Kexts/10.14 and EFI/CLOVEr/Kexts/10.14. SOrry for bad english

 

No items in 10.13, 10.14. All kexts in Other.

 

image.png.fbcc9cb65f7907b18d699e0301413727.png

 

image.png.d771de3e8e6197f04e477714e8746f8f.png

 

 

Share this post


Link to post
Share on other sites
3 minutes ago, najeeb_anwer said:

 

No items in 10.13, 10.14. All kexts in Other.

 

image.png.fbcc9cb65f7907b18d699e0301413727.png

 

image.png.d771de3e8e6197f04e477714e8746f8f.png

 

 

There is nothing wrong except modified kext for msdosfs.kext, AppleKextExcludeList.kext and AppleDataSetManagement.kext. Why did you modifiy this kexts?? And You need to upload your current config.plist. Maybe another "clue" can be gathered from it

Edited by Andres ZeroCross

Share this post


Link to post
Share on other sites
2 minutes ago, Andres ZeroCross said:

There is nothing wrong except modified kext for msdosfs.kext, AppleKextExcludeList.kext and AppleDataSetManagement.kext. Why did you modifiy this kexts?? And You need to upload your current config.plist. Maybe another "clue" can be gathered from it

 

Actually, I did not modify any kext except IOBluetoothFamily.kext which I needed for my Bluetooth to work. I don't know why these other kexts show invalid signature.

 

config.plist

Share this post


Link to post
Share on other sites
1 minute ago, najeeb_anwer said:

 

Actually, I did not modify any kext except IOBluetoothFamily.kext which I needed for my Bluetooth to work. I don't know why these other kexts show invalid signature.

 

config.plist

Kext will be invalid signature if you modified it. We can see it from the log.

Use this config.plist,, and reboot

config.plist

Share this post


Link to post
Share on other sites
17 minutes ago, Andres ZeroCross said:

Kext will be invalid signature if you modified it. We can see it from the log.

Use this config.plist,, and reboot

config.plist

 

Didn't work.

I'm sorry but it's almost 1am here so I am going to sleep; I will contact you again tomorrow my time.

 

In the meantime, I will try to re-install the modified CLOVER folder you sent me with the updated DSDT.aml and see if that helps.

Share this post


Link to post
Share on other sites
8 hours ago, Andres ZeroCross said:


Use this kext and check
1. When Rear Jack + Front Jack Audio is plug in same time, then audio must be working from Headhone, and if jack front plug off then audio will be from Rear speaker (Swtichable). Check if swtichable work or not
2. Check Input,, Internal Micrphone is Front Mic Jack and Line In is Blue Port / Mic In Rear.

Post the result

AppleALC.kext.zip

 

1) Now Headphone is not working at all, I even tried to remove the Rear Jack and only connect Headphone. but it is still not working
2) Front Mic and Rear Mic are also not working
 

ALC3220 LayoutID 21 test 5.ioreg.zip

Share this post


Link to post
Share on other sites
6 minutes ago, yehia2amer said:

 

1) Now Headphone is not working at all, I even tried to remove the Rear Jack and only connect Headphone. but it is still not working
2) Front Mic and Rear Mic are also not working
 

ALC3220 LayoutID 21 test 5.ioreg.zip

Now try this

AppleALC.kext.zip

Share this post


Link to post
Share on other sites
13 minutes ago, Andres ZeroCross said:

Now try this

AppleALC.kext.zip


Now in I do have 2 options for input:
Internal Microphone: this Represent Rear Jack Mic and it is working

Line In: Not working

Regarding the headphone, it is not working.
Line Out (Rear Jack) is working normally

ALC3220 LayoutID 21 test 6.ioreg.zip

Edited by yehia2amer

Share this post


Link to post
Share on other sites
2 minutes ago, yehia2amer said:


Now in I do have 2 options for input:
Internal Microphone: this Represent Rear Jack Mic and it is working

Line In: Not working

Regarding the headphone, it is not working.
Line Out (Rear Jack) is working normally

ALC3220 LayoutID 21 test 6.ioreg.zip

It's still same config with previous file before shalat. :hysterical::hysterical:

How can be different result.. Check it again

Share this post


Link to post
Share on other sites
7 minutes ago, Andres ZeroCross said:

It's still same config with previous file before shalat. :hysterical::hysterical:

How can be different result.. Check it again

 

yeah my fault again, I must remove the Line Out Jack for the Headphone to work. This makes me confused each time :D
 

Share this post


Link to post
Share on other sites
12 hours ago, Andres ZeroCross said:

Kext will be invalid signature if you modified it. We can see it from the log.

Use this config.plist,, and reboot

config.plist

 

I am concerned about the kexts that you say I have modified. I don't see how that is possible. For example, here is the AppleDataSetManagement.kext. All of the file modification dates are from 2015. I don't have time travel technology...yet :P

 

image.png.f405c29b86b2109d697ef0728e94a41a.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

×