aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/starlabs/merlin/acpi/suspend.asl16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/ec/starlabs/merlin/acpi/suspend.asl b/src/ec/starlabs/merlin/acpi/suspend.asl
index 0f1c27c210..c65ca6d9a5 100644
--- a/src/ec/starlabs/merlin/acpi/suspend.asl
+++ b/src/ec/starlabs/merlin/acpi/suspend.asl
@@ -98,6 +98,20 @@ Method (RWAK, 1, Serialized)
}
\_SB.PCI0.LPCB.EC.FLKE = \_SB.PCI0.LPCB.FLKC
- \_SB.PCI0.LPCB.EC.KLSE = \_SB.PCI0.LPCB.KLSC
+
+ Switch (ToInteger (\_SB.PCI0.LPCB.KLSC))
+ {
+ // 0x00 == Disabled == 0x00
+ // 0x01 == Enabled == 0xdd
+ Case (0x00)
+ {
+ \_SB.PCI0.LPCB.EC.KLSE = 0x00
+ }
+ Case (0x01)
+ {
+ \_SB.PCI0.LPCB.EC.KLSE = 0xdd
+ }
+ }
+
\_SB.PCI0.LPCB.EC.KLBE = \_SB.PCI0.LPCB.KLBC
}