Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entering sleep mode takes more time #3

Open
dalisoft opened this issue Oct 27, 2022 · 0 comments
Open

Entering sleep mode takes more time #3

dalisoft opened this issue Oct 27, 2022 · 0 comments

Comments

@dalisoft
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant