Jump to content
17 posts in this topic

Recommended Posts

Hi All,

 

I have spent lots of time of this and read all of the guides to fixing it and still no dice. The problem is that my system immediately wakes back up after being put to sleep.

 

My system:

 

ASRock Z97 EXTREME6, Socket-1150 1 1
Intel Core i7-4790K 1 1
Corsair Vengeance Pro DDR3 2400MHz 16GB 1

 

From pmset -g log:

 

UUID: 9FA1E4A9-8AAF-4002-9E49-3DAB8DCB9D97

2017-02-19 15:44:14 +0100 Sleep               Entering Sleep state due to 'Software Sleep pid=116': Using AC 12 secs   

2017-02-19 15:44:17 +0100 PM Client Acks      Delays to Sleep notifications: [com.apple.apsd is slow(3008 ms)]           

2017-02-19 15:44:25 +0100 Kernel Client Acks  Delays to Sleep notifications: [powerd is slow(3009 ms)] [iONVMeController driver is slow(msg: SetState to 0)(605 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 0)(1363 ms)]           

2017-02-19 15:44:25 +0100 Assertions          Kernel Idle sleep preventers: IODisplayWrangler          

2017-02-19 15:44:25 +0100 Notification        Display is turned on                                                                 

2017-02-19 15:44:25 +0100 Assertions          PID 191(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd000082ce [system: DeclUser BGTask SRPrevSleep kCPU kDisp]          

2017-02-19 15:44:25 +0100 Assertions          PID 191(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd000082ce [system: DeclUser BGTask kDisp]          

2017-02-19 15:44:26 +0100 Wake                Wake from Normal Sleep [CDNVA] due to PXSX/: Using AC           

2017-02-19 15:44:26 +0100 HibernateStats      hibmode=0 standbydelay=0                                                             239       

2017-02-19 15:44:26 +0100 Kernel Client Acks  Delays to Wake notifications: [PRT1 driver is slow(msg: SetState to 2)(304 ms)] [AppleUSB30XHCIPort driver is slow(msg: SetState to 3)(322 ms)] [AppleUSB30XHCIPort driver is slow(msg: DidChangeState to 3)(301 ms)] [AppleUSB30XHCIPort driver is slow(msg: SetState to 3)(322 ms)] [AppleUSB30XHCIPort driver is slow(msg: DidChangeState to 3)(301 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(431 ms)] [AppleUSB20HubPort driver is slow(msg: SetState to 3)(449 ms)] [PRT0 driver is slow(msg: SetState to 2)(1129 ms)] [PRT0 driver is slow(msg: SetState to 2)(1129 ms)]           

2017-02-19 15:44:26 +0100 Assertions          PID 63(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00  id:0x0xd000082d7 [system: DeclUser BGTask SRPrevSleep kCPU kDisp]          

 

From ioreg -l | grep PCI, the relevant device seems to be:

 

+-o PXSX@0  <class IOPCIDevice, id 0x1000001d6, registered, matched, active, busy 0 (5718 ms), retain 12>

    | |   |     |   "acpi-path" = "IOACPIPlane:/_SB/PCI0@0/RP07@1c0006/PXSX@0"

    | |   |     |   "IOPCIExpressLinkCapabilities" = 17038354

    | |   |     |   "IOPCIPMCSState" = 33032

    | |   |     |   "IOPCIExpressLinkStatus" = 4114

    | |   |     |   "IOPCIExpressCapabilities" = 18

    | |   |     |   "IOInterruptControllers" = ("io-apic-0","IOPCIMessagedInterruptController")

    | |   |     |   "IOPCIResourced" = Yes

    | |   |     |   "IOPCIMSIMode" = Yes

    | |   |     +-o PXSX@00000000  <class AppleUSBXHCIPCI, id 0x10000025a, registered, matched, active, busy 0 (5223 ms), retain 89>

    | |   |       |   "IOClass" = "AppleUSBXHCIPCI"

    | |   |       |   "CFBundleIdentifier" = "com.apple.driver.usb.AppleUSBXHCIPCI"

    | |   |       |   "IOProviderClass" = "IOPCIDevice"

    | |   |       |   "IOPCIClassMatch" = "0x0c033000"

    | |   |       |   "IOPCITunnelCompatible" = Yes

    | |   |       |   "IOPCIPauseCompatible" = Yes

    | |   |       |   "device-properties" = {"AAPL,current-in-sleep"=<e803>,"AAPL,current-extra"=<800c>,"acpi-path"="IOACPIPlane:/_SB/PCI0@0/RP07@1c0006/PXSX@0","built-in"=<00>,"AAPL,clock-id"=<02>,"device_type"=<"XHCI">,"acpi-device"="IOACPIPlatformDevice is not serializable","AAPL,current-available"=<3408>}

 

From the DSDT, the relevant portion of code seems to be:

 

 Scope (_SB.PCI0.RP07)
    {
        Method (_INI, 0, NotSerialized)  // _INI: Initialize
        {
            Store (LTR7, LTRE)
            Store (PML7, LMSL)
            Store (PNL7, LNSL)
            Store (OBF7, OBFF)
        }
 
        Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
        {
            Return (GPRW (0x09, 0x04))
        }
    }
 
As far as I understand, the DSDT is correctly configured to prevent the PCI device from waking the machine up. Yet it still does. What am I doing wrong?
 
Thanks!

see the folder, replace and test it

CLOVER.zip

 

if dont work, run in terminal

log show --style syslog | fgrep "Wake reason"

about audio, use applealc, only kext and DSDT patch, i apply codec 1

Thank you MaLd0n for looking at this issue.

 

When trying to sleep now, the machine goes down, then instantly wakes up again as before. However, this time, it remains in some kind of GPU power cycle, with the monitor turning on and off. Eventually I am forced to restart the machine.

 

if dont work, run in terminal
log show --style syslog | fgrep "Wake reason"

 

 

This seems to be missing an appropriate entry. Here are the entries surrounding the sleep (at 09:29:45)

 

2017-02-20 09:29:45.676489+0100  localhost tccd[392]: (tccd) Created Activity ID: 0x80000000000041f0, Description: SecTrustEvaluateIfNecessary

2017-02-20 09:29:45.677724+0100  localhost tccd[392]: (Security) [com.apple.securityd.SecError]  [leaf ValidLeaf] [ca1 ValidIntermediates] [root AnchorTrusted]

2017-02-20 09:29:45.677873+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677890+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677909+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677917+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677957+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677964+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677976+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677983+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.677998+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678005+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678019+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678025+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678049+0100  localhost tccd[392]: (Security) [com.apple.securityd.pinningQA] could not enable test hierarchy: ApplePinningAllowTestCertsAppleSWUpdateSigning not true

2017-02-20 09:29:45.678232+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678245+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678264+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678271+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678286+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:29:45.678296+0100  localhost tccd[392]: (Security) [com.apple.securityd.security_exception] CSSM Exception: -2147411889 CSSMERR_CL_UNKNOWN_TAG

2017-02-20 09:31:49.951374+0100  localhost kernel[0]: PMAP: PCID enabled

 

2017-02-20 09:31:49.951376+0100  localhost kernel[0]: PMAP: Supervisor Mode Execute Protection enabled

 

2017-02-20 09:31:49.953420+0100  localhost kernel[0]: Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64

2017-02-20 09:31:50.026852+0100  localhost kernel[0]: vm_page_bootstrap: 4032487 free pages and 129049 wired pages

2017-02-20 09:31:50.044749+0100  localhost kernel[0]: kext submap [0xffffff7f80a00000 - 0xffffff8000000000], kernel text [0xffffff8000200000 - 0xffffff8000a00000]

 

2017-02-20 09:31:50.044753+0100  localhost kernel[0]: zone leak detection enabled

 

"pmset -g log" gives:

 

Time stamp                Domain              Message                                                                    Duration  Delay     

 

==========                ======              =======                                                                    ========  =====     

UUID: 5F0FC00F-233A-4FA9-8528-8F52843966EB

2017-02-20 09:29:47 +0100 Notification        Display is turned off                                                                

2017-02-20 09:29:47 +0100 Assertions          PID 121(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle.4294968397.17" 00:09:03  id:0x0x900008169 [system: DeclUser kDisp]          

2017-02-20 09:29:47 +0100 Assertions          Kernel Idle sleep preventers: -None-          

2017-02-20 09:29:47 +0100 Assertions          PID 64(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0x0xd000082e9 [system: DeclUser SRPrevSleep kCPU kDisp]          

2017-02-20 09:30:02 +0100 Assertions          PID 64(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0x0xd000082e9 [system: DeclUser SRPrevSleep kCPU kDisp]          

2017-02-20 09:30:02 +0100 Assertions          Summary- [system: DeclUser kDisp] Using AC          

2017-02-20 09:30:02 +0100 Sleep               Entering Sleep state due to 'Software Sleep pid=117': Using AC 13 secs   

2017-02-20 09:30:05 +0100 PM Client Acks      Delays to Sleep notifications: [com.apple.apsd is slow(2998 ms)]           

2017-02-20 09:30:13 +0100 Kernel Client Acks  Delays to Sleep notifications: [Airmail 3 is slow(10110 ms)] [iONVMeController driver is slow(msg: SetState to 0)(428 ms)] [AppleHDADriver driver is slow(msg: SetState to 0)(1018 ms)] [AppleAHCIDiskQueueManager driver is slow(msg: SetState to 0)(1358 ms)]           

2017-02-20 09:30:13 +0100 Assertions          PID 212(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00  id:0x0xd000082fb [system: DeclUser BGTask SRPrevSleep kCPU kDisp]          

2017-02-20 09:30:15 +0100 Assertions          PID 212(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:02  id:0x0xd000082fb [system: DeclUser kDisp]          

2017-02-20 09:30:15 +0100 Assertions          PID 64(powerd) Created InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:00  id:0x0xd000082fd [system: DeclUser SRPrevSleep kCPU kDisp]          

2017-02-20 09:30:15 +0100 DarkWake            DarkWake from Normal Sleep [CDN] due to PXSX/: Using AC           

2017-02-20 09:30:15 +0100 HibernateStats      hibmode=0 standbydelay=0                                                             2         

2017-02-20 09:30:15 +0100 Kernel Client Acks  Delays to Wake notifications: [PRT1 driver is slow(msg: SetState to 2)(307 ms)] [AppleUSB30XHCIPort driver is slow(msg: SetState to 3)(321 ms)] [AppleUSB30XHCIPort driver is slow(msg: SetState to 3)(321 ms)] [AppleUSB30XHCIPort driver is slow(msg: DidChangeState to 3)(300 ms)] [AppleUSB30XHCIPort driver is slow(msg: DidChangeState to 3)(300 ms)] [AppleUSB20HubPort driver is slow(msg: SetState to 3)(450 ms)] [AppleUSB20HubPort driver is slow(msg: SetState to 3)(800 ms)] [PRT0 driver is slow(msg: SetState to 2)(1285 ms)] [PRT0 driver is slow(msg: SetState to 2)(1286 ms)] [AppleUSB20HubPort driver is slow(msg: SetState to 3)(1154 ms)] [AppleHDADriver driver is slow(msg: SetState to 1)(1459 ms)]           

2017-02-20 09:30:15 +0100 Assertions          PID 64(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00  id:0x0xd000082fe [system: DeclUser SRPrevSleep kCPU kDisp]          

2017-02-20 09:30:15 +0100 Assertions          Kernel Idle sleep preventers: IODisplayWrangler          

2017-02-20 09:30:15 +0100 Notification        Display is turned on                                                                 

2017-02-20 09:30:20 +0100 Assertions          PID 64(powerd) Released InternalPreventSleep "PM configd - Wait for Device enumeration" 00:00:05  id:0x0xd000082fd [system: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp]          

2017-02-20 09:31:00 +0100 Assertions          PID 64(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:45  id:0x0xd000082fe [system: DeclUser SRPrevSleep kCPU kDisp]          

Sleep/Wakes since boot at 2017-02-20 09:20:23 +0100 :1   Dark Wake Count in this sleep cycle:1

 

Time stamp                Domain              Message                                                                    Duration  Delay     

==========                ======              =======                                                                    ========  =====     

UUID: (null)

2017-02-20 09:31:52 +0100 Start               powerd process is started                                                            

2017-02-20 09:31:52 +0100 Assertions          Summary- [system: No Assertions] Using AC          

 

 

This seems to be related to darkwake which I can probably fix. The remaining issue is that it didn't seem to fix the instant wake.


 

about audio, use applealc, only kext and DSDT patch, i apply codec 1

 

 

Thanks. Do I need to change anything here? The sound is working, applealc is in the Clover Kexts directory, and the sound device is recognised "Intel High Definition Audio:   Audio ID: 1"

  • Like 1

If you want give a try with this DSDT and config, better on a pendrive.

 

Thanks Jolly. That just gave me a panic. See attached.

man, generate ur ssdt with pike script

run it

attachicon.gifssdtPRGen.command.zip

 

 

and use it

attachicon.gifDSDT.01.zip

 

rename gfx0

 

u use intel hd, correct?

 

Ah, no, I am using a Nvidia 980 TI. 

 

Otherwise, ssdt.aml generated and placed in the '/ACPI/patched' directory. I am unable to edit your new DSDT.aml however using MaciASL. I just get a decompilation error.

 

Tested anyway. Same instant wake then GPU cycle error as before.

 

Thanks again for taking the time MaLd0n.

post-204284-0-89692400-1487599651_thumb.png

ssdt.zip

If you are using SSDT you have to disable generate C/P states in my config plist

 

Hi Jolly. I tried that but it didn't make any difference. I think it might be your DSDT.aml that is causing the kernal panic. Your config.plist booted with my old DSDT.aml but not your new one. 

try it

Arquivo Comprimido.zip

 

u have a bluetooth?

 

for open DSDT, u need a acpi 6.1

use it

https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-MaciASL-2017-0117.zip

 

put new DSDT and SSDT and run .command, reboot and test

Olarila.command.zip

 

send me ioreg with ioreg explorer 3

IORegistryExplorer 3.app.zip

 

Bios..USB/Third party --> disable...

I don't see genericUSB in ioreg

I use only usbinjectall in my Asrock extreme 6

 

Yes! That was the answer. I disabled the third party USB on the motherboard and now sleeps and wakes works correctly. 

 

Thank you for your time MaLd0n, Jolly, and gengik84. I am very impressed with this community!

  • Like 2

Bios..USB/Third party --> disable...

I don't see genericUSB in ioreg

I use only usbinjectall in my Asrock extreme 6

post ur DSDT here too

Yes! That was the answer. I disabled the third party USB on the motherboard and now sleeps and wakes works correctly. 

 

Thank you for your time MaLd0n, Jolly, and gengik84. I am very impressed with this community!

Good, bro. Great, gengik84.

  • Like 1
×
×
  • Create New...