• Become a Premium Member for $25/year with no ads to improve your community experience. Upgrade to Pro Account for faster response and no wait times!

SOLVED Instant wake after sleep with black screen

Status
Not open for further replies.

crypolarbear

New member
Joined
Oct 18, 2022
Messages
19
Motherboard
MSI Z590i Unify
CPU
10700k
Graphics
Rx 6800xt
OS X/macOS
13.x
Bootloader
  1. OpenCore (UEFI)
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
Hi everyone! I am new to the hackintosh community and this is my first post here. Recently, I tried to build a hackintosh with the msi z590i unify mothorboard, and one with the msi z590 ace, which is pretty similar to the z590i unify build. The one with z590 ace works pretty good with some minor issues, but the sleep/wake works fine. Although the efi config of the z590i unify one is basically edited from the z590 ace build, the sleep function seems to be broken for some reasons on it.

Here is the hardware:

Motherboard: MSI Z590i Unify
CPU: 10700k
Graphics: Rx 5300
Wifi & BT: Onboard Ax210
OS X: macOS Monterey 12.6
Bootloader: OpenCore
Mac: iMac20,2

It wakes immediately after going into sleep. And it just goes into a loop of continuously sleep and wake with black screen until I use the keyboard or mouse to wake it. I've tried to disconnect all usb devices and ethernet, and it still failed. The onboard ax210 wifi&BT module was enabled in bios, but I didn't include drivers for it and the usb port of BT wasn't mapped as well. I also tried to disabled it in the bios but the result remained the same. So I don't think it was the cause.

I looked up into the wake reason and found out the RP04 was the only reason, but there was no RP04 in my system. That's just weird.

Screenshot 2022-10-20 at 4.53.29 AM.png


Screenshot 2022-10-20 at 5.55.44 AM.png

The usb ports are all properly mapped. And the internal usb2.0 hub connector is set to intenal type as well, even though there is no device connected to it for now. I used the USBToolBox to map them. Both the UTBMap.kext with USBToolBox.kext and the USBMap.kext with Apple native management methods were tested, but the sleep still failed. I also tried using the universal ssdt files provided by the OpenCore guide and then generating my own ssdt files with SSDTTime. Make no difference in both cases.

Screenshot 2022-10-20 at 5.03.55 AM.png

The pmset seems fine as well.

Screenshot 2022-10-20 at 5.04.04 AM.png

The igpu is enabled for HW acceleration and set to display mode framebuffer 00009B3E since empty framebuffer for headless mode doesn't work at all. The z590 ace build has the same setting for igpu and the sleep function works fine, so I don't think it's cause.

I really have no idea of what affected the sleep function. Any ideas or help are much appreciated. The z590i unify is such a great option for hackintosh and I really want to make it work as perfect as I can. Spent many days on it. Hoping someone here can help me. Thank you!

Here is the PR files including EFI and ioreg.
 

Attachments

Yes, it still wakes up. Here is the output.

View attachment 5168
Post the BIOS version and build date.

Also, execute the following command and post the output.

Code:
pmset -g log | grep "failure"

Are you using any sort of internal USB Device such as a CPU Cooler?
 
Post the BIOS version and build date.
BIOS version: E7D05IMS.150
Build date:04/06/2022
IMG_2681.jpg
Also, execute the following command and post the output.
There is no output for this command.

Are you using any sort of internal USB Device such as a CPU Cooler?
No, I don't have any internal device other than the onboard ax210, which I have disabled in the bios. And the internal usb2.0 hub was mapped and set to internal type as well. My cpu cooler is thermalright frozen magic 360 scenic, which has no usb connection. It's so weird I know. But thanks for your patience! Much appreciated!
 
BIOS version: E7D05IMS.150
Build date:04/06/2022
View attachment 5169

There is no output for this command.


No, I don't have any internal device other than the onboard ax210, which I have disabled in the bios. And the internal usb2.0 hub was mapped and set to internal type as well. My cpu cooler is thermalright frozen magic 360 scenic, which has no usb connection. It's so weird I know. But thanks for your patience! Much appreciated!
Apply the following SSDT-GPRW followed by the GPRW patch.

1. Add the SSDT-GPRW.aml to your config.plist under ACPI>Add section and also place it in EFI/OC/ACPI directory.
2. Add the following GPRW patch to your config.plist under ACPI>Patch section.

Find: 47505257 02
Replace: 58505257 02
Comment: change Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml
Enabled: True

Once you're done with the changes, simply save your config.plist and reboot the system and reset NVRAM twice.
 
1. Add the SSDT-GPRW.aml to your config.plist under ACPI>Add section and also place it in EFI/OC/ACPI directory.
2. Add the following GPRW patch to your config.plist under ACPI>Patch section.

Find: 47505257 02
Replace: 58505257 02
Comment: change Method(GPRW,2,N) to XPRW, pair with SSDT-GPRW.aml
Enabled: True

Once you're done with the changes, simply save your config.plist and reboot the system and reset NVRAM twice.
Still wakes up. I think I did it right?

Screenshot 2022-10-20 at 10.41.51 AM.png

