Contribute
Register

Memory corrupted after longer sleep

Status
Not open for further replies.
FYI, another -perhaps relevant- data point.

Just to put this comment in context, I had been plagued with the crash upon wake throughout 2015, with a GA-Z97-SLI system. As soon as I switched to an Asus motherboard, the crashes went away (refer to entry #159, on page 16 of this thread)!

Or so I thought...

While 2016 was indeed very stable overall (El Capitan, Sierra upgrades), there were occasional freezes that "felt like" the infamous wake bug.

I am now under the impression that these -sporadic- events correlated with running VMWare Fusion.

More specifically, they occurred one day after running (and quitting fully) the application. The new console logging under Sierra is not as easy to navigate, but I've decided to abstain from running VMWare, and at some point try to see if it indeed triggers instabiity. With an uptime of 26 days, I'll wait for another couple of weeks and let you all know.

Greetings.
 
Ok ladies and gents. Here is my solution.


  • When you use i7 4790k processors or similar on z97 chipset, you need to first locate the real macs using this same setting.
  • Turns out only 1 mac do use this processor and chipset: iMac 15,1
  • So change smbios to iMac 15,1. If using nvidia card you'll get black screen so before do this. Don't forget to touch /System/Library/Extensions to clear cache.
  • Install latest FakeSMC, because smbios and smc work together, so better have the latest version https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek/downloads
  • Then when running proper iMac 15,1 smbios with latest FakeSMC.kext, delete custom SSDT for power management, because it needs to be regenerated to work with the new smbios. And rm -rf ~/Library/ssdtprGen to delete previously cached data.
  • Gen new SSDT with https://github.com/Piker-Alpha/ssdtPRGen.sh
  • Finally place back the new SSDT.aml to its usual place in clover or other bootloader. You need to rename ssdt.aml to SSDT.aml (just in case).

Reboot and enjoy a fully working power management and with no more sleep issues.

Why this works ? Because now, the system is being treated with the right parameters.

As iMac 15,1 uses the exact same processor and chipset and with the correct tweaked SSDT from latest ssdtPRGen.sh v15.1, system runs smoothly, as it should.

Hi Rimkashox,

A few questions about this procedure.

Bullet point 3:
You say "If using nvidia card you'll get black screen so before do this.", but when I click on this., it's the OP of the 10.10.3 Yosemite update thread and nothing about stopping black screen on boot if using iMac 15,1, unless it's buried somewhere among all of the posts. I'm on Sierra 10.12.3 now and I found this script, https://www.tonymacx86.com/threads/...-card-in-10-11-elcapitan.174339/#post-1150147 Post #5, to run in Terminal after changing smbios to iMac 15,1. It seems to work fine. No black screen on boot. Also you say "Don't forget to touch /System/Library/Extensions to clear cache." I know that this is some kind of Terminal command but which one is it?
Is it this?
sudo touch /System/Library/Extensions
then
sudo kextcache -update-volume / or sudo kextcache -u /
Not sure which one of the above to use.

Bullet point 4:
You say "Install latest FakeSMC, because smbios and smc work together, so better have the latest version", but when I download the latest .zip there are 5 kexts.
FakeSMC_ACPISensors.kext
FakeSMC_CPUSensors.kext
FakeSMC_GPUSensors.kext
FakeSMC_LPCSensors.kext
FakeSMC.kext
Which kext(s) do I use?
All of them? Some of them?
And where do I put them?
Do I copy all/some in EFI\EFI\CLOVER\kexts\Other?

Sorry to bombard you with all these questions. Just need a little clarity.
Thanks, Mhjeff
 
Hi. im not Rimkashox, but i like to answer.:mrgreen:

first: iMac15,1 doesn't have Z97 chipset. It seems to be some H87 variant. But MacOS actually supports 9 series chipset too. iMac14,2 or iMac15,1 are common here and they're working both.

point 3: He probably means fixing /System/Library/Extensions/AppleGraphicsControl.kext/Contents/PlugIns/AppleGraphicsDevicePolicy.kext/Contents/Info.plist either by AGDPfix or manually.

point 4:
FakeSMC.kext
is needed, sensor kexts are optional. Sensor kexts are for proper reading temperature values or clock rates etc.
Extract them to EFI\EFI\CLOVER\kexts\Other. Other folder kexts will be used on every system version. 10.11 or 10.12 i.e. are only in use if specific system is booting. El Capitan and Sierra need some reorganisation in usb port detection on most mainboards. Usually done by Rehabman's FakePCIID.kext or USBInjectAll.kext.
 
Last edited:
I update z97x-sli bios firmware with 10b today and I will waiting to fix my problem with crash I use 4x8GB RAM.
 
Hello


I have been troubled like yourselves with crashes after wake and crashes during sleep for the last year. Upgraded to sierra hoping that may help with no luck.
I read others had been successfully using imac15,1 so thought I’d give it a go. My system has now been stable for the last week, no crashes during sleep, no crashes when waking

CPU i7 4790
MB GA Z97N gaming 5
2 x 4gb G.skill Ripjaws PC3 14900
NVDIA GTX 950 SC+
macOS 10.12.4 / Windows 10 dual boot
WiFi BCM94360CD

I changed my system identifier using clover configurator. Created new SMBIOS settings using the guide found here https://www.tonymacx86.com/threads/guide-how-to-configure-your-systems-smbios-correctly.198155/

Lilu and NVIDIAGraphicsFixup kexts in EFI/CLOVER/kexts/10.12 from post #304 https://www.tonymacx86.com/threads/...5-or-imac-17-system-definition.183113/page-31

For power management, I followed this guide https://www.tonymacx86.com/threads/mavericks-native-cpu-igpu-power-management.128926/#post1142796

For audio I used Multibeast and then followed instructions from this thread https://www.tonymacx86.com/threads/no-audio-after-sleep-wake-realtek-alc-applehda-fixes.151504/
Audio after wake from here https://www.tonymacx86.com/threads/...p-on-1150-and-possibly-other-realteks.170063/


Thanks so much to everyone who has contributed, so happy to have finally solved this long standing problem.
 
Last edited:
My sense is that the sleepimage issue, discussed in:


... is relevant to this topic.

In a nutshell, the command:

sudo ln -s /dev/null /var/vm/sleepimage​

... will disable sleepimage creation; while it may or may not be related to the KP after wake issue per se, I'm sure it somehow enters the picture.

Can't hurt to try.
 
Has anyone with a z97x Gaming 5 board been able to find a BIOS newer than f8a? That's the latest on Tweaktown, but it's from 2015 and doesn't solve this issue.
 
@davpel

Does at least shorter sleep periods work?
Is AppleLPC.kext correctly running?
Did you setup CPU PM correctly (Ssdtprgen or the newer guide)?

Or try removing unnecessary USB devices for testing.
 
Status
Not open for further replies.
Back
Top