Skip to content

Instantly share code, notes, and snippets.

@polikutinevgeny
Created August 26, 2020 01:12
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polikutinevgeny/7d673fe2453d88461ab06edfd7556d14 to your computer and use it in GitHub Desktop.
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)
--- 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