Created
August 26, 2020 01:12
-
-
Save polikutinevgeny/7d673fe2453d88461ab06edfd7556d14 to your computer and use it in GitHub Desktop.
Patch Yoga Slim 7 DSDT table to wakeup on lid open (when already patched to advertise S3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/dsdt.dsl 2020-08-25 18:13:11.091416139 +1000 | |
+++ b/dsdt.dsl 2020-08-26 10:59:17.854877511 +1000 | |
@@ -6993,6 +6993,18 @@ | |
Return (One) | |
} | |
+ Method (_PRW, 0, NotSerialized) // _PRW: Power Resources for Wake | |
+ { | |
+ If ((WKPM == One)) | |
+ { | |
+ Return (GPRW (0x19, 0x04)) | |
+ } | |
+ Else | |
+ { | |
+ Return (GPRW (0x19, Zero)) | |
+ } | |
+ } | |
+ | |
Method (_PSW, 1, NotSerialized) // _PSW: Power State Wake | |
{ | |
If (^^PCI0.LPC0.ECOK ()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment