Contribute
Register

Reset/restart after wakeup from sleep in Haswell system / 10.9.4 / ASUS B85M-G

Status
Not open for further replies.
Joined
Jan 18, 2011
Messages
239
Motherboard
B85M-G
CPU
Core i7 4770
Graphics
nVidia 1050 Ti
Mac
  1. iMac
  2. MacBook Pro
Hi,

i was able to fully enable this board for Mavericks, thanks to the great help of RehabMan and the tutorials by Toleda.

The only thing that is not working is Powernap. Mabe I just missed a special power mode or dark wake option for that.

Here is a mostly fully working DSDT/SSDT/clover config for the Asus B85M-G + a discrete PCIE graphics card, in my case ATI. If you use an nvidia, you maybe need to patch the GFX0-device in the dsdt.

The IntelHD4600 is detected but shows a lot of random pixels, so for now you should disable internal GFX.

Below are the files you will need:
 

Attachments

  • dsdt-ssdts.zip
    26.8 KB · Views: 124
  • clover_stuff.zip
    156.7 KB · Views: 98
  • AppleHDA.kext.zip
    830.8 KB · Views: 82
Hi,

I finally installed OSX 10.9.4 on my new system, a Core i7 4770 haswell, Intel HD4600, ATI HD5570, clover boot loader r2795 on a ASUS B85M-G (intel B85) main board... My last problem is that the system restarts after waking up from sleep.

Everything seems to work good, AppleLPC is loaded and IntelGraphics HD4600 has proper power management using AGPM:


In clover I use the kexts:
- NullCPUPM (since I use kernel CPU PM)
- recent GenericUSBXHCI (I already tried boot arg switches "-gux_defer_usb2" and "-gux_no_idle" without any effect)

In clover config I enabled:
- AsusCPUPM / AppleCPUPM patch
- Kernel CPU PM patch / also patched the kernel
- AppleRTC patch

I use an ATI HD5570 with Eulemur personality which seems to work out of the box. Display standby works fine. I watched CPU power with intel power gadget and it seems to work alright (because of Kernel CPU PM). I tried so many approaches, no one helped so far.

Do you have any idea how I can fix this restart after wakeup problem? Should I use some kind of sleep enabler? Or manually patch AppleRTC?

Below my DSDT, my boot log and the clover log.

Thanks for help!

NullCPUPowerManagement.kext should not be used if you expect sleep to work...

By AsusCPUPM, I assume you mean AsusAICPUPM
I don't know what AppleCPUPM patch is in Clover (I think no such thing).
I don't know what Kernel CPU PM patch is... (again, no such thing)
 
NullCPUPowerManagement.kext should not be used if you expect sleep to work...

By AsusCPUPM, I assume you mean AsusAICPUPM
I don't know what AppleCPUPM patch is in Clover (I think no such thing).
I don't know what Kernel CPU PM patch is... (again, no such thing)

Thanks for these suggestions. Yes AsusCPUPM= AsusAICPUPM. With "Kernel CPU PM" I mean the "KernelPM" switch is Clover, also called XCPM or something. I thought AsusAUCPUPM is another name for the AppleIntelCPUPM patch for enabling XCPM? Because in the clover boot menu, it is named like this... Ok I seem to be wrong.

So in conclusion I need to
- remove NullCPUPM
- patch AppleIntelCPUPM for Asus write locked boards and also KernelPM?

Any ideas where to find the most recent patches? Thanks.
 
Thanks for these suggestions. Yes AsusCPUPM= AsusAICPUPM. With "Kernel CPU PM" I mean the "KernelPM" switch is Clover, also called XCPM or something. I thought AsusAUCPUPM is another name for the AppleIntelCPUPM patch for enabling XCPM? Because in the clover boot menu, it is named like this... Ok I seem to be wrong.

I asked for clarification because there is both a KernelPm (not KernelPM) and KernelCPU option in Clover. KernelPm is specific to Haswell CPUs and Ivy CPUs (when using -xcpm kernel flag). KernelCPU is for older CPUs (not sure how old), and not appropriate for modern CPUs.

AsusAICPUPM is not necessary with Haswell CPUs because AppleIntelCPUPowerManagement is not used with XCPM (enabled automatically for Haswell CPUs).

So in conclusion I need to
- remove NullCPUPM
- patch AppleIntelCPUPM for Asus write locked boards and also KernelPM?

I would start by removing NullCPUPowerManagement.kext (don't forget to rebuild cache).

Then check your config.plist to be certain KernelCPU is NOT true. The only kernel patch you need is KernelPm and even it is automatically enabled in the case of locked CPU MSR 0xE2.

Any ideas where to find the most recent patches? Thanks.

No need to patch anything on-disk with Clover. Patches can be accomplished with config.plist only.
 
RehabMan, thanks for your time!

I managed to load the system without NullCPUPM, simply by placing fakesmc to clover/ext... Didn't realize that clover still needs it, as it injects smbios by itself...

I checked kextstat, no nullcpupm is loaded anymore. I also did NOT check "KernelCPU". I added a proper SSDT by following Toleda's guide here: http://www.tonymacx86.com/mavericks...vericks-native-cpu-igpu-power-management.html

But still the computer still restarts after wakeup, and now it even wake ups immediately after going to sleep.

No more idea. Can you help?

In case it is interesting, here is also my original, unpatched dsdt:
 

Attachments

  • DSDT_orig.aml.zip
    19.3 KB · Views: 74
RehabMan, thanks for your time!

I managed to load the system without NullCPUPM, simply by placing fakesmc to clover/ext... Didn't realize that clover still needs it, as it injects smbios by itself...

I checked kextstat, no nullcpupm is loaded anymore. I also did NOT check "KernelCPU". I added a proper SSDT by following Toleda's guide here: http://www.tonymacx86.com/mavericks...vericks-native-cpu-igpu-power-management.html

But still the computer still restarts after wakeup, and now it even wake ups immediately after going to sleep.

No more idea. Can you help?

In case it is interesting, here is also my original, unpatched dsdt:

Post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html
 
Ok, here is the ioreg:
 

Attachments

  • ioreg.zip
    2.2 MB · Views: 60
Uh strange I did use Xcode ioreg and followed the steps, but now a new version with the ioregexplorer that is provided in the thread. The file size is a lot smaller now. I can open both. Anyway, here the new ioreg:
 

Attachments

  • ioregnew.zip
    525 KB · Views: 75
Uh strange I did use Xcode ioreg and followed the steps, but now a new version with the ioregexplorer that is provided in the thread. The file size is a lot smaller now. I can open both. Anyway, here the new ioreg:

Kind of strange to have your AMD device named IGPU!! IGPU is used only for Intel integrated... Probably will cause a mismatch for power management (AGPM will be trying to power manage your AMD device as if it was Intel). I don't have any discrete card setups, so I could be wrong, but that is my understanding... Discrete should be GFX0. Maybe you've patched kexts to work around this issue?

Also, iMac14,2 usually has an nvidia, so that could cause issues too...

I would avoid having USB devices plugged in when testing sleep...

And you're using GenericUSBXHCI.kext... try with -gux_defer_usb2.

Third party system software is always suspect. What is TCNear (tc.tctechnologies.driver.TCNear)? Same question for "at.obdev.nke.LittleSnitch"?
 
Status
Not open for further replies.
Back
Top