Jump to content

Can't sleep computer - it just keeps waking up and sometimes crashes


freighter
 Share

4 posts in this topic

Recommended Posts

When I try to sleep my hackintosh, it generally just goes into a cycle of sleeping and then waking up again, sleeping and waking up again. Sometimes it just straight up crashes and restarts.

 

Mobo: Gigabyte GA-Z170X-Gaming 7 (rev 1.0)

CPU: Intel Core i7-6700K
Graphics: Geforce GTX 1070
Running 10.12.6.

Weirdly, it worked properly for a day or two. It stopped working today, and I can't seem to figure out why. Only thing I did is update clover configurator.

I attached my complete clover configuration. I'm using FIX_WAK, FixShutdown and HaltEnabler. That fixed it before, but now not anymore, apparently. Also using EmuVariableEufi. Without it the nVidia web drivers won't stick and iMessage won't work.

I also looked in the terminal for the "wake reason" and this is the result:

2017-08-17 14:03:18.680045+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:03:18.680047+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:04:25.671640+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:04:25.671642+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:09:51.806671+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:09:51.806673+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:10:57.625610+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:10:57.625612+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:16:53.193674+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:16:53.193676+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:17:59.655259+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC
2017-08-17 14:17:59.655261+0200 localhost kernel[0]: (AppleACPIPlatform) Wake reason: XDCI XHC

My computer specs should be on the sidebar/in my profile.

I'd super appreciate it if someone could help me resolve this issue.

Link to comment
Share on other sites

Hi Freighter,

 

MacOS Sierra has problems with the _ PWR method on some motherboards, causing the computer wake up instantly from sleep. I recommend you remove it by applying the following patch with MACIASL:

########################################
# _PWR
########################################

# Fix Mac OS Capitan Instant WakeUp From Sleep

# if _PRW objects are methods
into method label _PRW parent_adr 0x001D0000 remove_entry;
into method label _PRW parent_adr 0x001A0000 remove_entry;
into method label _PRW parent_adr 0x00140000 remove_entry;
into method label _PRW parent_adr 0x001B0000 remove_entry;
# some other LAN cards use 0x00190000
into method label _PRW parent_adr 0x00190000 remove_entry;

# if _PRW methods are stuffed into a separate scope
into method label _PRW parent_label _SB.PCI0.EHC1 remove_entry;
into method label _PRW parent_label _SB.PCI0.EHC2 remove_entry;
into method label _PRW parent_label _SB.PCI0.XHC remove_entry;
into method label _PRW parent_label \_SB.PCI0.EHC1 remove_entry;
into method label _PRW parent_label \_SB.PCI0.EHC2 remove_entry;
into method label _PRW parent_label \_SB.PCI0.XHC remove_entry;

# if _PRW objects are names
into device name_adr 0x001D0000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x001A0000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x00140000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x001B0000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x00190000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\}\) remove_matched;

# some _PRW have three entries in the Package
into device name_adr 0x001D0000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x001A0000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x00140000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x001B0000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\n.*\}\) remove_matched;
into device name_adr 0x00190000 code_regex Name.*_PRW.*\n.*\n.*\n.*\n.*\n.*\}\) remove_matched;

# seems to work better if _PRW is present, but returns 0 (original was 3) for sleep state
into device name_adr 0x001D0000 insert begin Name(_PRW, Package() { 0x0D, 0 }) end;
into device name_adr 0x001A0000 insert begin Name(_PRW, Package() { 0x0D, 0 }) end;
into device name_adr 0x00140000 insert begin Name(_PRW, Package() { 0x0D, 0 }) end;
into device name_adr 0x001B0000 insert begin Name(_PRW, Package() { 0x0D, 0 }) end;
into device name_adr 0x00190000 insert begin Name(_PRW, Package() { 0x0D, 0 }) end;
I also recommend that you try to install the driver "OsxAptioFix2Drv-64.efi". This driver offers a better support for hibernation. Remember that if you install it, you must remove the driver "OsxAptioFixDrv-64.efi" and "OsxLowMemFixDrv-64.efi".
 
In MacOS Capitan and Sierra You can only select hibernation modes 0, 3 and 25 using the command "pmset". If you want to try some additional mode you will have to edit the file "/Libray/Preferences/com.apple.PowerManagement. <PlatformUUID> plist ". The plist is in binary mode, so you must convert it with the command "plutil". If you want to test with hibernation mode, I recommend you try modes 21, 27, 29 or 57. These usually give good results.
 
For desktop computer and especially if you have a hard drive SSD, it is advisable to completely hibernation disabled. You will save space and avoid unnecessary writings to the hard drive. You can do this in the following way:
pmset-a hibernatemode 0
pmset-a autopoweroff 0
pmset-a standby 0
rm -r /var/vm/sleepimage

I hope this information is useful to you.

 
Best regards
 
Link to comment
Share on other sites

 Share

×
×
  • Create New...