Advertisement
kradnozd

RehabMan WAK2 Fix

Jan 27th, 2015
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #Maintained by: RehabMan for: Laptop Patches
  2. #system_WAK2.txt
  3.  
  4. #
  5. # In 10.8.5 and perhaps later versions of OS X, DSDT method _WAK
  6. # called after resuming from S3 suspend (Sleep, or suspend to RAM),
  7. # is called with garbage in Arg0, where it should be a value
  8. # representing the sleep state being left (1-5).
  9. #
  10. # This causes problems for code in DSDT _WAK method which expects
  11. # and checks against Arg0==3 for wake from sleep to turn on various
  12. # devices or restore internal state to a working state.
  13. #
  14. # This patch adds code at the very beginning of the method to
  15. # force an an out-of-range Arg0 to 3.
  16. #
  17. # See system_WAK1.txt for an alternate patch
  18. #
  19.  
  20. into method label _WAK code_regex ([\s\S]*) replace_matched
  21. begin
  22. If (LOr(LLess(Arg0,1),LGreater(Arg0,5))) { Store(3,Arg0) }\n
  23. %1
  24. end;
  25.  
  26. into method label \_WAK code_regex ([\s\S]*) replace_matched
  27. begin
  28. If (LOr(LLess(Arg0,1),LGreater(Arg0,5))) { Store(3,Arg0) }\n
  29. %1
  30. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement