Navaira Posted September 28, 2015 Share Posted September 28, 2015 Hello, I'm running 10.11 GM on GA-Z97N-WIFI. Everything works perfectly well except sleep. When I put the machine to sleep, it wakes up again a few seconds later. The weirdest thing: I managed to put it to sleep a few times before, once it restarted upon wake, but now it just won't sleep no matter what I do. NullCPUPowerManagement makes no difference, that's as far as I could get on my own. Here's the log: Sep 28 15:01:03 Mac-Pro kernel[0] <Notice>: Wake reason: EHC2 Sep 28 15:01:03 Mac-Pro WindowServer[186] <Warning>: CGXDisplayDidWakeNotification [108063947057]: posting kCGSDisplayDidWake Sep 28 15:01:11 Mac-Pro kernel[0] <Notice>: ARPT: 116.278124: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake Sep 28 15:01:11 Mac-Pro kernel[0] <Notice>: ARPT: 116.778173: IOPMPowerSource Information: onWake, SleepType: Normal Sleep, Sep 28 15:01:11 Mac-Pro sharingd[335] <Notice>: 15:01:11.902 : Starting AirDrop server for user 501 on wake Sep 28 15:01:12 Mac-Pro ntpd[239] <Notice>: wake time set +0.648099 s So it looks like USB is the problem (or is it my network card?). Wake on LAN is off both in BIOS and System Prefs. I looked it up and apparently I need to do an edit on my DSDT. Problem is, I don't know how to do that. I looked at repositories with patches, but none seems to cover my model. And I don't know just from looking at those millions of lines of strange code what to do. Help? I attach my DSDT.aml. Thanks in advance for any help! DSDT.aml.zip Link to comment Share on other sites More sharing options...
IronManJFF Posted September 28, 2015 Share Posted September 28, 2015 Was this a clean install or an upgrade if so please specify from which OS version you updated. The reason i am asking is that unless Apple has reverted to ntpd to sync the clock it should be using pacemaker instead ... but ntpd is settting the wake time Sep 28 15:01:12 Mac-Pro ntpd[239] <Notice>: wake time set +0.648099 s Link to comment Share on other sites More sharing options...
Navaira Posted September 28, 2015 Author Share Posted September 28, 2015 Oh, interesting. I started from Yosemite 10.10.5 and went through all public betas, then at the end with GM came out I installed that on top of everything. While I was using Yosemite sleep generally worked but every few days I'd get a memory leak and restart after a few minutes from the wake. Previous Cappy betas wouldn't even give me that much, restart on wake immediately. Link to comment Share on other sites More sharing options...
Navaira Posted September 28, 2015 Author Share Posted September 28, 2015 OK this is embarrassing but I just found that "allow Bluetooth devices to wake this computer" has somehow switched itself on... disabled it and now my Hac falls asleep and stays asleep. I might be back if things start popping up again but for now (extensive testing of 1 minute) it works Sorry. Link to comment Share on other sites More sharing options...
IronManJFF Posted September 28, 2015 Share Posted September 28, 2015 USB Bluetooth thingy ? Is it connected in a USB3 or USB2 port ? Please make a signature with your build specs Link to comment Share on other sites More sharing options...
Navaira Posted September 28, 2015 Author Share Posted September 28, 2015 Done Sir! So far it survived a 5-minute sleep and a 3-hour one. Curious what happens when I put it to sleep for the night. Am I right that short sleep and long sleep should be the same with darkwake=0? (As in no activity at all during sleep) Edit: The Azurewave/BCM94352 appears as a USB device indeed, it's plugged into a half mini PCI Express slot. Link to comment Share on other sites More sharing options...
IronManJFF Posted September 29, 2015 Share Posted September 29, 2015 The Wifi part should be reported as PCI and the Bluetooth part as USB .. you can verify this in System Report darkwake = I have never messed with it ... you can check your power managment value by issuing this command in terminal pmset -g Check PJALM Patch Repo for a DSDT for your motherboard http://www.pjalm.com/forums/ Link to comment Share on other sites More sharing options...
Navaira Posted September 30, 2015 Author Share Posted September 30, 2015 pmset -g gives me this: AC Power -1* Currently in use: hibernatemode 0 womp 0 networkoversleep 0 sleep 0 Sleep On Power Button 1 ttyskeepawake 1 hibernatefile /var/vm/sleepimage disksleep 0 displaysleep 15 Meanwhile the computer survived a few sleeps, including overnight, but then rebooted upon wake #4. Judging by what I have read here and elsewhere, my memory is to blame, as it's unsupported officially by my motherboard (Crucial Ballistix Sport 16 GB DDR3 BLS2CP8G3D1609DS1S00CEU). The PJALM repo sadly doesn't have a DSDT for my mobo nothing for Z97N, only Z97X. Link to comment Share on other sites More sharing options...
Navaira Posted September 30, 2015 Author Share Posted September 30, 2015 Since I just had a pleasure of post-wake crash, here's the log: Anonymous UUID: Wed Sep 30 19:31:22 2015 *** Panic Report *** panic(cpu 6 caller 0xffffff801152a2be): "a freed zone element has been modified in zone kalloc.64: expected 0xffffff805198d240 but found 0xefffff805198d240, bits changed 0x1000000000000000, at offset 0 of 64 in element 0xffffff805198d3c0, cookies 0x3f0011eda1df7c78 0x535219ccbab2525"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3247.1.106/osfmk/kern/zalloc.c:496 Backtrace (CPU 6), Frame : Return Address 0xffffff920440ba90 : 0xffffff80114e5357 0xffffff920440bb10 : 0xffffff801152a2be 0xffffff920440bb80 : 0xffffff8011529a0e 0xffffff920440bbc0 : 0xffffff8011528b82 0xffffff920440bcf0 : 0xffffff8011a3be0b 0xffffff920440bd10 : 0xffffff8011a3c8ea 0xffffff920440bd40 : 0xffffff8011a897d3 0xffffff920440bd70 : 0xffffff8011aa01ee 0xffffff920440bdc0 : 0xffffff8011aa1bfe 0xffffff920440bdf0 : 0xffffff8011a9c5e6 0xffffff920440be50 : 0xffffff8011aa9e72 0xffffff920440be90 : 0xffffff8011aa9058 0xffffff920440bec0 : 0xffffff8011a9bd4d 0xffffff920440bf00 : 0xffffff8011aa9b10 0xffffff920440bf40 : 0xffffff8011ab5091 0xffffff920440bf80 : 0xffffff8011ab5186 0xffffff920440bfb0 : 0xffffff80115d14b7 BSD process name corresponding to current thread: kernel_task Boot args: nvda_drv=1 kext-dev-mode=1 csr-active-config=0x67 darkwake=0 Mac OS version: 15A282a Kernel version: Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64 Kernel UUID: Kernel slide: 0x0000000011200000 Kernel text base: 0xffffff8011400000 __HIB text base: 0xffffff8011300000 System model name: iMac14,1 (Mac-031B6874CF7F642A) System uptime in nanoseconds: 8269549434455 last loaded kext at 2981596278755: com.apple.filesystems.udf 2.5 (addr 0xffffff7f9428b000, size 266240) last unloaded kext at 214125657999: com.apple.driver.AppleUSBMergeNub 900.4.1 (addr 0xffffff7f92a70000, size 12288) loaded kexts: com.nvidia.CUDA 1.1.0 com.nvidia.web.GeForceWeb 10.0.7 com.nvidia.web.NVDAGK100HalWeb 10.0.7 com.nvidia.web.NVDAResmanWeb 10.0.7 com.no-one.BrcmPatchRAM2 2.0.0d1 com.wibu.codemeter.driver.CmUSBMassStorage 5.20.71 org.rehabman.driver.FakePCIID 1.2.0 org.netkas.driver.FakeSMC 1372 org.tgwbd.driver.NullCPUPowerManagement 1.0.0d2 com.apple.filesystems.udf 2.5 com.apple.filesystems.msdosfs 1.10 com.apple.driver.AppleBluetoothMultitouch 90.3 com.apple.filesystems.autofs 3.0 com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.4.0f4 com.apple.driver.AppleHDA 272.50 com.apple.driver.AppleUpstreamUserClient 3.6.1 com.apple.driver.AppleMCCSControl 1.2.13 com.apple.driver.pmtelemetry 1 com.apple.iokit.IOUserEthernet 1.0.1 com.apple.driver.AppleOSXWatchdog 1 com.apple.iokit.IOBluetoothSerialManager 4.4.0f4 com.apple.Dont_Steal_Mac_OS_X 7.0.0 com.apple.driver.AppleHV 1 com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0 com.apple.driver.Apple16X50ACPI 3.2 com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0 com.apple.iokit.SCSITaskUserClient 3.7.7 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0 com.apple.BootCache 37 com.apple.iokit.IOAHCIBlockStorage 2.8.0 com.apple.driver.AirPort.Brcm4360 1000.12.1a21 com.apple.driver.AppleAHCIPort 3.1.5 com.apple.driver.usb.AppleUSBEHCIPCI 1.0.1 com.apple.driver.AppleACPIButtons 4.0 com.apple.driver.AppleRTC 2.0 com.apple.driver.AppleHPET 1.8 com.apple.driver.AppleSMBIOS 2.1 com.apple.driver.AppleAPIC 1.7 com.apple.nke.applicationfirewall 163 com.apple.security.quarantine 3 com.apple.security.TMSafetyNet 8 com.apple.driver.IOBluetoothHIDDriver 4.4.0f4 com.apple.driver.AppleMultitouchDriver 304.9 com.apple.driver.AppleHIDTransport 5 com.apple.kext.triggers 1.0 com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.4.0f4 com.apple.driver.DspFuncLib 272.50 com.apple.kext.OSvKernDSPLib 525 com.apple.driver.AppleSMBusController 1.0.14d1 com.apple.iokit.IOSMBusFamily 1.1 com.apple.iokit.IOAcceleratorFamily2 203.7.1 com.apple.AppleGraphicsDeviceControl 3.11.31 com.apple.iokit.IOSurface 108.0.1 com.apple.driver.AppleHDAController 272.50 com.apple.iokit.IOHDAFamily 272.50 com.apple.iokit.IONDRVSupport 2.4.1 com.apple.iokit.IOGraphicsFamily 2.4.1 com.apple.iokit.IOBluetoothFamily 4.4.0f4 com.apple.driver.CoreCaptureResponder 1 com.apple.driver.AppleSMC 3.1.9 com.apple.driver.IOPlatformPluginLegacy 1.0.0 com.apple.driver.IOPlatformPluginFamily 6.0.0d7 com.apple.driver.Apple16X50Serial 3.2 com.apple.iokit.IOSerialFamily 11 com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0 com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.7.7 com.apple.iokit.IOBDStorageFamily 1.8 com.apple.iokit.IODVDStorageFamily 1.8 com.apple.iokit.IOCDStorageFamily 1.8 com.apple.iokit.IOSCSIBlockCommandsDevice 3.7.7 com.apple.driver.AppleUSBAudio 301.52 com.apple.iokit.IOAudioFamily 203.8 com.apple.vecLib.kext 1.2.0 com.apple.driver.usb.IOUSBHostHIDDevice 1.0.1 com.apple.iokit.IOUSBMassStorageDriver 1.0.0 com.apple.iokit.IOSCSIArchitectureModelFamily 3.7.7 com.apple.driver.usb.AppleUSBHostCompositeDevice 1.0.1 com.apple.driver.usb.AppleUSBHub 1.0.1 com.apple.iokit.IO80211Family 1100.23 com.apple.driver.mDNSOffloadUserClient 1.0.1b8 com.apple.iokit.IONetworkingFamily 3.2 com.apple.driver.corecapture 1.0.4 com.apple.iokit.IOAHCIFamily 2.8.0 com.apple.driver.usb.AppleUSBEHCI 1.0.1 com.apple.iokit.IOUSBFamily 900.4.1 com.apple.driver.usb.AppleUSBXHCIPCI 1.0.1 com.apple.driver.usb.AppleUSBXHCI 1.0.1 com.apple.iokit.IOUSBHostFamily 1.0.1 com.apple.driver.AppleUSBHostMergeProperties 1.0.1 com.apple.driver.AppleEFINVRAM 2.0 com.apple.driver.AppleEFIRuntime 2.0 com.apple.iokit.IOHIDFamily 2.0.0 com.apple.security.sandbox 300.0 com.apple.kext.AppleMatch 1.0.0d1 com.apple.driver.AppleKeyStore 2 com.apple.driver.AppleMobileFileIntegrity 1.0.5 com.apple.driver.AppleCredentialManager 1.0 com.apple.driver.DiskImages 414 com.apple.iokit.IOStorageFamily 2.1 com.apple.iokit.IOReportFamily 31 com.apple.driver.AppleFDEKeyStore 28.30 com.apple.driver.AppleACPIPlatform 4.0 com.apple.iokit.IOPCIFamily 2.9 com.apple.iokit.IOACPIFamily 1.4 com.apple.kec.Libm 1 com.apple.kec.pthread 1 com.apple.kec.corecrypto 1.0 Link to comment Share on other sites More sharing options...
wastez Posted October 4, 2015 Share Posted October 4, 2015 Do you have a solution? Because i fixed it on my laptop. Took a long time to get it out. You have to edit in your dsdt the _prw section in your usb devices! Deleting the _prw section does not help! Link to comment Share on other sites More sharing options...
Navaira Posted October 9, 2015 Author Share Posted October 9, 2015 Oh I am glad you fixed it – can you tell me what exactly you have done? Link to comment Share on other sites More sharing options...
wastez Posted October 21, 2015 Share Posted October 21, 2015 Yes sure. You need to edit the _prw section in the dsdt on the devices which wakes the system. If your dsdt looks like this: Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake { 0x0D, 0x04 }) change it to: Name (_PRW, Package (0x02) // _PRW: Power Resources for Wake { 0x09, 0x04 }) 1 Link to comment Share on other sites More sharing options...
Prasys Posted November 23, 2015 Share Posted November 23, 2015 Turn off PowerNap Can you please take a look under wifi in system profiler , if wake on wireless is supported and enabled Link to comment Share on other sites More sharing options...
wastez Posted November 24, 2015 Share Posted November 24, 2015 I have this patch but my Z77NWIFI immediately wake up from sleep! Please help me! Did you check which device wakes your system? Some information: Of course Powernap has to be switched off, there is no support on a hackintosh for it. The best would be to remove it from the X86Platformplugin.kext plist setting for your system. Link to comment Share on other sites More sharing options...
Codinger Posted January 8, 2016 Share Posted January 8, 2016 Edit EHC1 and EHC2 to EH01 and EH02 and XHC1 to XHC Link to comment Share on other sites More sharing options...
VoiletDragon Posted October 7, 2016 Share Posted October 7, 2016 Don't need EH01 & EH02. Only need XHC set XHCI to Enabled not Auto. Ive done appropriate patches for the Z97N-WIFI & H97N-WIFI. patches.zip Link to comment Share on other sites More sharing options...
espacioami Posted October 19, 2016 Share Posted October 19, 2016 Don't need EH01 & EH02. Only need XHC set XHCI to Enabled not Auto. Ive done appropriate patches for the Z97N-WIFI & H97N-WIFI. VoiletDragon, can you share your DSDT? i have a Z97N-WIFI and with my DSDT my USB 3.0 ports has USB 2.0 speed... Thanks in advanced Link to comment Share on other sites More sharing options...
Recommended Posts