Contribute
Register
Status
Not open for further replies.
Instant wake is still not fixed.

ACPI is not patched correctly
Are you referring to DSDT or SSDT?

Also, SSDTs 0 to 7 haven't been patched. I couldn't find anything relevant to patch
 
Instant wake is still not fixed.


Are you referring to DSDT or SSDT?

Also, SSDTs 0 to 7 haven't been patched. I couldn't find anything relevant to patch

You didn't apply common patches such as "OS Check Fix"...
Your original XHC._PRW implementation may be returning 0x6d instead of 0x0d (look at the original code).
 
You didn't apply common patches such as "OS Check Fix"...
Your original XHC._PRW implementation may be returning 0x6d instead of 0x0d (look at the original code).
Okay, I applied common patches listed in the guide and I made some progress!
Previously, sleep caused the system to crash and reboot. Now, it simply resumes (exits sleep without crashing) when I put it to sleep. Could it be because of "-gux_defer_usb2" being enabled?

Also, This is what I have under XHC._PRW:
Code:
Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                If (ULTP)
                {
                    Return (GPRW (0x6D, 0x03))
                }
                Else
                {
                    Return (GPRW (0x0D, 0x03))
                }
            }
 
Okay, I applied common patches listed in the guide and I made some progress!
Previously, sleep caused the system to crash and reboot. Now, it simply resumes (exits sleep without crashing) when I put it to sleep. Could it be because of "-gux_defer_usb2" being enabled?

-gux_defer_usb2 is only for GenericUSBXHCI.kext... which does not apply to your hardware.

Also, This is what I have under XHC._PRW:
Code:
Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                If (ULTP)
                {
                    Return (GPRW (0x6D, 0x03))
                }
                Else
                {
                    Return (GPRW (0x0D, 0x03))
                }
            }

Yes.. and because you don't know the value of ULTP, you do not know whether it returns 0x6d or 0x0d. As a result, you don't know whether to patch it for 0x6d or 0x0d. Currently, you have patched for 0x0d, which may be a mistake.

You should try:
Code:
Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                If (ULTP)
                {
                    Return (GPRW (0x6D, 0))
                }
                Else
                {
                    Return (GPRW (0x0D, 0))
                }
            }

You could also use ACPIDebug.kext to discover the value of ULTP.
 
-gux_defer_usb2 is only for GenericUSBXHCI.kext... which does not apply to your hardware.



Yes.. and because you don't know the value of ULTP, you do not know whether it returns 0x6d or 0x0d. As a result, you don't know whether to patch it for 0x6d or 0x0d. Currently, you have patched for 0x0d, which may be a mistake.

You should try:
Code:
Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                If (ULTP)
                {
                    Return (GPRW (0x6D, 0))
                }
                Else
                {
                    Return (GPRW (0x0D, 0))
                }
            }

You could also use ACPIDebug.kext to discover the value of ULTP.

Tried the 0x6D patch as well. Still the same results (instant resume from sleep)
Also, I disabled -gux_defer_usb2. Is dropping the MCFG table relevant here?
 
Tried the 0x6D patch as well. Still the same results (instant resume from sleep)
Also, I disabled -gux_defer_usb2. Is dropping the MCFG table relevant here?

It could be that the return value from _PRW is variable and depends on the circumstance.

Read post #14.
 
You should try:
Code:
Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                If (ULTP)
                {
                    Return (GPRW (0x6D, 0))
                }
                Else
                {
                    Return (GPRW (0x0D, 0))
                }
            }

You could also use ACPIDebug.kext to discover the value of ULTP.

Do I have to change all statements of
Code:
Return (GPRW (0x6D, 0x0#))
Return (GPRW (0x0D, 0x0#))
with:
Code:
Return (GPRW (0x6D, 0))
Return (GPRW (0x0D, 0))
? (where # is any number)

P.S. Most of the other _PRW functions in the DSDT all return 0x0D. Only a very few of them have 0x6D.
 
Do I have to change all statements of
Code:
Return (GPRW (0x6D, 0x0#))
Return (GPRW (0x0D, 0x0#))
with:
Code:
Return (GPRW (0x6D, 0))
Return (GPRW (0x0D, 0))
? (where # is any number)

P.S. Most of the other _PRW functions in the DSDT all return 0x0D. Only a very few of them have 0x6D.

All _PRW methods need to return a package with the correct GPE index and zero for the sleep state.
 
All _PRW methods need to return a package with the correct GPE index and zero for the sleep state.
The DSDT has 5 occurrences of 0x0D and only 1 occurrence of 0x6D. Nevertheless, I changed all of the second arguments to zero. Instant wake still not fixed.

Could it be because of something related to other SSDT files? My SSDTs 0, 1, 2, 6 and 7 are unpatched.
 
The DSDT has 5 occurrences of 0x0D and only 1 occurrence of 0x6D. Nevertheless, I changed all of the second arguments to zero. Instant wake still not fixed.

Could it be because of something related to other SSDT files? My SSDTs 0, 1, 2, 6 and 7 are unpatched.

It is not possible to determine what you're actually doing when you don't provide files...

Attach ioreg as ZIP: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

Provide output (in Terminal):
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda

Attach EFI/Clover folder as ZIP (press F4 at main Clover screen before collecting). Please eliminate 'themes' directory. Provide only EFI/Clover, not the entire EFI folder.

Attach output of (in Terminal):
Code:
sudo touch /System/Library/Extensions && sudo kextcache -u /

Compress all files as ZIP. Do not use external links. Attach all files using site attachments only.
 
Status
Not open for further replies.
Back
Top