@deeveedee, thanks for your suggestions. Very appreciated for your help. Updated most serious faults in EFI pack directly in my previous post.
- Removed suggested PlatformInfo -> Generic data for security reasons.
- Returned Rename-SSDT.aml file. Removed it on EFI publishing by error.
Answering about -wegnoegpu: ofcourse I don't have it now. The config.plist in published EFI is an archive version that is currently a little modified to support Nvidia. And igfxonln=1 is now set in my new config.
I'll look in the list to fix everything you suggested. Planning to remove Nvidia card to test sleep again with new changes in next 2-3 days and publish new EFI pack with more investigations.
EDIT 1:
A little shocked about SSDT-PM.aml. Just curious how this happened
I'll remake it too.
EDIT 2:
Okay, I found time today to check config.plist. Applied next changes:
- Removed SSDT-PM.aml that as you said wasn't an PM. Anyway, looks like PM not needed as X86PlatformPlugin is working without it on my machine. Checked with IORegistryExplorer.
- Removed FixShutdown-USB-SSDT.aml. It does nothing and either not needed as I checked my machine is working stable without it. And it was switched off on my latest config too, so...
- Added igfxonln=1 flag in my stable config.plist. As I said, I added it on last changes on other config.
- Removed alcid=1 flag. Now it is set via layout-id. There was one error with PciRoot id. Instead of PciRoot(0x0)/Pci(0x1b,0x0) I set to PciRoot(0x0)/Pci(0x1f,0x3) as in reality there is my HDEF device.
- Removed XHCI-Unsupported.kext. I messed up with it when tried to patch USB ports and forgot to delete it.
- Added SSDT-GPRW.aml to fix instant wake. I added it from my latest config. Looks like my PC needs this. Followed Dortania.
The only thing as I see is SMBIOS. I didn't try to change it at this moment. But what is curious that I tried to eject all USB devices and tried to put my PC with Nvidia card attached and CSM support enabled and looks like sleep is working in this case too. Don't know why it didn't last time. Maybe after updates to config. And with attached USB it doesn't wake, of course.
I'll play around with this. Must mention that my Nvidia is used only sometimes to connect external graphic tablet. I didn't try putting in sleep with attached display on it. My main display is on HD630.
So I'm ready to provide new info. Attaching EFI.
EDIT 3:
When trying to sleep with USB and after restart using
pmset -g log
I receive next reason of failure to wake up:
Failure during wake: PEG1(),IGPU(),SAT0(AppleAHCI),HDEF() : Some drivers failed to handle setPowerState
Looks like USB are not patched good, but there are issues with my motherboard. UEFI doesn't give me full access to ports. This issue already happened with some Asus and ASRock motherboards as I see on some forums. Don't know if it can be worked around.