When i'm built hackintosh with macOS Sierra, macOS High Sierra and macOS Mojave with i5-6400 and Z170 it worked like in a real Macs. Entered into sleep mode fast but now it takes longer.
I think best delay could be within 4 seconds but max 7 seconds is acceptable. Whereas in current situation entering sleep mode takes 20-40 seconds
You can check by below command
❯ pmset -g log | grep -e "Sleep" | grep "Delays to Sleep notifications" | tail -3
2022-10-27 15:09:35 +0500 Kernel Client Acks Delays to Sleep notifications: [AppleHDADriver driver is slow(msg: SetState to 0)(508 ms)] [IONVMeController driver is slow(msg: SetState to 0)(487 ms)] [IONVMeController driver is slow(msg: SetState to 0)(1156 ms)] [en0 driver is slow(msg: WillChangeState to 0)(5261 ms)]
2022-10-27 15:16:48 +0500 PM Client Acks Delays to Sleep notifications: [com.apple.bluetooth.sleep is slow(1511 ms)] [com.apple.apsd is slow(2932 ms)]
2022-10-27 15:17:31 +0500 Kernel Client Acks Delays to Sleep notifications: [AppleHDADriver driver is slow(msg: SetState to 0)(509 ms)] [IONVMeController driver is slow(msg: SetState to 0)(580 ms)] [IONVMeController driver is slow(msg: SetState to 0)(1223 ms)] [en0 driver is slow(msg: WillChangeState to 0)(5252 ms)]
~
And if we calculate
Driver
Duration
AppleHDADriver
508ms
IONVMEController
487ms + 1156ms
com.apple.bluetooth.sleep
1511 ms
com.apple.apsd
2932ms
en0 / LAN
5261ms
And if we sum all of these it's almost 12 seconds + OpenCore overhead so it's long
If we enter into Sleep mode in real Mac (e.g. iMac) it takes less than 3 seconds, an M1 machine is less than 1 second for me
When i'm built hackintosh with macOS Sierra, macOS High Sierra and macOS Mojave with i5-6400 and Z170 it worked like in a real Macs. Entered into sleep mode fast but now it takes longer.
I think best delay could be within 4 seconds but max 7 seconds is acceptable. Whereas in current situation entering sleep mode takes 20-40 seconds
You can check by below command
And if we calculate
And if we sum all of these it's almost 12 seconds + OpenCore overhead so it's long
If we enter into Sleep mode in real Mac (e.g. iMac) it takes less than 3 seconds, an M1 machine is less than 1 second for me