Screenshot 2022-10-20 at 10.42.18 AM.png

I did reset the nvram twice.
I searched for the wake reason and still the same RP04 reason.

Screenshot 2022-10-20 at 10.46.20 AM.png
 
Flash 7D05v11 BIOS. Reset BIOS Defaults, setup BIOS again, and Save and Exit Changes. Reset NVRAM twice, provide the new bootlog and test Sleep/Wake.
Sorry for the late reply! The MSI BIOS download page gave no response when I went to the page, so I had to gave up. However, I compared the efi with the one that I modified from a github share: z590i unify efi , which I have tried the sleep worked fine with it before. I made a few changes in reference with that efi and the sleep function works perfectly now.

Modification:
AAPL,ig-platform-id: 00009B3E -> 07009B3E
ApplePanic: enable
DisableWatchDog: enable
Driver: HfsPlus.efi -> OpenHfsPlus.efi

This is the current EFI of my build. Everything works pretty good. Just a few minor issues. It will be much appreciated if you can help me with the rest. Thanks again for your help and your patience! I think my build is nearly perfect now! It would be great to solve the rest! Thank you!

Working:

2.5g eth

Onboard audio (rear & front output with DP & HDMI)

iGPU acceleration (sometimes hevc unable shown in videoproc, but actually working, reboot may solve)

TB4 (SSDT injected, correct pcie device path shown in ioreg. Not tested with TB device yet, but should be fine)

Sleep (no error spotted yet under different scenarios)

Usb map (rear panel, all mapped but TB ports usb2.0 disabled. Front panel, one type c switch 3.0 & 2.0, one type A 3.0 & 2.0. Internal USB2.0 Hub mapped and set to Internal type for BT module that I'm going to install. If someone'd like to replace the onboard ax210, remapping the usb port used by the wifi slot is required)

Not working:

Wifi & BT related functions (waiting for my native apple wifi card BCM943602CS to install, but there should be no configuration required)

IGPU display unsupported due to 500 series mb

IGPU headless mode unsupported, must set to non empty frame buffer to enable hardware acceleration

Black screen for a minute before booting into the login page with amd rx6000 series dGPU. Few seconds only with rx 5300.

No dGPU HDMI audio

I'm not planning to use the iGPU as display output, so I'm just hoping to get the dGPU display and audio output work with both DP & HDMI connection.
 

Attachments

Last edited:
IGPU headless mode unsupported, must set to non empty frame buffer to enable hardware acceleration
This setting can also enable iGPU hardware acceleration, so it seems to have no effects on the use of the hackintosh. Just curious whether there is any potential effect on the system with this setting.

Black screen for a minute before booting into the login page with amd rx6000 series dGPU. Few seconds only with rx 5300.
I’ve not seen anyone reporting this problem, so I have no idea where to get started. It has very little effect on the use of the hackintosh, but the long time waiting On each boot is still annoying. Hoping to get it fixed.

No dGPU HDMI audio
I’ve seen posts about the similar problem with iGPU only system and guides of patching the iGPU HDMI audio, but there is no post about the issue with dGPU. As this could affect the use of the hackintosh, fixing it will be my main objective.

Hoping this is not too much for one post! Or should I create a new post regarding these issues? Thank you!
 
Here is the PR you may need for my current hackintosh setup. Thank you!
 

Attachments

Sorry for the late reply! The MSI BIOS download page gave no response when I went to the page, so I had to gave up.
That's weird. It could be your cache and cookies or an issue from their end too.
Modification:
AAPL,ig-platform-id: 00009B3E -> 07009B3E
ApplePanic: enable
DisableWatchDog: enable
Driver: HfsPlus.efi -> OpenHfsPlus.efi
I noticed them but didn't pay much attention as the log was not indicating anything about it.
This is the current EFI of my build. Everything works pretty good. Just a few minor issues. It will be much appreciated if you can help me with the rest. Thanks again for your help and your patience! I think my build is nearly perfect now! It would be great to solve the rest! Thank you!
Anytime!
iGPU acceleration (sometimes hevc unable shown in videoproc, but actually working, reboot may solve)
Any specific reason you're using IGPU? RX 6800XT already supports HEVC.
TB4 (SSDT injected, correct pcie device path shown in ioreg. Not tested with TB device yet, but should be fine)
Implementation seems fine and should work normally.
Wifi & BT related functions (waiting for my native apple wifi card BCM943602CS to install, but there should be no configuration required)
On some systems, running Monterey and later, BT function is affected. See Fixing Bluetooth on macOS Monterey and later for more information.
IGPU display unsupported due to 500 series mb
IGPU headless mode unsupported, must set to non empty frame buffer to enable hardware acceleration
Comet Lake IGPU is supported, regardless of the Motherboard series. Either 400 or 500 series.
Black screen for a minute before booting into the login page with amd rx6000 series dGPU. Few seconds only with rx 5300.
Are you using DP or HDMI?
No dGPU HDMI audio
That's weird.
 
Status
Not open for further replies.

Forum statistics

Threads
1,926
Messages
17,941
Members
27,723
Latest member
by_chu