Contribute
Register

Fix Sleep on Sierra

Status
Not open for further replies.
Hi,
Sleep is not working for me. Well not automatically that is.
If I put it to Sleep manually, it will sleep, but when I wake it up, my Thunderbolt drives are ejected and I have notifications that those Thunderbolt drives were not ejected properly. Since Thunderbolt is not hot swappable, I have to do a restart to get them to mount.
To test automatic sleep, I go to System Preferences/Energy Saver and set the Display sleep slider to 1 min, but it takes about 5 mins for the monitors to sleep, then about another minute before the keyboard sleeps, then my Hack makes a click sound and the screen comes back on to the login screen. It doesn't want to go fully asleep and also my Thunderbolt drives again are "not ejected properly". Not sure what's up with this.
I tried Darkwake=0, and it doesn't work and Symbios is set to iMac 14,2
I have a 4790k Haswell CPU and z97 series 9 motherboard.
I'm attaching my IoReg.

Ioreg is corrupt. Most likely using wrong version. [Guide] How to Make a Copy of IOReg | tonymacx86.com
 
Use SSDT-GLAN & SSDT-HDEF put them in EFI/Clover/ACPI/patched. Test sleep.
Thank you for the SSDT's and the help.
I added the SSDT's you attached to EFI/Clover/ACPI/patched. But you attached SSDT-ALC892.aml instead of SSDT-HDEF.
I tried the ALC982 and GLAN but still no improvement. Restart after wake.

Code:
Failure                 Drivers Failure during wake due to IGPU(),SATA(),HDEF(),GLAN(IntelMausi):
 

Attachments

  • CLOVER.zip
    1.3 MB · Views: 85
  • ioreg.ioreg
    6.7 MB · Views: 124
Thank you for the SSDT's and the help.
I added the SSDT's you attached to EFI/Clover/ACPI/patched. But you attached SSDT-ALC892.aml instead of SSDT-HDEF.
I tried the ALC982 and GLAN but still no improvement. Restart after wake.

Code:
Failure                 Drivers Failure during wake due to IGPU(),SATA(),HDEF(),GLAN(IntelMausi):

No idea. Out of ideas.
 

Native Powermanagement isn't implemented. X86PlatformPlugin & AppleLPC isn't loaded. Generate a SSDT for Powermanagement. Will need to patch ACPI in order to get AppleLPC to load. By looking at ioreg default Device ID for the LPC controller isn't supported natively. Quick Guide to Generate a SSDT for CPU Power Management ...
 
Hi,
I've got the same problem - restart instead of wake.
System definition is 17,1.
I added your patchfiles (ALC, SATA, GLAN, SMBUS, XHC) into the ACPI/patched folder and added the plist edits. I created a SSDT through the guide one post above. OT, sorry: What exactly are these for? Do I need the Realtek ALC drivers enabled at Multibeast after using the ALC SSDT? I didn't use any DSDT yet.
IOReg is attached at the bottom, here the output from the power management, should I post the panic info from the Problem Report I get after rebooting?

AppleIntelInfo.kext v1.2 Copyright © 2012-2015 Pike R. Alpha. All rights reserved


Settings:

------------------------------------

logMSRs............................: 1

logIGPU............................: 0

logIntelRegs.......................: 1

logCStates.........................: 1

logIPGStyle........................: 1

InitialTSC.........................: 0x6221d01b648e

MWAIT C-States.....................: 1319200


Model Specific Regiters

------------------------------------

MSR_CORE_THREAD_COUNT......(0x35) : 0x40004

MSR_PLATFORM_INFO..........(0xCE) : 0x80838F1012000

MSR_PMG_CST_CONFIG_CONTROL.(0xE2) : 0x1E000001

MSR_PMG_IO_CAPTURE_BASE....(0xE4) : 0x1814

IA32_MPERF.................(0xE7) : 0x26A5CBA7B7

IA32_APERF.................(0xE8) : 0x27DD3573FC

MSR_FLEX_RATIO.............(0x194) : 0x0

MSR_IA32_PERF_STATUS.......(0x198) : 0x245100002100

MSR_IA32_PERF_CONTROL......(0x199) : 0x2400

IA32_CLOCK_MODULATION......(0x19A) : 0x0

IA32_THERM_STATUS..........(0x19C) : 0x88440000

IA32_MISC_ENABLES..........(0x1A0) : 0x850089

MSR_MISC_PWR_MGMT..........(0x1AA) : 0x401CC1

MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x21222324

IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x1

MSR_POWER_CTL..............(0x1FC) : 0x2C005F

MSR_RAPL_POWER_UNIT........(0x606) : 0xA0E03

MSR_PKG_POWER_LIMIT........(0x610) : 0x42FFF80015FFF8

MSR_PKG_ENERGY_STATUS......(0x611) : 0x57FD046

MSR_PKG_POWER_INFO.........(0x614) : 0x208

MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x0

MSR_PP0_POWER_LIMIT........(0x638) : 0x0

MSR_PP0_ENERGY_STATUS......(0x639) : 0x2FE95E2

MSR_PP0_POLICY.............(0x63a) : 0x0

MSR_PKGC6_IRTL.............(0x60b) : 0x8876

MSR_PKGC7_IRTL.............(0x60c) : 0x8894

MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x3DF6C31A00

MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x0

MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0

MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0

IA32_TSC_DEADLINE..........(0x6E0) : 0x6221D34B1D11


