Contribute
Register

10.9.1 Auto Sleeps, then wakes right back up!

Status
Not open for further replies.
Joined
Jun 30, 2011
Messages
17
Motherboard
Asrock Fatal1ty Z77 Professional
CPU
i7 3770K
Graphics
EVGA GTX 680 Signature
Mac
  1. MacBook Pro
Classic Mac
  1. 0
Mobile Phone
  1. iOS
System:

Motherboard - Asrock Fatal1ty Z77 Professional (Patched UEFI v1.70)
CPU - Intel Core i7 3770k
GPU - EVGA GTX680 Signature
WiFi - TP-Link TL-WDN4800

USB Devices currently connected:

Keyboard - Razer Anansi
Mouse - Razer Naga
Webcam - Logitech HD Pro C920
Headset - Plantronics Gamecom 780

Howdy guys,

I have my 10.9.1 build nearly complete using components above.

Trying to solve sleep issues. I have attempted most fixes that I have been able to find using search, but still have a some problems.

First off, like many other Hackintosh builders with sleep issues, I am able to put the system to sleep manually from the Apple menu. Additionally, a single press of a mouse button or space bar brings it right out of sleep. I can let it sleep overnight with no issues doing it this manual way.

I would like to get auto sleep working though.

Initially setting auto sleep in System Preferences > Energy Saver would put the monitors to sleep, but the CPU stays powered up. If I let it sit more than a couple of minutes, I had to hard reset the CPU, as the monitors will not come out of sleep mode.

I have the following three options on my Energy Saver window:

1) Put hard disks to sleep when possible (checked)
2) Wake for network access (not checked)
3) Start up automatically after a power failure (checked)

I have left the second option unchecked as I do not want the system to Wake On LAN.

I made the following changes:

Disabled Legacy USB Support in UEFI
Added “darkwake=8” to Kernel Flags in /Extra/org.chameleon.Boot.plist

So when sleep time arrives, the monitors go dark, and a few seconds later the CPU goes to sleep, fans shut down… Everybody is happy and I’ve scored another victory in my quest to get this thing running at 100%… Actually, this is the LAST thing I want to get working, as everything else is running brilliantly!

And then, exactly 15 seconds later, it fires right back up out of sleep, monitors come on… Another chunk of hair gets ripped out of my head…

So I start digging again, trying to find answers… So far, I’ve found nothing… So here I am, asking once again, how do I fix MY sleep problem?

Here is some output of a few commands I have seen folks ask for when troubleshooting these issues:

pmset -g assertions >

Code:
1/17/14, 9:46:29 PM HST  
Assertion status system-wide:
   BackgroundTask                 0
   PreventDiskIdle                0
   ApplePushServiceTask           0
   UserIsActive                   0
   PreventUserIdleDisplaySleep    0
   InteractivePushServiceTask     0
   PreventSystemSleep             0
   ExternalMedia                  0
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Kernel Assertions: 0x4=USB
   id=501  level=255 0x4=USB mod=1/17/14, 9:48 PM description=EHC2 owner=AppleUSBEHCI
   id=502  level=255 0x4=USB mod=1/17/14, 9:42 PM description=EHC1 owner=AppleUSBEHCI

syslog |grep -i “Wake reason” >

Code:
Jan 17 20:54:15 daves-mac-pro kernel[0] <Debug>: Wake reason: GLAN EHC2
Jan 17 21:21:26 daves-mac-pro kernel[0] <Debug>: Wake reason: GLAN EHC2
Jan 17 21:24:36 daves-mac-pro kernel[0] <Debug>: Wake reason: RP02 RP03 RP04 RP06 RP07 PEGP PEG1 PEG2 PEG3 P0P1 BR40 ethernet (Network)
Jan 17 21:24:55 daves-mac-pro kernel[0] <Debug>: Ethernet [AppleBCM5701Ethernet]: Wake reason ethernet - bonjour - link-up timeout
Jan 17 21:27:21 daves-mac-pro kernel[0] <Debug>: Wake reason: ?
Jan 17 21:39:02 daves-mac-pro kernel[0] <Debug>: Wake reason: RP02 RP03 RP04 RP06 RP07 PEGP PEG1 PEG2 PEG3 P0P1 BR40 ethernet (Network)
Jan 17 21:39:03 daves-mac-pro kernel[0] <Debug>: Ethernet [AppleBCM5701Ethernet]: Wake reason ethernet - bonjour - link-up timeout

