Jump to content

Asrock z87 pro4 does not wake up from sleep


1 post in this topic

Recommended Posts

My spec:

  • Motherboard: Asrock z87 Pro4
  • Processor: i7-4790k
  • Graphics: Intel HD Graphics 4600,  MSI R9 280x (1x DVI, 1xHDMI, 2x mini displayport) without UEFI GOP
  • Audio: Realtek ALC892
  • LAN: Intel I217V
  • Hard drive: Samsung 850 EVO, SATA, AHCI

I've installed pure, not modified retail 10.10.0 using the newest (3241) version of Clover bootloader in UEFI mode, then updated to 10.10.4 

 

UEFI settings:

  • All defaults, except CSM. I've disabled it.
  • Secure boot was disabled by default,
  • Fast boot was disabled by default,
  • ACHI was enabled by default

Kexts:

SSDT:

  • Before generating SSDT.aml i've disabled all the features related to DSDT/SSDT in Clover settings (see the conifg below).
  • I've generated SSDT.aml using ssdtPRGen.sh script,
  • Renamed the file to SSDT.aml and copied into /EFI/CLOVER/ACPI/patched/

    here's an ssdtPRGen.sh output:
    Scope (_PR_) {220 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant)
    Generating ssdt.dsl for a 'iMac14,2' with board-id [Mac-27ADBB7B4CEE8E61]
    Haswell Core i7-4790 processor [0x306C3] setup [0x0705]
    With a maximum TDP of 84 Watt, as specified by Intel
    Number logical CPU's: 8 (Core Frequency: 3600 MHz)
    Number of Turbo States: 4 (3700-4000 MHz)
    Number of P-States: 33 (800-4000 MHz)
    Injected C-States for CPU0 (C1,C3,C6,C7)
    Injected C-States for CPU1 (C1,C2,C3)
    

Clover 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>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>Arguments</key>
		<string>slide=0 kext-dev-mode=1</string>
		<key>Debug</key>
		<false/>
		<key>Secure</key>
		<false/>
		<key>Timeout</key>
		<integer>3</integer>
		<key>XMPDetection</key>
		<string>Yes</string>
	</dict>
	<key>Devices</key>
	<dict>
		<key>Audio</key>
		<dict>
			<key>Inject</key>
			<string>7</string>
		</dict>
		<key>USB</key>
		<dict>
			<key>AddClockID</key>
			<false/>
			<key>FixOwnership</key>
			<false/>
			<key>Inject</key>
			<true/>
		</dict>
	</dict>
	<key>GUI</key>
	<dict>
		<key>Language</key>
		<string>pl:30788</string>
		<key>Mouse</key>
		<dict>
			<key>DoubleClick</key>
			<integer>500</integer>
			<key>Enabled</key>
			<false/>
			<key>Mirror</key>
			<false/>
			<key>Speed</key>
			<integer>8</integer>
		</dict>
		<key>Scan</key>
		<true/>
		<key>Theme</key>
		<string>sgr</string>
		<key>ScreenResolution</key>
		<string>1366x768</string>
	</dict>
	<key>Graphics</key>
	<dict>
		<key>Inject</key>
		<dict>
			<key>ATI</key>
			<false/>
			<key>Intel</key>
			<false/>
			<key>NVidia</key>
			<false/>
		</dict>
		<key>NvidiaSingle</key>
		<false/>
	</dict>
	<key>KernelAndKextPatches</key>
	<dict>
		<key>AppleRTC</key>
		<true/>
		<key>AsusAICPUPM</key>
		<false/>
		<key>Debug</key>
		<false/>
		<key>KernelCpu</key>
		<false/>
		<key>KernelHaswellE</key>
		<false/>
		<key>KernelLapic</key>
		<false/>
		<key>KernelPm</key>
		<false/>
		<key>KextsToPatch</key>
		<array>
			<dict>
				<key>Comment</key>
				<string>ALC892 patch</string>
				<key>Find</key>
				<data>
				ixnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				kgjsEA==
				</data>
			</dict>
		</array>
	</dict>
	<key>RtVariables</key>
	<dict>
		<key>MLB</key>
		<string>C02032109R5DC771H</string>
		<key>ROM</key>
		<string>UseMacAddr0</string>
	</dict>
	<key>SMBIOS</key>
	<dict>
		<key>BiosReleaseDate</key>
		<string>09/03/2013</string>
		<key>BiosVendor</key>
		<string>Apple Inc.</string>
		<key>BiosVersion</key>
		<string>IM142.88Z.0118.B00.1309031249</string>
		<key>Board-ID</key>
		<string>Mac-27ADBB7B4CEE8E61</string>
		<key>BoardManufacturer</key>
		<string>Apple Inc.</string>
		<key>BoardType</key>
		<integer>10</integer>
		<key>ChassisAssetTag</key>
		<string>iMac-Aluminum</string>
		<key>ChassisManufacturer</key>
		<string>Apple Inc.</string>
		<key>ChassisType</key>
		<string>13</string>
		<key>Family</key>
		<string>iMac</string>
		<key>Manufacturer</key>
		<string>Apple Inc.</string>
		<key>Mobile</key>
		<false/>
		<key>ProductName</key>
		<string>iMac14,2</string>
		<key>SerialNumber</key>
		<string>MY_SERIAL</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>