CPU Ratio Info:

------------------------------------

CPU Low Frequency Mode.............: 800 MHz

CPU Maximum non-Turbo Frequency....: 3200 MHz

CPU Maximum Turbo Frequency........: 3600 MHz

CPU P-States [ 33 (34) ]

CPU C3-Cores [ 0 1 2 ]

CPU C6-Cores [ 0 1 2 ]

CPU P-States [ 32 (33) 34 ]

CPU P-States [ (16) 32 33 34 ]

CPU P-States [ (16) 29 32 33 34 ]

CPU P-States [ 16 29 32 33 34 (35) ]

CPU C3-Cores [ 0 1 2 3 ]

CPU C6-Cores [ 0 1 2 3 ]
 

Attachments

  • myimac.ioreg
    3.6 MB · Views: 153
Last edited:
Does anyone else have it where sleep sometimes works and sometimes not? The not case being that it restarts. Just curious because I'm experiencing this now and it's kinda frustrating.
 
Have you working power management and working IGPU power management?
When you have these two things it should work.
 

Attachments

  • Matthew’s iMac.ioreg
    8.6 MB · Views: 126
VioletDragon,

I've just made another IOReg file.
I checked it by opening it in IORegistryExplorer and it opens normally and displays correctly for me.
I'm re-attaching it to this post.
Let me know if you're able to open it.

Thanks

ACPI isn't patched. USB configuration is messy. X86PlatformPlugin & AppleLPC is loaded.
 
Hi,
I've got the same problem - restart instead of wake.
System definition is 17,1.
I added your patchfiles (ALC, SATA, GLAN, SMBUS, XHC) into the ACPI/patched folder and added the plist edits. I created a SSDT through the guide one post above. OT, sorry: What exactly are these for? Do I need the Realtek ALC drivers enabled at Multibeast after using the ALC SSDT? I didn't use any DSDT yet.
IOReg is attached at the bottom, here the output from the power management, should I post the panic info from the Problem Report I get after rebooting?

AppleIntelInfo.kext v1.2 Copyright © 2012-2015 Pike R. Alpha. All rights reserved


Settings:

------------------------------------

logMSRs............................: 1

logIGPU............................: 0

logIntelRegs.......................: 1

logCStates.........................: 1

logIPGStyle........................: 1

InitialTSC.........................: 0x6221d01b648e

MWAIT C-States.....................: 1319200


Model Specific Regiters

------------------------------------

MSR_CORE_THREAD_COUNT......(0x35) : 0x40004

MSR_PLATFORM_INFO..........(0xCE) : 0x80838F1012000

MSR_PMG_CST_CONFIG_CONTROL.(0xE2) : 0x1E000001

MSR_PMG_IO_CAPTURE_BASE....(0xE4) : 0x1814

IA32_MPERF.................(0xE7) : 0x26A5CBA7B7

IA32_APERF.................(0xE8) : 0x27DD3573FC

MSR_FLEX_RATIO.............(0x194) : 0x0

MSR_IA32_PERF_STATUS.......(0x198) : 0x245100002100

MSR_IA32_PERF_CONTROL......(0x199) : 0x2400

IA32_CLOCK_MODULATION......(0x19A) : 0x0

IA32_THERM_STATUS..........(0x19C) : 0x88440000

IA32_MISC_ENABLES..........(0x1A0) : 0x850089

MSR_MISC_PWR_MGMT..........(0x1AA) : 0x401CC1

MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x21222324

IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x1

MSR_POWER_CTL..............(0x1FC) : 0x2C005F

MSR_RAPL_POWER_UNIT........(0x606) : 0xA0E03

MSR_PKG_POWER_LIMIT........(0x610) : 0x42FFF80015FFF8

MSR_PKG_ENERGY_STATUS......(0x611) : 0x57FD046

MSR_PKG_POWER_INFO.........(0x614) : 0x208

MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x0

MSR_PP0_POWER_LIMIT........(0x638) : 0x0

MSR_PP0_ENERGY_STATUS......(0x639) : 0x2FE95E2

MSR_PP0_POLICY.............(0x63a) : 0x0

MSR_PKGC6_IRTL.............(0x60b) : 0x8876

MSR_PKGC7_IRTL.............(0x60c) : 0x8894

MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x3DF6C31A00

MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x0

MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0

MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0

IA32_TSC_DEADLINE..........(0x6E0) : 0x6221D34B1D11


CPU Ratio Info:

------------------------------------

CPU Low Frequency Mode.............: 800 MHz

CPU Maximum non-Turbo Frequency....: 3200 MHz

CPU Maximum Turbo Frequency........: 3600 MHz

CPU P-States [ 33 (34) ]

CPU C3-Cores [ 0 1 2 ]

CPU C6-Cores [ 0 1 2 ]

CPU P-States [ 32 (33) 34 ]

CPU P-States [ (16) 32 33 34 ]

CPU P-States [ (16) 29 32 33 34 ]

CPU P-States [ 16 29 32 33 34 (35) ]

CPU C3-Cores [ 0 1 2 3 ]

CPU C6-Cores [ 0 1 2 3 ]

Need Clover folder from EFI. Remove Themes ZIP attach. Cant just use the SSDTs which are SSDT-GLAN, SSDT-HDEF need to know what hardware you have before even attempting to patch ACPI.
 
Status
Not open for further replies.
Back
Top