Jump to content

2 Sleep issues - resume immediately & reboot when wake


monto
 Share

59 posts in this topic

Recommended Posts

@Henties, does your auto sleep work? (Prevent computer from sleeping automatically when the display is off - Unticked)

If I enable auto sleep for 5 minutes (untick above), it still reboots on wake after merely 10 minutes. Manual sleep seems to work so far, but longer test is needed to confirm.

My sleep is working in ALL respects on both of my builds.

Link to comment
Share on other sites

Since taking the suggestion from Henties, and applying XOSI-WIN10.ami and _OSI to XOSI patch in config.plist a couple of days ago, I haven't encountered a single reboot on wake. Overnight wake from sleep worked so far. The system has been up for 1d16h and counting... It's looking promising.

 

I will continue to monitor the reboot on wake issue. If the system can be up for more than 5 days with numerous overnight sleeps in between, I will call it a victory. Fingers crossed.

 

​Mean while, for those of you sharing the same problem, please try this and let us know how you fare.

OK, I lied. XOSI-WIN10.aml didn't fix the problem. Got reboot again on wake. Back to drawing board.

 

Don't remember if I've mentioned this. Recently my mobo was changed from Gigabyte B150M-HD3 to H170-Gaming 3, and everything else remained the same on the system. Interestingly, both problems mentioned in the beginning of this thread are present on both of the mobos. This lead me to believe the problem is related to software set up, instead of hardware issue.

 

Still scratching my head as why Henties's Z170 works flawlessly, while William's Z170 and my H170 are rebooting intermittently. My set up on OSX is pretty much the same as Henties.

Link to comment
Share on other sites

OK, I lied. XOSI-WIN10.aml didn't fix the problem. Got reboot again on wake. Back to drawing board.

 

Don't remember if I've mentioned this. Recently my mobo was changed from Gigabyte B150M-HD3 to H170-Gaming 3, and everything else remained the same on the system. Interestingly, both problems mentioned in the beginning of this thread are present on both of the mobos. This lead me to believe the problem is related to software set up, instead of hardware issue.

 

Still scratching my head as why Henties's Z170 works flawlessly, while William's Z170 and my H170 are rebooting intermittently. My set up on OSX is pretty much the same as Henties.

Hang ten I have a GA- Z170X-HD3 rev. 1.0 mobo yours may be similar to mine but that is where it also all ends. By the way I am on bios F20 for my mobo. Make sure that you don't have any typos when you

created your  SSDT-USB.aml, that will certainly screw things up. Don't use that file from somebody else

unless the mobo as well as bios specs are exactly the same as yours.

 

Attached find my zipped Clover folder used with my GA-Z170X-UD3 mobo. To make it a bit leaner I only

removed the theme folder from Clover.

 

Edit

 

In the interim I have converted my 2 El Capitan hdds, originally setup with Clover for legacy booting for my old and ancient rigs, to UEFI booting. For the converted El Capitan hdd now running on my GA-Z170X-UD3 mobo I just copied the Clover setup I use for Skylake, with a different iMessage of cause. Likewise I did the same with the

El Capitan hdd now running on my GA-Z97X-UD3H build. With both I have no problems with sleep, wake from sleep

or whatever.

 

My computer cases all have a drive slipway at the top of their boxes, so whenever I want to use a different operating

system I just slide in the hdd for that particular opsys. Simple and straightforward.

 

I sometimes need El Capitan functionality, for some time to come I guess,  because code signing "Kodi" under Sierra is broken. The developer of the code signing method for El Capitan is currently still working on a solution for Sierra, until he succeeds I still need El Capitan available just for code signing Kodi for my Apple TV 4's

 

Enjoy !

 

CLOVER.zip

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

It appears the problem is fixed, after updating to 10.12.3. Nothing else was changed.
Now the system can sleep automatically or manually, and wake up without rebooting.

It's been going without reboot for over 3 days, with more than 10 sleeps and still looking good.

Link to comment
Share on other sites

  • 6 months later...

Dear all!

 

Thanks for this thread! I'm sadly having the same reboot on wake issue... I'm running on this config:

Dear All,

 
Thanks for this very nice guide! I'm trying to build a similar configuration (see below) but I still have some problems. Particularly, my Hackintosh reboots on wake up from deep sleep. 
 
- GA-H270N-Wifi
- i3 7100
- Sharkoon Shark Zone mini-ITX case
- TP-Link TL-WDN4800 N900 (for wifi, on PCIe. I don't have a native airport card. It's very hard to find here in France at low prices.)
- Mac OSX 10.12.6 (Last Clover and CloverConfigurator versions)
 
