RehabMan thanks a big lot! I think your recent suggestion to execute the patch "Fix _WAK Arg0 v2" from your MaciASL repository did the trick!
Can you explain, in detail how you applied this patch?I have a similar problem with Sleep/Wake on my ASROCK Z270 Gaming ITX/ac motherboard.
When I put the machine to sleep it immediately wakes up again, does several resets, and then wakes.
I extracted the DSDT.aml. I used iasl -da -dl DSDT.aml to disassemble it to DSDT.dsl.
I downloaded / cloned Rehabman's Laptop patches. I opened the DSDT.dsl file in MaciASL, found the patch in the cloned repository for "Fix_WAK Arg0 v2' , and patched.
But I can't compile! I get 178 resulting compile errors, with most of them being UNDEFINES. See attached screen shot.
What am I doing wrong?
UPDATE: If I change the MacIASL -> Preferences to 5.1 the compile errors reduce to:
16286, 6126, syntax error, unexpected PARSEOP_IF
and
16322, 6126, syntax error, unexpected '}', expecting $end and premature End-Of-File
Are there know fixes for these errors? Should I be using version 5.1 of MacIASL ?
UPDATE # 2.
Found this thread:
MaciASL Patch Repository Thread
I applied the patch for "Fix _WAK Arg0 v2". Still get the above errors.
I have added the DSDT.dsl file after spending a while trying to find the missing bracket(s). Is there a way of finding matching brackets in MacIASL? A google search didn't reveal anything for me.