joq3 Posted June 18, 2019 Posted June 18, 2019 I have a really weird issue. My sleep and wake does work fine. But if I use Wake On LAN to wake it up, and then put the computer to sleep, it will immediatly wake up again (this only happens if I have used WOL to wake it up before putting it to sleep). So I have tracked the logs, and this is what I got: Here I am putting it to sleep, and then using Wake On LAN Time stamp Domain Message Duration Delay ========== ====== ======= ======== ===== UUID: DBA0998A-B05B-47D5-B989-2D72A6939C82 2019-06-16 21:55:40 +0200 Notification Display is turned off 2019-06-16 21:55:40 +0200 Assertions PID 418(AddressBookSourceSync) Summary PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:25 id:0x0x100008181 [system: PrevIdle DeclUser BGTask kDisp] 2019-06-16 21:55:40 +0200 Assertions PID 93(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle.4294968398.17" 00:00:00 id:0x0x900008191 [system: PrevIdle DeclUser BGTask kDisp] 2019-06-16 21:55:40 +0200 Assertions PID 73(apsd) Summary ApplePushServiceTask "com.apple.apsd-datareceived-push.apple.com" 00:00:00 id:0x0xb00008194 [system: PrevIdle DeclUser BGTask kDisp] 2019-06-16 21:55:40 +0200 Assertions PID 63(mds) Summary BackgroundTask "com.apple.metadata.mds.power" 00:00:40 id:0x0xb00008012 [system: PrevIdle DeclUser BGTask kDisp] 2019-06-16 21:55:40 +0200 Assertions Kernel Idle sleep preventers: -None- 2019-06-16 21:55:40 +0200 Assertions PID 53(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00 id:0x0xd00008196 [system: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp] 2019-06-16 21:55:44 +0200 Assertions PID 418(AddressBookSourceSync) Released PreventUserIdleSystemSleep "Address Book Source Sync" 00:00:30 id:0x0x100008181 [system: DeclUser BGTask SRPrevSleep kCPU kDisp] 2019-06-16 21:55:55 +0200 Assertions PID 53(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0x0xd00008196 [system: DeclUser BGTask SRPrevSleep kCPU kDisp] 2019-06-16 21:55:55 +0200 Assertions Summary- [system: DeclUser BGTask kDisp] Using AC 2019-06-16 21:55:55 +0200 Sleep Entering Sleep state due to 'Software Sleep pid=87': Using AC (Charge:0%) 23 secs 2019-06-16 21:55:57 +0200 Notification Next immediate inactivity window start:'2019-06-16 23:00:00 +0200' end:'2019-06-17 17:15:00 +0200' 2019-06-16 21:55:57 +0200 Wake Requests [*proc=mDNSResponder request=Maintenance inDelta=7198] 2019-06-16 21:55:57 +0200 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(2331 ms)] 2019-06-16 21:56:08 +0200 Kernel Client Acks Delays to Sleep notifications: [AppleHDADriver driver is slow(msg: SetState to 0)(1017 ms)] [AMDFramebufferCI driver is slow(msg: SetState to 1)(2116 ms)] [AMDFramebufferCI driver is slow(msg: SetState to 1)(2166 ms)] [en0 driver is slow(msg: WillChangeState to 0)(2356 ms)] 2019-06-16 21:56:08 +0200 Assertions Kernel Idle sleep preventers: IODisplayWrangler 2019-06-16 21:56:08 +0200 Notification Display is turned on 2019-06-16 21:56:08 +0200 Assertions PID 194(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd000081ac [system: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp] 2019-06-16 21:56:08 +0200 Assertions PID 194(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd000081ac [system: PrevIdle DeclUser BGTask kDisp] 2019-06-16 21:56:13 +0200 Assertions PID 63(mds) Released BackgroundTask "com.apple.metadata.mds.power" 00:01:14 id:0x0xb00008012 [system: DeclUser BGTask kDisp] 2019-06-16 21:56:18 +0200 Wake Wake from Normal Sleep [CDNVA] due to PEG1 PEGP PEG2 PEGP PXSX PXSX/Network: Using AC (Charge:0%) 12 secs 2019-06-16 21:56:18 +0200 HibernateStats hibmode=0 standbydelay=86400 122 2019-06-16 21:56:18 +0200 WakeTime WakeTime: 10.356 sec 2019-06-16 21:56:18 +0200 Kernel Client Acks Delays to Wake notifications: [AppleHDADriver driver is slow(msg: SetState to 1)(1451 ms)] [PRT1 driver is slow(msg: SetState to 2)(9129 ms)] 2019-06-16 21:56:18 +0200 Assertions PID 53(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00 id:0x0xd000081bf [system: DeclUser BGTask SRPrevSleep kCPU kDisp] Sleep/Wakes since boot at 2019-06-16 21:54:57 +0200 :1 Dark Wake Count in this sleep cycle:1 Here I am putting it to sleep after using Wake On LAN (and it wakes up immediatly) Time stamp Domain Message Duration Delay ========== ====== ======= ======== ===== UUID: D3E02BDA-0939-41A2-8128-E304271DAF4E 2019-06-16 21:56:30 +0200 Notification Display is turned off 2019-06-16 21:56:30 +0200 Assertions PID 93(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle.4294968398.17" 00:00:00 id:0x0x900008191 [system: DeclUser SRPrevSleep kCPU kDisp] 2019-06-16 21:56:30 +0200 Assertions PID 53(powerd) Summary InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:12 id:0x0xd000081bf [system: DeclUser SRPrevSleep kCPU kDisp] 2019-06-16 21:56:30 +0200 Assertions Kernel Idle sleep preventers: -None- 2019-06-16 21:56:30 +0200 Sleep Entering DarkWake state due to 'Software Sleep pid=87': Using AC (Charge:0%) 2019-06-16 21:56:30 +0200 Assertions PID 53(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00 id:0x0xd000081ce [system: PrevIdle DeclUser SRPrevSleep kCPU kDisp] 2019-06-16 21:56:45 +0200 Assertions PID 53(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15 id:0x0xd000081ce [system: DeclUser SRPrevSleep kCPU kDisp] 2019-06-16 21:56:45 +0200 Assertions Summary- [system: DeclUser SRPrevSleep kCPU kDisp] Using AC 2019-06-16 21:57:02 +0200 Assertions PID 53(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:44 id:0x0xd000081bf [system: DeclUser SRPrevSleep kCPU kDisp] 2019-06-16 21:57:02 +0200 Assertions Summary- [system: DeclUser kDisp] Using AC 2019-06-16 21:57:02 +0200 Sleep Entering Sleep state due to 'Software Sleep pid=87': Using AC (Charge:0%) 17 secs 2019-06-16 21:57:05 +0200 PM Client Acks Delays to Sleep notifications: [com.apple.apsd is slow(2877 ms)] 2019-06-16 21:57:12 +0200 Kernel Client Acks Delays to Sleep notifications: [AppleHDADriver driver is slow(msg: SetState to 0)(1013 ms)] [AMDFramebufferCI driver is slow(msg: SetState to 1)(2096 ms)] [AMDFramebufferCI driver is slow(msg: SetState to 1)(2145 ms)] [en0 driver is slow(msg: WillChangeState to 0)(2355 ms)] 2019-06-16 21:57:12 +0200 Assertions Kernel Idle sleep preventers: IODisplayWrangler 2019-06-16 21:57:12 +0200 Notification Display is turned on 2019-06-16 21:57:12 +0200 Assertions PID 194(mDNSResponder) Created MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd000081e0 [system: PrevIdle DeclUser BGTask SRPrevSleep kCPU kDisp] 2019-06-16 21:57:12 +0200 Assertions PID 194(mDNSResponder) Released MaintenanceWake "mDNSResponder:maintenance" 00:00:00 id:0x0xd000081e0 [system: PrevIdle DeclUser BGTask kDisp] 2019-06-16 21:57:18 +0200 Assertions PID 204(backupd) ClientDied PreventUserIdleSystemSleep "Time Machine backup" 00:02:18 id:0x0x10000801c [system: DeclUser kDisp] 2019-06-16 21:57:18 +0200 Assertions PID 204(backupd) ClientDied BackgroundTask "Time Machine backup" 00:02:18 id:0x0xb0000801b [system: DeclUser kDisp] 2019-06-16 21:57:19 +0200 Wake Wake from Normal Sleep [CDNVA] due to /: Using AC (Charge:0%) 2019-06-16 21:57:19 +0200 HibernateStats hibmode=0 standbydelay=86400 123 2019-06-16 21:57:19 +0200 WakeTime WakeTime: 71.928 sec 2019-06-16 21:57:19 +0200 Kernel Client Acks Delays to Wake notifications: [AppleHDADriver driver is slow(msg: SetState to 1)(1453 ms)] [PRT1 driver is slow(msg: SetState to 2)(8099 ms)] 2019-06-16 21:57:19 +0200 Assertions PID 53(powerd) Created InternalPreventSleep "com.apple.powermanagement.acwakelinger" 00:00:00 id:0x0xd000081e5 [system: DeclUser SRPrevSleep kCPU kDisp] Total Sleep/Wakes since boot at 2019-06-16 21:54:57 +0200 :2 So the differences here, that I have noticed are these: The first sleep (that works) only shows this in the log: Entering Sleep state due to 'Software Sleep pid=87' The sleep (after WOL) that doesn't work looks like this: Entering DarkWake state due to 'Software Sleep pid=87' and 1 second later: Entering Sleep state due to 'Software Sleep pid=87' The thing is, when it immediatly wakes up, it takes about 1 second for it to wake up. So I am thinking the "second sleep" it tries is what wakes it up. But I cannot understand why this is happening either, because I use darkwake=0 and when not using WOL, sleep and wake works perfectly. The driver creator doesn't have any clue why this happens either: https://github.com/Mieze/AtherosE2200Ethernet/issues/20
Administrators MaLd0n Posted June 18, 2019 Administrators Posted June 18, 2019 [ref]joq3[/ref], check a wake reason log show --style syslog | fgrep "Wake reason" -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
joq3 Posted June 18, 2019 Author Posted June 18, 2019 [ref]joq3[/ref], check a wake reason log show --style syslog | fgrep "Wake reason" Hi MaLd0n, I have checked that too and that gives me much less information. Wake reason: ?
joq3 Posted June 25, 2019 Author Posted June 25, 2019 I have used DSDT to disable every _PRW except for GLAN and PWRB which looks like this: Device (PWRB) { Name (_HID, EisaId ("PNP0C0C")) // _HID: Hardware ID Name (_UID, 0xAA) // _UID: Unique ID Name (_STA, 0x0B) // _STA: Status Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake { Return (GPRW (0x1B, 0x03)) } } Device (GLAN) { Name (_ADR, 0x00190000) // _ADR: Address OperationRegion (GLBA, PCI_Config, Zero, 0x0100) Field (GLBA, AnyAcc, NoLock, Preserve) { DVID, 16, Offset (0xCC), Offset (0xCD), PMEE, 1, , 6, PMES, 1 } Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake { Return (GPRW (0x9D, 0x04)) } Method (_DSW, 3, NotSerialized) // _DSW: Device Sleep Wake { Store (Arg0, PMEE) } Method (GPEH, 0, NotSerialized) { If (LEqual (DVID, 0xFFFF)) { Return (Zero) } If (LAnd (PMEE, PMES)) { Store (One, PWST) Store (One, PMES) Notify (GLAN, 0x02) } } } This made me think some kind of parameter was saved when WOL was used to wake it up. So I tried commenting out the _DWS (Device Sleep Wake) part of it. But that didn't do any difference. I also tried using 0x1B, 0x03 on GLAN instead of 0x9D, 0x04, no difference either. So, what can it be that makes sleep not work properly after using Wake On Lan? By the way, after it does instantly wake up when i've used WOL, I can try putting it to sleep again, and this time it works. So it is the first sleep after using WOL that's broken.
Administrators MaLd0n Posted June 25, 2019 Administrators Posted June 25, 2019 [ref]joq3[/ref], is hard to check it u can try other version lan kext -Guides and Tutorials HERE -Hackintosh Tutorial Database - HERE -The largest EFI folder collection for Hackintosh HERE -Support Olarila Vanilla Hackintosh by making a donation HERE -Professional Consulting for macOS Hackintosh since 2006 HERE
joq3 Posted June 25, 2019 Author Posted June 25, 2019 [ref]joq3[/ref], is hard to check it u can try other version lan kext I tried all versions of the kext, all with the same result. I also edited my DSDT file, and removed all the _PRW completely from the DSDT, even the GLAN, PXSX, and PWRB and it still is possible to wake it up with WOL, so the DSDT doesn't seem to have any effect? It did however have effect on my USB devices when I edited them. Any idea what to do?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now