It looks like you have it set to power off on it's own...
AutoPowerOff Enabled: 1
You can also disable hibernate:
Resource:
[Guide] Native Power Management for Laptops | tonymacx86.com
*
Direct quote from above guide:
"Be aware that hibernation (suspend to disk or S4 sleep) is not supported on hackintosh.
You should disable it:
Code:
sudo pmset -a hibernatemode 0
sudo rm /var/vm/sleepimage
sudo mkdir /var/vm/sleepimage
Always check your hibernatemode after updates and disable it. System updates tend to re-enable it, although the trick above (making sleepimage a directory) tends to help.
And it may be a good idea to disable the other hibernation related options:"
Code:
sudo pmset -a standby 0
sudo pmset -a autopoweroff 0
Thanks for your detailed reply! Problem is solved! Really Happy.
But... here is that old issue about audio.
After updating to 10.13.14, HDMI/DP audio disappears again... Moreover, my Onboard audio currently suffers from audio loss problem after
long sleep (say, for a night) even if I have installed the CodecCommander.kext.
I have updated the NvidiaGraphicsFixUp, shiki and AppleALC to latest version, but it just does not help.
1. For the audio loss after
long sleep issue
I find in in AppleALC repo FAQ
https://github.com/vit9696/AppleALC/wiki/Frequently-Asked-Questions, it suggests removing CodecCommander.kext.
You must remove any of them except the DSDT edits in any form (be that done via your bootloader or by manually written SSDT files) and CodecCommander.kext if you use it.
I guess this is why CodecCommander does not solve the problem ?
2. For the HDMI/DP audio disappears issue
According to the AppleALC repo, it seems DSDT modifications is needed. In rog z370-g motherboard, layout-id = 1,2,5,7. But I did not find any DSDT patch in the efi files.
I see that
Code:
<key>Audio</key>
<dict>
<key>Inject</key>
<string>1</string>
</dict>
in config.plist. But could that be not enough to solve HDMI/DP audio problem?
I am too confused...
Many thanks for your constant explanation and support. If you visit China one day, I'd like to treat you to a good dinner.