Jump to content

Debugging Sleep/Wake Issues


Aryamaulana Wibisono
 Share

32 posts in this topic

Recommended Posts

Hello everyone, this is my first time post in insanelymac. 

I'm having this issues with my motherboard Gigabyte Z590M (Rev 1.0) in macOS. The issues is everytime the computer is cold booted/reboot it can sleep and wake just fine, but after that "sleep state" if i wanted to put it to the sleep again but this time when i wake it, it just got restarted.

But in monterey there's no such a kernel panic like when I was in bigsur. so my question is, how do I debug this issue to find out what could be the problem is? the things that i've been doing is changing a lot of SMBIOS, tuning the CPUFriendProvider.Kext, re-code the acpi ssdt patches, tweaking all of the bios settings but none of that things helps.. 

Thanks in advance👋

..337578777_ScreenShot2021-11-14at7_51_11PM.png.89e8dbab8ce7d27a7cf13996b888ac9b.png

491295223_2021-11-147_38_54PM.thumb.jpg.4440b12d54298290b66e5c2dbb412fec.jpg740843503_ScreenShot2021-11-14at7_44_18PM.thumb.png.a4e176b0ba14cd8e46977205ffeb2d3f.png

Link to comment
Share on other sites

On 11/16/2021 at 10:24 PM, Allan said:

Hello and welcome to InsanelyMac!

 

Post an IOReg copy here and your EFI folder and we can take a look 😉

Hi, Allan! I'm really sorry for the late answers. 

Is that okay if I attached the file through Dropbox? it's more than 10mb..
https://www.dropbox.com/s/z9lqlpab6rgchjo/IOREGandEFI.zip?dl=0

If this link is not allowed I will delete it 😅

————————————————————

A little bit story; I've already tested both of the ACPI Patch that I created the one that i made a lot of beautification to make it looks like a real mac or the one that "vanilla" but none of the acpi patch really affecting the issues that I'm facing. I'm just afraid that it is some kind of firmware issues, since I've been using the same method patching the ACPI like this using a cheap motherboard (Asrock H410M-HVS) with the same exact processor and the sleep just fine, even there's no issues at all with that. Since I buying this Gigabyte Z590M I've been spending a lot of time trying to debug this issues but still have no idea what is wrong and how to fix it..

thank you in advance..

Edited by Aryamaulana Wibisono
Changing the link cause it was wrong 👍
Link to comment
Share on other sites

Use this efi folder with bios/uefi setup in default. plz don't change nothing for now

EFI 01.zip

Reboot and Post one Full Dump with Ioreg.
https://www.olarila.com/topic/10301-olarila-runme-dumper/
https://olarila.com/files/Utils/RunMe.app.zip
https://olarila.com/files/Utils/IORegistryExplorer.app.zip

 

Link to comment
Share on other sites

2 hours ago, MaLd0n said:

Use this efi folder with bios/uefi setup in default. plz don't change nothing for now

EFI 01.zip 4.71 MB · 2 downloads

Reboot and Post one Full Dump with Ioreg.
https://www.olarila.com/topic/10301-olarila-runme-dumper/
https://olarila.com/files/Utils/RunMe.app.zip
https://olarila.com/files/Utils/IORegistryExplorer.app.zip

 

Hi MaLd0n. I've already set the bios to default but needed to change the secureboot to disabled to access the opencore. that's the only change i made for the bios.

also, here's the result of runme.app and the IOReg.

Thanks in advance

Send me AryamauanasiMac.zip ioreg.zip

Link to comment
Share on other sites

6 hours ago, MaLd0n said:

Hibernate is disabled?

check

https://www.olarila.com/topic/10296-olarila-repair-app/

test with only wake by power button

EFI 03.zip 4.5 MB · 2 downloads

I believe the hibernate is disabled i've already checked using 

pmset -g

in the terminal.

and also about the EFI that you just given the result is still the same even waking it up using the power button since the first sleep. I also run the Olarila-Repair-App but still

Screen Shot 2021-12-02 at 07.29.13.png

Edited by Aryamaulana Wibisono
Link to comment
Share on other sites

  • 2 weeks later...

I think it might be interesting to sent it in here. Gigabyte just make an update with the Z590M Bios version https://www.gigabyte.com/Motherboard/Z590M-rev-10/support#support-dl-bios to the F6.

as they said:
 Major vulnerabilities updates, customers are strongly encouraged to update to this release at the earliest.
 
i thought it might gonna be changed the sleep issues that i'm currently facing on. unfortunately, it did not:(
 

Link to comment
Share on other sites

1 hour ago, MaLd0n said:

test it

EFI 04.zip 4.49 MB · 2 downloads

use power button to wake. if work good add _prw again

HOLLY SHEESH! It's damn works!

what actually the problem is @MaLd0n? would you please elaborate it to me so that i could understand it..

omg thank you very much!

Edited by Aryamaulana Wibisono
  • Like 1
Link to comment
Share on other sites

Hi, guys @MaLd0n @Allan I finally able to convert the DSDT that @MaLd0n created into SSDT and now my sleep is working just fine. Thank you so much for the work @MaLd0n i'm really appreciate it!

also correct me if i'm wrong if this is line _TTS and DTGP of code is necessary? well, i haven't test without it yet.. so lmk if it's impact on something!
 

Method (_PTS, 1, NotSerialized)  // _PTS: Prepare To Sleep
        {
            If ((Arg0 != 0x05))
            {
                \_SB.MPTS (Arg0)
                \_SB.TPM.TPTS (Arg0)
                \_SB.PC00.NPTS (Arg0)
                RPTS (Arg0)
                \_SB.PC00.LPCB.SIO1.SIOS (Arg0)
                \_SB.PC00.LPCB.SPTS (Arg0)
            }
        }

        Method (_WAK, 1, NotSerialized)  // _WAK: Wake
        {
            If (((Arg0 < One) || (Arg0 > 0x05)))
            {
                Arg0 = 0x03
            }

            \_SB.PC00.LPCB.SWAK (Arg0)
            \_SB.PC00.LPCB.SIO1.SIOW (Arg0)
            RWAK (Arg0)
            \_SB.PC00.NWAK (Arg0)
            \_SB.MWAK (Arg0)
            Return (AM00 ())
        }

        Method (_TTS, 1, NotSerialized)  // _TTS: Transition To State
        {
            SLTP = Arg0
        }

        Name (SLTP, Zero)
        Method (DTGP, 5, NotSerialized)
        {
            If ((Arg0 == ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b") /* Unknown UUID */))
            {
                If ((Arg1 == One))
                {
                    If ((Arg2 == Zero))
                    {
                        Arg4 = Buffer (One)
                            {
                                 0x03                                             // .
                            }
                        Return (One)
                    }

                    If ((Arg2 == One))
                    {
                        Return (One)
                    }
                }
            }

            Arg4 = Buffer (One)
                {
                     0x00                                             // .
                }
            Return (Zero)
        }
    }

 

Link to comment
Share on other sites

4 hours ago, Aryamaulana Wibisono said:

I finally able to convert the DSDT that @MaLd0n created into SSDT

is impossible do it

compare both files(original and patched) with DiffMerge app and check. ssdt is generic solution for one easy boot, just it. this dsdt above have all u need for one perfect hack but boot into windows for example with opencore don't work good, this bootloader inject things in other system too😄. in this case the best is used this way

https://www.olarila.com/topic/13019-hackintosh-dual-boot-with-opencore-with-full-acpi-and-real-vanilla-solution/

Link to comment
Share on other sites

Hi everyone,

I apologize for bombarding this thread, but my Alienware Area 51m R2 laptop literally has the same problem, and I was hoping that you all could help me:

 

26816052_SleepWakeErrorAlienwareArea51mR2.thumb.png.b0d9bf1857897ef1c6ffa97016fb6144.png

 

It restarts after entering sleep mode and throws pretty much the exact same error.

Because this laptop also contains a 10th Gen Comet Lake Desktop CPU, I have a feeling that my ACPI tables are similar, and that the DSDT patch could have a chance of working for me also.

 

If it seems compatible, would someone please patch, or show me how to apply a similar patch to my DSDT?

It would be a Christmas miracle if a solution similar to what @MaLd0n did worked for my system.

Thanks, happy holidays, and my ACPI tables are attached below.

(I’m running macOS Big Sur 11.5.2)

ACPI Dump Alienware Area 51m R2.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...