Captain's Log ‐ Notes on the steps involved - xenophon61/Lenovo-ThinkCentre-M700-OSX-Sonoma-on-Skylake GitHub Wiki

In no particular order, based on my notes trying to solve the sleep issue. When appropriate, headings correspond to the OC config.plist.

Some are disabled, but included in this list, in case one wants to attempt using them (e.g. keyboard wake).

Final comment: the setup as outlined just works. I do not have the time to test each individual item described here (i.e. whether it is really really necessary).

BIOS

  • CSM should be enabled
  • CFG-Lock and XHCI should be modified using modgrubShell

ACPI/SSDT-PTS.aml

  • this is based on an insanelymac post by (the very knowledgable) deeveedee
  • it is paired with an ACPI patch ("change _PTS to XPTS")

ACPI/SSDT-GPRW.aml

ACPI/SSDT-EC.aml

  • IIRC, this is Dortania vanilla

ACPI/SSDT-HPET.aml

  • trying to remember where I got this; will update

ACPI/SSDT-USBX.aml (disabled)

  • I read that it's not necessary with a proper USBports kext, so I disabled it

ACPI/SSDT-USBW.aml (disabled)

  • part of the single-keypress wake solution offered by Dortania
  • abandoned early on to encourage wake by power-button
  • paired with USBWakeFixup.kext, which, too, is disabled

Booter/Quirks

  • DiscardHibernateMap: set to TRUE; this, I think, is critical for wake, but will keep testing*

Kernel/Add

  • please open the EFI folder and see
  • note that Intel bluetooth kexts are disabled (just the BluetoolFixup.kext is active, as it prevents an annoying dialog at startup)
  • RTCMemoryFixup.kext; note that no boot args are used

Kernel/Patch

  • enabled "__ZN8AppleRTC18setupDateTimeAlarmEPK11RTCDateTime" from Dortania's Opencore sample.plist, to disable RTC wake scheduling

Kernel/Quirks

  • ThirdPartyDrives* set to FALSE; had a lot of trouble with this enabled (which would make sense, as it is supposed to facilitate hibernation); note that my boot drive is an m2.SATA, though.

NVRAM/Add/7C436110-AB2A-4BBB-A880-FE41995C9F82/boot-args

igfxagdc=0 revpatch=sbvmm forceRenderStandby=0 igfxonln=1 keepsyms=1 -amfipassbeta swd_panic=1 hbfx-ahbm=1 darkwake=0 -noDC9 -liludbgall -hbfxdbg -btlfxallowanyaddr

  • note that the NVRAM/Delete section is also important

NVRAM/Add/4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102/revpatch

  • "sbvmm" is required here (coupled with RestrictEvents.kext)
  • please note the NVRAM/Delete section

UEFI/ReservedMemory

  • I've included the patch to "Fix black screen after hibernation", as per this Acidanthera bugtracker post; forgot to enable it, and things seem to be OK without it.

disabling RTC wakes in Sonoma proper

This has been described very eloquently by JayMonkey, and involves some steps to create a new powerd.plist.

*asterisks denote procedures/settings that I consider critical in solving the wake from sleep issue (under hibernatemode=25) and/or system stability.