Works fine:

  • CPU PM seems to work fine: X86PlatformPlugin oraz AppleLPC are loaded, I've checked IORegistryExplorer for CPUCstates and CPUPstates entries (sceenshot attached). I can see XCPM: registered in the kernel.log.
  • Graphics acceleration (QE/CE) works fine, com.apple.driver.AGPM kext is loaded, interface works smoothly. Everything including 4k resolution works OOTB.
  • Audio works (AppleHDA_Uniwersal_ALC8xx_v1.4.kext)
  • LAN works (AppleIntelE1000e.kext)

What does NOT work:

  • Waking up using usb keyboard/mouse/power button. When i press the power button all I can see is a black screen and i can hear fans. When I press power button again fans go down. I can repeat it over and over. 

What i've found in logs:

  • This is IMO the most this is the most worrying. It happens when the system goes to sleep and when I try to wake it up:
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 2: 0x000000010d8cf1ec, delta 0x1086babe4
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 4: 0x000000010db4a69c, delta 0x1086babd8
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 6: 0x000000010ddc4b30, delta 0x1086baba0
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 1: 0x000000010e05b34c, delta 0x1086babc4
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 3: 0x000000010e2d5ce4, delta 0x1086babd4
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 5: 0x000000010e5513e0, delta 0x1086babd4
    Jul 21 03:17:40 iMac-WB kernel[0]: Unsynchronized  TSC for cpu 7: 0x000000010e7cc808, delta 0x1086baba0
    Jul 21 03:17:40 iMac-WB kernel[0]: RTC: PowerByCalendarDate setting ignored
    Jul 21 03:17:40 --- last message repeated 1 time ---
  • From what i've found this is not a reason to worry and I can fix it using LegacyAGPM.
    [AGPM Controller] unknownPlatform
  • I don't have bluetooth, so this one probably is not relevant as well:
    **** [IOBluetoothHCIController][SearchForTransportEventTimeOutHandler] -- Missing Bluetooth Controller Transport!

What i tried until now:

  • I tried different SMBIOS presets: 14,1, 14,2, 15,1
  • Tried to enable disable USB settings in Clover: AddClockIDFixOwnershipInject
  • To solve Unsynchronized TSC issue I tried VoodooTSCSync.kext. I've set IOCPUNumber to 7 and put the kext in /EFI/CLOVER/kexts/10.10/. I can it's loaded using kextstat, but there's no difference, I can still see Unsynchronized TSC in the system.log. Waking up still doesn't work.

Full system log: https://gist.githubusercontent.com/anonymous/63781b836f7f80357132/raw/80317ff85eab5219ec6bd1d128f597d85fbe0559/gistfile1.txt

 

 

PS

I hope I didn't miss anything. Tell me please if you need more data to diagnose the issue. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...