Contribute
Register

Sleep-Wake up issue on dell 5520 with Sierra

Status
Not open for further replies.
Joined
May 9, 2017
Messages
30
Motherboard
Dell Inspiron 5520 (Clover)
CPU
i7-3612QM
Graphics
HD 4000, 1366x768
Mobile Phone
  1. iOS
My machine goes to sleep as normal, but when try to wake up using power button it automatically restarts instead of just wake up.
I implement power management and verified that by making sure that X86PlatformPlugin is loaded under the CPU0 node.

Also I want to note that I replaced all prev ssdts generated using Clover F4 by those generated by ssdtPRGen.sh and AMD graphics card still turned off, So need to know what is the diffrence between ssdts files generated using Clover F4 method and the ones generated using ssdtPRGen.sh method.

Thanks in advance.
 

Attachments

  • CLOVER.zip
    1.8 MB · Views: 116
  • patchmatic.zip
    23 KB · Views: 97
  • IORegistryExplorer.zip
    504.1 KB · Views: 95
  • acpiplat.zip
    1.1 KB · Views: 116
  • appleintelcpu.zip
    1.1 KB · Views: 107
My machine goes to sleep as normal, but when try to wake up using power button it automatically restarts instead of just wake up.
I implement power management and verified that by making sure that X86PlatformPlugin is loaded under the CPU0 node.

Also I want to note that I replaced all prev ssdts generated using Clover F4 by those generated by ssdtPRGen.sh and AMD graphics card still turned off, So need to know what is the diffrence between ssdts files generated using Clover F4 method and the ones generated using ssdtPRGen.sh method.

Thanks in advance.

ACPI is not patched correctly. Based on ACPI/origin, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-6.aml

Also:
- backlight control not implemented correctly
- google chrome is hooking your USB ports
- USB not implemented correctly

https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
ACPI is not patched correctly. Based on ACPI/origin, you should have in ACPI/patched:
DSDT.aml
SSDT.aml (ssdtPRgen.sh)
SSDT-0.aml
SSDT-1.aml
SSDT-2.aml
SSDT-6.aml

Also:
- backlight control not implemented correctly
- google chrome is hooking your USB ports
- USB not implemented correctly

https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/

ok I fixed ACPI now
Also disabled google chrome webusb
Finally Implemented backlight correctly following this thread:
https://www.tonymacx86.com/threads/...trol-using-applebacklightinjector-kext.218222

But I don't know why my USB is not implemented correctly, and how to solve this issue.
New files attached. Thanks.
 

Attachments

  • CLOVER.zip
    1.7 MB · Views: 106
  • RehabMan.zip
    24 KB · Views: 107
  • IORegisteryExplorer.zip
    502.8 KB · Views: 99
ok I fixed ACPI now
Also disabled google chrome webusb
Finally Implemented backlight correctly following this thread:
https://www.tonymacx86.com/threads/...trol-using-applebacklightinjector-kext.218222

But I don't know why my USB is not implemented correctly, and how to solve this issue.
New files attached. Thanks.

ACPI is still not patched correctly. As per ACPI patching guide, the PNOT patch should NOT be used if you're not dropping the CPU related SSDTs.

Note, you could also eliminate all SSDTs from ACPI/patched, set DropOem=false, and do the GFX0->IGPU rename with config.plist. Refer to the current guide plists for example...

As for correct USB implementation, see USB guide (it is linked from the FAQ):
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/
 
ACPI is still not patched correctly. As per ACPI patching guide, the PNOT patch should NOT be used if you're not dropping the CPU related SSDTs.

Note, you could also eliminate all SSDTs from ACPI/patched, set DropOem=false, and do the GFX0->IGPU rename with config.plist. Refer to the current guide plists for example...

As for correct USB implementation, see USB guide (it is linked from the FAQ):
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/

how to rename GFX0 -> IGPU within config.plist
do I use this:
<dict>
<key>Comment</key>
<string>change GFX0 to IGPU, optionally pair with SSDT-IGPU.aml</string>
<key>Find</key>
<data>R0ZYMA==</data>
<key>Replace</key>
<data>SUdQVQ==</data>
</dict>

of this one:
Comment: Rename GFX0 to IGPU
Find: <4746 5830>
Replace: <4947 5055>

or both are same?
 
how to rename GFX0 -> IGPU within config.plist
do I use this:
<dict>
<key>Comment</key>
<string>change GFX0 to IGPU, optionally pair with SSDT-IGPU.aml</string>
<key>Find</key>
<data>R0ZYMA==</data>
<key>Replace</key>
<data>SUdQVQ==</data>
</dict>

of this one:
Comment: Rename GFX0 to IGPU
Find: <4746 5830>
Replace: <4947 5055>

or both are same?

Same (when entered in the plist correctly)

Note:
Code:
SPEEDY-NUC:~ rehabman$ echo -n R0ZYMA==|base64 --decode|xxd
00000000: 4746 5830                                GFX0
SPEEDY-NUC:~ rehabman$ echo -n SUdQVQ==|base64 --decode|xxd
00000000: 4947 5055                                IGPU
 
ACPI is still not patched correctly. As per ACPI patching guide, the PNOT patch should NOT be used if you're not dropping the CPU related SSDTs.

Note, you could also eliminate all SSDTs from ACPI/patched, set DropOem=false, and do the GFX0->IGPU rename with config.plist. Refer to the current guide plists for example...

As for correct USB implementation, see USB guide (it is linked from the FAQ):
https://www.tonymacx86.com/threads/guide-creating-a-custom-ssdt-for-usbinjectall-kext.211311/

I think I have patched ACPI and USB correctly now,
and the sleep works but when wake up, the mac stays open open for almost 2 seconds but with no moving mouse and low brightness, then automatically restart

I don't know what's the issue exactly.
The files attached below, Thanks for your help.
 

Attachments

  • acpiplat.zip
    1.1 KB · Views: 120
  • appleintelcpu.zip
    1.1 KB · Views: 114
  • Patchmatic.zip
    24.4 KB · Views: 84
  • IORegistryExplorer.zip
    501 KB · Views: 86
  • CLOVER.zip
    1.6 MB · Views: 102
I think I have patched ACPI and USB correctly now,
and the sleep works but when wake up, the mac stays open open for almost 2 seconds but with no moving mouse and low brightness, then automatically restart

I don't know what's the issue exactly.
The files attached below, Thanks for your help.

USB configuration is not correct... you should be using FakePCIID.kext + FakePCIID_XHCIMux.kext.
Files in ACPI/origin are too old to compare (you forgot to press F4).
 
USB configuration is not correct... you should be using FakePCIID.kext + FakePCIID_XHCIMux.kext.
Files in ACPI/origin are too old to compare (you forgot to press F4).

ok I fixed that, and sleep/wakeup was working perfectly
until I restarted the computer, then sleep/wakeup break (wake up for 2 seconds then automatically restart)
I think restart breaks something, since when I do restart the laptop's fans never stop
Unlike when do shutdown then start, fans gets stopped normally

for now wake up is broken regardless I do shut down or restart.

Thanks for help.
 

Attachments

  • acpiplat.zip
    1.1 KB · Views: 82
  • appleintelcpu.zip
    1.1 KB · Views: 99
  • IORegistryExplorer.zip
    490.6 KB · Views: 99
  • Patchmatic.zip
    25.4 KB · Views: 91
  • CLOVER.zip
    1.6 MB · Views: 110
ok I fixed that, and sleep/wakeup was working perfectly
until I restarted the computer, then sleep/wakeup break (wake up for 2 seconds then automatically restart)
I think restart breaks something, since when I do restart the laptop's fans never stop
Unlike when do shutdown then start, fans gets stopped normally

for now wake up is broken regardless I do shut down or restart.

Thanks for help.

You should try calling _ON from _PTS and _OFF from _WAK as per guide...
https://www.tonymacx86.com/threads/guide-disabling-discrete-graphics-in-dual-gpu-laptops.163772/
 
Status
Not open for further replies.
Back
Top