Stop macOS from freezing during sleep/wake on a Catalina Hackintosh

This guide should resolve Catalina from freezing when a hackintosh is waked from sleep when running off the Intel iGPU (integrated graphics). The mouse will freeze a couple seconds after being waked up and  there may be a sudden restart with a kernel panic message saying there was a problem with Intel HDMI audio when you boot back in.

I noticed this kernel panic only happens when these conditions exist:

  • Using AppleALC.kext with Clover (AppleALC is no longer being tested on Clover as the developer moved his support to OpenCore causing this issue)
  • Only happens when Intel graphics is enabled.
  • When the display monitor doesn’t have an HDMI audio output (This kernel panic happened to me on a monitor that didn’t have speakers, but when I plug in my other monitor that did have HDMI audio with built in speakers the kernel panic goes away)

To get around this issue we disable HDMI audio with a HDEF patch. If you are using the EFI files in the main Catalina guide this patch has already been included.

  1. Download gfxutil
  2. Open downloaded folder and Right-click open  gfxutil
  3. A list will populate find PCI0.HDEF and copy its PciRoot device path

    HDEF device path Boxed

    In my case the device path I need to copy is PciRoot(0x0)/Pci(0x1f,0x3) as its on the same line as PCI0.HDEF =

  4. Open config.plist located in your EFI folder with Clover Configurator
  5. Select Devices column in Clover Configurator
  6. Select the drop down menu and select No or type it in the box is in the top right corner of the Devices page
  7. Select the Properties tab near the bottom of the Devices page
  8. Click the “+” sign under the Devices* table
  9. Paste the device path you copied from gfxutil
  10. Select the Device path thats been added to the table and add:
  11. Click the “+” sign under the Properties table to the right
    Properties Key* Properties Value Value Type
    No-hda-gfx AAAAAAAA AA DATA
    alc-layout-id 1 NUMBER

    No HDA fix for Catalina Kernel Panic after sleep Boxed

  12. Restart to apply changes and see if sleep works after.

I’m my testing this issue only happens when using AppleALC on a monitor without speakers over integrated graphics. Other ways to circumvent this issue would be:

  • Switching your EFI to OpenCore or by using a different audio solution than AppleALC.kext.
  • Switching to a monitor with speakers built in so the panic doesn’t occur.

Leave a Reply

11 Comments on "Stop macOS from freezing during sleep/wake on a Catalina Hackintosh"

Sort by:   newest | oldest
Ben
Guest
Ben

Why for the first time I’m having issues with the waking up from the sleep with AMD graphics card?

Alex
Guest
Alex

Thanks for such simple guide. Its works great for me. Now, my last problem is solved.
Asus H310T R2.0
Core i5-9500
Broadcom BCM94360CS2

Daniel
Guest
Daniel

I’m having this problem with OpenCore 0.5.5 (using Lilu 1.4.1 and AppleALC 1.4.6, on a MSI B150M MORTAR motherboard, with intel i7-6700)

Can you explain how to apply this HDEF fix with OpenCore, please? I’d like to try it, I don’t have another monitor 🙁

Guest
Vardaan

Could really use some help here.
i7 8700k, iGPU, Gigabyte Aorus Gaming 5.

Everything was fine till I updated to 10.15.4
First the update wouldn’t go through, I updated clover, then graphics started glitching out partly.
Sleep/wake panic started after the update.

Now I’m down to
Clover 5112
Apple ALC 1.4.8 (No output devices now)
Lilu 1.4.3
WhateverGreen 1.3.8

This method hasn’t worked for me.
I do have a monitor that has speakers and uses Intel HDMI to transmit audio (It was working perfectly before)

Now my Hackintosh wakes up, takes upto 5 seconds to turn the display on, Graphics are glitching occasionally, and no audio output devices.

What do you guys suggest?

Thanks in advance.

Guest
Vardaan Chawla

I lost audio after following these steps. Graphics are glitching as well.
And display goes to a much smaller resolution after wake.

i7 8700k
UHD 630
Aorus Gaming 5
MacOS 10.15.4
Clover 5114

Paul
Guest
Paul

Same problem here. Did you find any solution?