MacOS Catalina - Sleep and shutdown not working

Hey everyone!

I'm so close to having a perfectly successful hackintosh.. Only the shutdown and sleep are not working: when shutting down, the system immediately turns back on. When going to sleep, the system sleeps for 2-3 seconds then wakes up.

I've mapped the USB ports correctly using a custom SSDT-UIAC.aml patch + USBInjectAll.kext, following RehabMan's guide.

I'm very much out of options. Can someone point me in the right direction?

-----------

Hardware Specification

  • Processor: Intel I5 6600
  • Motherboard: Gigabyte Z170 D3H
  • GPU: Gigabyte AMD Radeon 5700 XT Windforce 3X
  • RAM: Corsair Vengeance 2 x 16GB

Boot flags: agdpmod=pikera -lilubetaall dart=0 debug=0x100 keepsysms=1

SMBIOS: iMac 17,1

Kexts:

  • AppleALC.kext
  • BrcmPatchRAM3.kext
  • IntemMausi.kext
  • Lilu.kext
  • SMCProcessor.kext
  • SMCSuperIO.kext
  • USBInjectAll.kext
  • VirtualSMC.kext
  • WhateverGreen.kext

----------

Update:

The real culprit was the ErP BIOS Setting. It needs to be enabled in order to have power management working.

Also, I corrected the USB Mapping by using the USBMap tool to generate the correct SSDT-UIAC.patches and SSDT-USBX.aml patches.