laggykiller / Hackintosh_MSI_B660M-A_WIFI_DDR4

Hackintosh EFI for MSI PRO B660M-A WIFI DDR4
24 stars 2 forks source link

Black screen when wakeup from sleep. #5

Closed kaseru closed 4 months ago

kaseru commented 1 year ago

I tried your latest EFI for macos vetuna 13.4. Everything is working perfectly except for the problem that my screen goes black when I wake up. Can you give me an idea to suggest me on this issue? Thank very much!

laggykiller commented 1 year ago

First of all, do you have same computer parts with the one mentioned in the README? (esp. GPU)

This may help: https://dortania.github.io/OpenCore-Post-Install/universal/sleep.html#preparations

If that helped, please tell me what fixed your issue, thanks!

kaseru commented 1 year ago

I use a configuration similar to yours. Except

With your old efi config for macos 12. It works perfectly. I tried some of the above solutions but no luck This log when i run pmset -g log | grep -e "Sleep.*due to" -e "Wake.*due to"

2023-06-11 03:06:45 +0700 Sleep                 Entering DarkWake state due to 'Software Sleep pid=201': Using AC (Charge:0%)           
2023-06-11 03:07:00 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=201': Using AC (Charge:0%)           
2023-06-11 03:11:41 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-11 03:40:55 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=197': Using AC (Charge:0%) 6 secs    
2023-06-11 03:41:01 +0700 DarkWake              DarkWake from Invalid [CDN] : due to /HID Activity Using AC (Charge:0%) 2 secs    
2023-06-11 03:41:03 +0700 Wake                  DarkWake to FullWake from Invalid [CDNVA] : due to HID Activity Using AC (Charge:0%) 7 secs    
2023-06-11 03:41:10 +0700 Sleep                 Entering DarkWake state due to 'Software Sleep pid=197': Using AC (Charge:0%)           
2023-06-11 03:41:46 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=197': Using AC (Charge:0%)           
2023-06-11 03:45:42 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-11 03:46:20 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=188': Using AC (Charge:0%) 19 secs   
2023-06-11 03:46:39 +0700 DarkWake              DarkWake from Invalid [CDN] : due to /HID Activity Using AC (Charge:0%) 1 secs    
2023-06-11 03:46:40 +0700 Wake                  DarkWake to FullWake from Invalid [CDNVA] : due to UserActivity Assertion Using AC (Charge:0%) 122 secs  
2023-06-11 03:48:42 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=188': Using AC (Charge:0%)           
2023-06-11 03:54:03 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-11 04:08:15 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=216': Using AC (Charge:0%)           
2023-06-11 08:36:35 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-11 09:21:15 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=217': Using AC (Charge:0%)           
2023-06-11 09:28:31 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-11 09:29:11 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=217': Using AC (Charge:0%)           
2023-06-11 09:36:00 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-11 10:01:35 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=217': Using AC (Charge:0%)           
2023-06-11 10:05:15 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-12 16:06:37 +0700 Sleep                 Entering DarkWake state due to 'Software Sleep pid=216': Using AC (Charge:0%)           
2023-06-12 16:06:51 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=216': Using AC (Charge:0%) 12 secs   
2023-06-12 16:07:03 +0700 DarkWake              DarkWake from Invalid [CDN] : due to /HID Activity Using AC (Charge:0%) 3 secs    
2023-06-12 16:07:06 +0700 Wake                  DarkWake to FullWake from Invalid [CDNVA] : due to HID Activity Using AC (Charge:0%) 2 secs    
2023-06-12 16:07:08 +0700 Sleep                 Entering DarkWake state due to 'Software Sleep pid=216': Using AC (Charge:0%) 3 secs    
2023-06-12 16:07:11 +0700 Wake                  DarkWake to FullWake from Invalid [CDNVA] : due to HID Activity Using AC (Charge:0%) 2 secs    
2023-06-12 16:07:13 +0700 Sleep                 Entering DarkWake state due to 'Software Sleep pid=216': Using AC (Charge:0%) 22 secs   
2023-06-12 16:07:35 +0700 Wake                  DarkWake to FullWake from Invalid [CDNVA] : due to UserActivity Assertion Using AC (Charge:0%) 33 secs   
2023-06-12 16:08:08 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=216': Using AC (Charge:0%)           
2023-06-12 16:26:14 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-12 18:31:18 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=217': Using AC (Charge:0%)           
2023-06-12 19:52:31 +0700 Sleep                 Entering Sleep state due to '': Using AC (Charge:0%)           
2023-06-12 19:53:55 +0700 Sleep                 Entering Sleep state due to 'Software Sleep pid=199': Using AC (Charge:0%) 125 secs  
2023-06-12 19:56:00 +0700 Wake                  Wake from Normal Sleep [CDNVA] : due to PWRB XDCI/UserActivity Assertion Using AC (Charge:0%)    

And power tab in hackingtool Screenshot 2023-06-12 at 20 20 15

I'm not really an expert in this field. If you find problems in what I provided above. Please show me. Thank you very much

laggykiller commented 1 year ago

Have you disabled iGPU, such as by adding -wegnoigpu to boot-args?

Also follow the instructions under Special note for 4k Displays with AMD dGPUs in https://dortania.github.io/OpenCore-Install-Guide/extras/spoof.html

Try to switch to debug version of WhateverGreen.kext and see relevant log by sudo dmesg?

Is the following steps correct to reproduce your problem?

  1. Put computer to sleep
  2. Wake computer up by any method (e.g. Power button, keyboard, mouse, etc)
  3. Computer wakes up, but screen stays black

If you press a key on keyboard during step 3, is there video on screen?

If you unplug and replug the HDMI/DP cable during step 3, is there video on screen?

What if you use my new EFI on Monterey? Does the problem still exists?

The changes in config.plist is likely not the culprit

I do not have access to that machine right now, so you may have to wait until I can access it and try to reproduce the problem on my side

kaseru commented 1 year ago

I just replaced the latest WhateverGreen kext they just released today. And add boot arg -igfxblt. Now my sleep problem is solved. Thank you so much!

laggykiller commented 1 year ago

From what I read, -igfxblt enables submodule that affect iGPU, so not sure why it fixed your problem, I shall do some test when free...

Anyway, congrats on your success in fixing the issue!