Everything seems to be working properly but there's no way for me to solve the wake up problem. I'm sadly not an Mackintosh expert... So if somebody has an easy solution for me, or a more complicated one, but some time to explain it to me, I'd be really thankful!  :yes: 
 
By the way, the only Kext I'm using is the AppleHDA.kext to get my audio working. See below my config.plist for info.
 
Thanks a lot in advance!
 
Config.plist:
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>ACPI</key>
	<dict>
		<key>DSDT</key>
		<dict>
			<key>Debug</key>
			<false/>
			<key>DropOEM_DSM</key>
			<false/>
			<key>Fixes</key>
			<dict>
				<key>FiX_TMR_40000</key>
				<false/>
				<key>FiX_WAK_200000</key>
				<false/>
				<key>FixShutdown_0004</key>
				<true/>
			</dict>
			<key>Name</key>
			<string>DSDT.aml</string>
			<key>Patches</key>
			<array>
				<dict>
					<key>Comment</key>
					<string>Rename HDAS to HDEF</string>
					<key>Disabled</key>
					<false/>
					<key>Find</key>
					<data>
					SERBUw==
					</data>
					<key>Replace</key>
					<data>
					SERFRg==
					</data>
				</dict>
			</array>
			<key>ReuseFFFF</key>
			<false/>
		</dict>
		<key>SSDT</key>
		<dict>
			<key>DropOem</key>
			<false/>
			<key>Generate</key>
			<dict>
				<key>CStates</key>
				<false/>
				<key>PStates</key>
				<false/>
			</dict>
		</dict>
	</dict>
	<key>Boot</key>
	<dict>
		<key>CustomLogo</key>
		<string>Apple</string>
		<key>DefaultVolume</key>
		<string>SSD</string>
		<key>Legacy</key>
		<string>PBR</string>
		<key>Log</key>
		<true/>
		<key>Secure</key>
		<false/>
		<key>Timeout</key>
		<integer>0</integer>
		<key>XMPDetection</key>
		<string>Yes</string>
	</dict>
	<key>Devices</key>
	<dict>
		<key>Audio</key>
		<dict>
			<key>Inject</key>
			<string>1</string>
		</dict>
		<key>FakeID</key>
		<dict>
			<key>ATI</key>
			<string>0x0</string>
			<key>IMEI</key>
			<string>0x0</string>
			<key>IntelGFX</key>
			<string>0x0</string>
			<key>LAN</key>
			<string>0x0</string>
			<key>NVidia</key>
			<string>0x0</string>
			<key>SATA</key>
			<string>0x0</string>
			<key>WIFI</key>
			<string>0x0</string>
			<key>XHCI</key>
			<string>0x0</string>
		</dict>
		<key>USB</key>
		<dict>
			<key>FixOwnership</key>
			<false/>
			<key>Inject</key>
			<false/>
		</dict>
	</dict>
	<key>DisableDrivers</key>
	<array>
		<string>Nothing</string>
	</array>
	<key>GUI</key>
	<dict>
		<key>Hide</key>
		<array>
			<string>Windows</string>
			<string>\EFI\BOOT\BOOTX64.EFI</string>
		</array>
		<key>Language</key>
		<string>fr:0</string>
		<key>Mouse</key>
		<dict>
			<key>Enabled</key>
			<true/>
			<key>Speed</key>
			<integer>8</integer>
		</dict>
		<key>Scan</key>
		<dict>
			<key>Entries</key>
			<true/>
			<key>Legacy</key>
			<string>First</string>
			<key>Linux</key>
			<false/>
			<key>Tool</key>
			<true/>
		</dict>
		<key>ScreenResolution</key>
		<string>1920x1080</string>
		<key>Theme</key>
		<string></string>
	</dict>
	<key>Graphics</key>
	<dict>
		<key>Inject</key>
		<dict>
			<key>ATI</key>
			<false/>
			<key>Intel</key>
			<true/>
			<key>NVidia</key>
			<false/>
		</dict>
		<key>ig-platform-id</key>
		<string>0x59120000</string>
	</dict>
	<key>KernelAndKextPatches</key>
	<dict>
		<key>#FakeCPUID</key>
		<string>0x010676</string>
		<key>AppleIntelCPUPM</key>
		<true/>
		<key>AppleRTC</key>
		<true/>
		<key>KernelCpu</key>
		<false/>
		<key>KernelHaswellE</key>
		<false/>
		<key>KernelLapic</key>
		<false/>
		<key>KernelPm</key>
		<true/>
		<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>External icons patch</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				RXh0ZXJuYWw=
				</data>
				<key>Name</key>
				<string>AppleAHCIPort</string>
				<key>Replace</key>
				<data>
				SW50ZXJuYWw=
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>10.12-AppleHDA/Realtek ALC...</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ihnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>10.12-AppleHDA/Realtek ALC1220</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ixnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				IBLsEA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA/Resources/xml>zml</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				eG1sLnps
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				em1sLnps
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>change 15 port limit to 30 in XHCI kext (200-series)</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				g710////EA==
				</data>
				<key>MatchOS</key>
				<string>10.12.x</string>
				<key>Name</key>
				<string>com.apple.driver.usb.AppleUSBXHCIPCI</string>
				<key>Replace</key>
				<data>
				g710////Hw==
				</data>
			</dict>
		</array>
	</dict>
	<key>RtVariables</key>
	<dict>
		<key>BooterConfig</key>
		<string>0x28</string>
		<key>CsrActiveConfig</key>
		<string>0x3</string>
	</dict>
	<key>SMBIOS</key>
	<dict>
		<key>BiosReleaseDate</key>
		<string>09/22/2015</string>
		<key>BiosVendor</key>
		<string>Apple Inc.</string>
		<key>BiosVersion</key>
		<string>IM171.88Z.0105.B00.1509221819</string>
		<key>Board-ID</key>
		<string>Mac-65CE76090165799A</string>
		<key>BoardManufacturer</key>
		<string>Apple Inc.</string>
		<key>BoardType</key>
		<integer>10</integer>
		<key>BoardVersion</key>
		<string>iMac17,1</string>
		<key>ChassisAssetTag</key>
		<string></string>
		<key>ChassisManufacturer</key>
		<string>Apple Inc.</string>
		<key>ChassisType</key>
		<string>13</string>
		<key>Family</key>
		<string>iMac</string>
		<key>LocationInChassis</key>
		<string>Part Component</string>
		<key>Manufacturer</key>
		<string>Apple Inc.</string>
		<key>ProductName</key>
		<string>iMac17,1</string>
		<key>SerialNumber</key>
		<string>C02RN9W9GG7L</string>
		<key>Trust</key>
		<false/>
		<key>Version</key>
		<string>1.0</string>
	</dict>
	<key>SystemParameters</key>
	<dict>
		<key>InjectKexts</key>
		<string>Yes</string>
		<key>InjectSystemID</key>
		<true/>
	</dict>
