Right, the results for sleep and wake with an RX560 are in. Thanks to
@Gigamaxx and
@bortoni for the pointers.
State of play -
With the RadeonDeInit flag set to "true" and no extra kexts the system worked well, was fully accelerated but sleep turned-off the display, wound-down the hard disk but left the motherboard on. The keyboard had no response so wake didn't happen. A reset was needed.
With RadeonDeInit set to "false" AND the Lilu and Whatevergreen kexts in my EFI/CLOVER/kexts/Other directory the system went to sleep but woke instantly to the log-in screen. I also tried the kexts in the L/E directory on my SSD. No difference.
What I did next -
I left the two kexts in place in the EFI folder (removed the others in L/E and rebuilt caches) and added the following under the Devices key in my config.plist:
Code:
<key>Arbitrary</key>
<array>
<dict>
<key>Comment</key>
<string>AMD Sleep Patch</string>
<key>CustomProperties</key>
<array>
<dict>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>CFG,CFG_FB_LIMIT</string>
<key>Value</key>
<data>
Aw==
</data>
</dict>
</array>
<key>PciAddr</key>
<string>01:00.00</string>
</dict>
This is suggested by
@shuhung at post #7
here.
As advised by
@Gigamaxx I changed the FB count to 03 (the "Aw==" in the code) after first trying 05.
This has worked and sleep now works pretty well. The display turns off, the hard drive eventually spins down, there's a brief flick up in speed of the GPU fans and then the system goes silent, all LEDs off. A press of the key brings everything back - with sound.
IMPORTANT: If you read this post previously you'll know I initially had a completely different experience with this patch. This seems to have been caused by a typo on my part. Apologies if I mislead anyone trying to solve the same problem.
Thanks again to
@shuhung for letting me know. Appreciated!
I noticed
a similar edit from
@jb007 to the above one at post #10
on the same thread, to change the displayed GPU name in System Report.
You can also add this code to the Devices/Arbitrary section:
Code:
<key>Arbitrary</key>
<array>
<dict>
<key>Comment</key>
<string>GPU Rename</string>
<key>CustomProperties</key>
<array>
<dict>
<key>Disabled</key>
<false/>
<key>Key</key>
<string>CFG,model</string>
<key>Value</key>
<string>Radeon RX 560 OC</string>
</dict>
</array>
<key>PciAddr</key>
<string>01:00.00</string>
</dict>
</array>
Here's how the new name string looks when in place:
Since I tried this I've actually removed the rename patch and am sticking with the name Whatevergreen gives me - "Radeon Pro 560". Given my skills with code it's safer to keep it to a minimum! LOL!
So to clarify: I have Lilu and Whatevergreen kexts in the EFI/CLOVER/kexts/Other folder. I have RadeonDeInit set to "false" and I have the CFG_FB_LINIT patch set to "03" in place. (Intel injection is set to "true" although the BIOS hides the iGPU from the OS).
P.S I also downloaded "AMD9xxxControllerPatcher.kext" and took a look through it's info.plist to see what it did (that's all it is, no compiled code) and it looks interesting, but in the end I didn't need to try it. Unless something changes ...