diff options
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/system76/ec/acpi/ec.asl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ec/system76/ec/acpi/ec.asl b/src/ec/system76/ec/acpi/ec.asl index 128bd56304..612c358e08 100644 --- a/src/ec/system76/ec/acpi/ec.asl +++ b/src/ec/system76/ec/acpi/ec.asl @@ -62,9 +62,13 @@ Device (\_SB.PCI0.LPCB.EC0) } } + Name (S3OS, Zero) Method (PTS, 1, Serialized) { Debug = Concatenate("EC: PTS: ", ToHexString(Arg0)) If (ECOK) { + // Save ECOS during sleep + S3OS = ECOS + // Clear wake cause WFNO = Zero } @@ -73,6 +77,9 @@ Device (\_SB.PCI0.LPCB.EC0) Method (WAK, 1, Serialized) { Debug = Concatenate("EC: WAK: ", ToHexString(Arg0)) If (ECOK) { + // Restore ECOS after sleep + ECOS = S3OS + // Set current AC state ^^^^AC.ACFG = ADP |