</dict>
</plist>

Link to comment
Share on other sites

  • 3 years later...
On 10/15/2016 at 8:55 AM, macinsane said:

I meant USBInject*ALL* of course, sorry ;)

Right click on it and "Show package contents". Inside you have a config.plist (similar to Clover's). Open it with Textedit (or any other editor you might use). Scroll down until you reach the desired port. My example:

Under my specific mainboard config
 
<key>Configuration</key>
<dict>
 
<key>8086_a12f</key> <<-- Yours can be different!
......
<key>ports</key>
<dict>
......
<key>HS12</key> <<-- Yours can be different!
<dict>
<key>UsbConnector</key>
<integer>255</integer>  <<--- in this field standard is "3" and I changed it to "255"
<key>port</key>
<data>
DAAAAA==
</data>

</dict> 

 

I searched for the correct port via the app "IORegistryExplorer". I found that my bluetooth device is plugged in port HS12 (that is my second USB2 mainboard connector near the PCIe-Slots). Yours may be different.  

Thanks for this. I was able to finally get my ALL in One HP kaby lake to wake properly. Before i used to have to push power button to wake.. I created my own usbports using hackintool and no longer needed to use usbinjectall.kext anymore. I changed all integers with 3 to 255 and sleep is finally working properly using opencore 0.6.3 and not have to rely on clover.  The issue was when running opencore before, it used to wake up on its own the moment it goes to sleep.  So thank you for this post.  I appreciate it.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

@Blaggah I've been searching for a sleep/wake solution for my Kabylake rig (Q270 chipset, i7-7700T CPU, HD630 IGPU) and you're the first I've seen to claim success with kabylake sleep/wake.  I didn't see the HP AIO in your signature.  Do you mind posting your sanitized OC EFI (or at least your sanitized config.plist and your USB kext)?  Thanks!

Link to comment
Share on other sites

 Share

×
×
  • Create New...