Seems easy enough… My Ethernet cards are waking up the system…

Trouble is… My UEFI doesn’t have an obvious setting to disable “Wake On LAN”

And if I disable the onboard NIC cards, I can’t log in to the App Store, cause I can’t get 10.9.1 to recognize my T-Link WiFi card as a “Built In” card… It will set it as en0 all day, but always shows Builtin=False…

Is there any other reason I would be seeing these particular “Wake reason” outputs?

I am able to provide whatever you need… System screen captures, UEFI screen captures, first born child (be warned, he’s a monster!) whatever it takes to get this working! Just looking for someone to guide me in this troubleshooting adventure, cause it’s driving me insane…

Thanks all!
 
I added a custom SSDT for my CPU today to handle Ivy Bridge Power Management... I used the ssdtPRGen script to generate the ssdt file. Renamed the file to ssdt.aml. Also added the DropSSDT=Yes to my Boot.plist file, and changed my system definition from MacPro 3,1 to MacBook Pro 9,1.

Didn't seem to make any change.

This evening I went and grabbed an Apple wired keyboard, with the number pad, and plugged that into the system, and now everything is working great...

Makes no sense... Is it possible the Razer Anansi keyboard was making a difference? Or possibly the fact that I am now running the Razer Naga mouse through the apple keyboard rather than directly plugged into the back of the MB?

Could it be just a fluke that everything is working fine now?

Is anyone willing to look at all my settings and let me know if there is anything else I need to be looking at?

I'll go ahead and post up my Boot.plist and smbios.plist files here:

org.chameleon.Boot.plist
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>DropSSDT</key>
	<string>Yes</string>
	<key>GraphicsEnabler</key>
	<string>No</string>
	<key>IGPEnabler</key>
	<string>Yes</string>
	<key>Kernel</key>
	<string>mach_kernel</string>
	<key>Kernel Flags</key>
	<string>PCIRootUID=1</string>
	<key>Legacy Logo</key>
	<string>Yes</string>
	<key>Timeout</key>
	<string>2</string>
	<key>UseKernelCache</key>
	<string>Yes</string>
	<key>EthernetBuiltIn</key>
	<string>Yes</string>
	<key>device-properties</key>
	<string>5700000001000000010000004b0000000100000002010c00d041030a0000000001010600071c0101060000000101060000060101060000007fff0400160000006200750069006c0074002d0069006e0000000500000001</string>
</dict>
</plist>

smbios.plist
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>SMbiosdate</key>
	<string>21/03/12</string>
	<key>SMbiosvendor</key>
	<string>Apple Inc.</string>
	<key>SMbiosversion</key>
	<string>MBP91.88Z.00D3.B00.1203211536</string>
	<key>SMboardproduct</key>
	<string>Mac-4B7AC7E43945597E</string>
	<key>SMfamily</key>
	<string>MacBook Pro</string>
	<key>SMmanufacturer</key>
	<string>Apple Inc.</string>
	<key>SMproductname</key>
	<string>MacBookPro9,1</string>
	<key>SMserial</key>
	<string>C02KN8EVF1G4</string>
	<key>SMsystemversion</key>
	<string>1.0</string>
</dict>
</plist>

I have attached my current IOReg file as well...

Just looking to see if everything to do with Power Management is looking good... If there is anything that stands out as incorrect, or big pointers as to why I might have troubles in the future. At some point I'd just like to use the computer, rather than tinker with polishing up the build :) This has been a rewarding challenge, but I just feel like I am so close at this point to having everything where I want it, I just want it to be done!

I appreciate any assistance!
 

Attachments

  • dam718_IOReg_18JAN2014.ioreg
    2.8 MB · Views: 104
Spoke too soon... Issue is still ongoing...

Believe the issue is isolated to the onboard NIC's (Two Broadcom 57781 Adapters on MB)

Not sure exactly which of the two is the culprit. Or why, to be honest... Both of them have no connection, which would explain the link-up timeout error (no connection)... But then again, why is it even looking at those interfaces for a Bonjour link-up at all?

At least I don't think I have any issues getting the computer to auto-sleep... Now it's just a matter of getting it to STAY asleep!

Very frustrating

Again, all help is appreciated!
 
Status
Not open for further replies.
Back
Top