Contribute
Register

[Help] AppleALC Kernel Panic after Catalina update

Joined
Nov 6, 2017
Messages
43
Motherboard
Asus PRIME Z370-A
CPU
i7-8700K
Graphics
UHD 630
Mobile Phone
iOS
My machine goes to sleep, after about 1 min, when invoking wake (by mouse move or keyboard), I don't get a restart. The machine cpu starts up and graphics cards are turned on. The screen however stays blank. I have 2 screens connected (one through HDMI and one through DP). Using only one screen makes no difference.
What you describe sounds quite different from what's being discussed and doesn't seem to be an audio issue (more like a graphics issue). Have a look at the system.log (under the Console app) or generate a boot.log and have a look there for any pointers. Hackintoshing is a tinkerer's hobby, so to speak, and you will have to tinker.

Wait, the 1.4.3 update in the code is about the No-hda-gfx properties that is needed in some case, but does not fix the KP related to the case when hda-gfx exists.
It might work under OpenCore, I haven't tried it yet.

OT: vit9696 although being a skillful developer and fixing the No-hda-gfx as soon as it's discovery, he immediately pointed out that the problem was the configuration in particular and that they not support Clover, instead of helping/trying to collect more info from the post.
I seriously understand that this is not their job but sharing is caring, and education is important. (Not hard feeling, just wanted to share how I've perceived his answer.)
I mostly agree with you and indeed this appears to be an inelegant and brute force workaround. From what I can gather, it modifies Apple kexts in order for them to appear as 3rd party and not have the KP imposed for them. But it's vit9696's prerogative to choose how and where to spend his time/energy and it is what it is. I for one am glad that he is involved in the community and very grateful for what he has offered and continues to offer.

Also, don't forget that this is an open source project so if anyone wants to have a go, then you can have at it.

So I have built it manually with the HDMI/DP audio being disabled always. For this, please find the attached kext. In my case, this has addressed the kernel panic problem.

FYI, I have attached the code changes I have made based on the 1.4.3 code base. Also, I am asking the AppleALC maintainer to use a boot argument so that it'd be easier to use it.
I would encourage you to fork the repository and issue a pull request so the maintainers can have a look at the changes and perhaps consider them.
 
Joined
Aug 19, 2014
Messages
53
Motherboard
Lenovo M920s
CPU
i5-9500
Graphics
Intel UHD 630
Mac
MacBook Pro
Mobile Phone
iOS
Apply kernel patch:
Code:
Find: 63 6F 6D 2E 61 70 70 6C 65 00 5F 5F 6B 65 72 6E 65 6C 5F 5F 00
Repl: 6E 6F 74 2E 61 70 70 6C 65 00 5F 5F 6B 65 72 6E 65 6C 5F 5F 00
see: this issues. Thanks to vit9696
Ive been searching for this fix!! Feels like forever! Finally im able to wake from sleep again! :)
 
Joined
Nov 28, 2012
Messages
57
Motherboard
Dell 5570
CPU
i5-8250U
Graphics
UHD620
Mac
MacBook Air
Mobile Phone
iOS
The kernel patch works but it's a temporary solution. Another bandaid solution is disabling the digital audio in IGPU with "No-hda-gfx" but it's better than the kernel patch.

Put the kext in EFI/C/K/Other, and insert the following code in config.plist / Devices / Properties / PciRoot / (data=0)
Code:
        <key>No-hda-gfx</key>
        <data>AAAAAAAAAAA=</data>
Edit) Yes, this will disable the audio output through HDMI port. If you are using the HDMI audio, you need to use the kernel patch.
 
Last edited:
Joined
May 27, 2010
Messages
2,432
Motherboard
Dell Optiplex 9030 All in One
CPU
i5-4690K
Graphics
HD 4600
Mac
Mac mini
Classic Mac
iMac
Mobile Phone
iOS
Thanks for this thread. Having exactly the same problem on my Catalina Haswell build. The Kernel Patch solution is the one I am using as, having tried the others - which result in a loss of audio functionality over HDMI - it seems the best compromise for the moment.
Hoping that a more elegant solution is in the works.
 
Joined
Jun 3, 2016
Messages
10
Motherboard
ASRock z97e/itx-ac
CPU
i5-4460
Graphics
HD 4600
Mobile Phone
iOS
Joined
Nov 1, 2019
Messages
4
Motherboard
a
CPU
a
Graphics
a
Would you try the kext, attached in the post #56, if you don't need to use the digital audio? Link: https://www.tonymacx86.com/threads/help-applealc-kernel-panic-after-catalina-update.284654/post-2019410

Not sure what fix you are referring to. But, this kext works for me on 10.15.1.
Your kext works. Thanks a lot!

I still wonder that how to "add No-hda-gfx HDEF property disabling IGPU digital audio" according to 1.4.3 official release note. Is it in Clover->Devices->Add Properties?
 
Joined
May 27, 2010
Messages
2,432
Motherboard
Dell Optiplex 9030 All in One
CPU
i5-4690K
Graphics
HD 4600
Mac
Mac mini
Classic Mac
iMac
Mobile Phone
iOS
Just FYI the Kernel patch method is still working in 10.15.1 if you DO need digital audio.
I have also just updated AppleALC, LILU and WhateverGreen to latest versions and can report that the problem is also still there needing to be patched. It'd be great if the developers for AppleALC could address this issue so that patching is no longer needed.
Only problem with the Kernel patching method I can see though on my system is that it introduces a graphical glitch between the first and second stage boot. No evidence of any problem once system is up though.
 
Joined
Nov 28, 2012
Messages
57
Motherboard
Dell 5570
CPU
i5-8250U
Graphics
UHD620
Mac
MacBook Air
Mobile Phone
iOS
I still wonder that how to "add No-hda-gfx HDEF property disabling IGPU digital audio" according to 1.4.3 official release note. Is it in Clover->Devices->Add Properties?
If you don't need HDMI audio output, yes, you can use the official 1.4.3 release + the following setup(only example). You need to change both Pci(0x1b,0x0) and alc-layout-id 1 to something for your motherboard.

Code:
    <key>Devices</key>
    <dict>
        <key>Audio</key>
        <dict>
            <key>Inject</key>
            <string>No</string>
        </dict>
        <key>Properties</key>
        <dict>
            <key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
            <dict>
                <key>alc-layout-id</key>
                <integer>1</integer>
                <key>No-hda-gfx</key>
                <data>AAAAAAAAAAA=</data>
            </dict>
        </dict>
    </dict>
 
Joined
Nov 1, 2019
Messages
4
Motherboard
a
CPU
a
Graphics
a
Just FYI the Kernel patch method is still working in 10.15.1 if you DO need digital audio.
I have also just updated AppleALC, LILU and WhateverGreen to latest versions and can report that the problem is also still there needing to be patched. It'd be great if the developers for AppleALC could address this issue so that patching is no longer needed.
Only problem with the Kernel patching method I can see though on my system is that it introduces a graphical glitch between the first and second stage boot. No evidence of any problem once system is up though.
Thank you for your reply. The kernal patch is indeed still working in 10.15.1. I made a mistake with clover “MatchOS” parameter.
 
Top