diff options
Diffstat (limited to 'src/ec/clevo/it5570e/acpi/lid.asl')
-rw-r--r-- | src/ec/clevo/it5570e/acpi/lid.asl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/ec/clevo/it5570e/acpi/lid.asl b/src/ec/clevo/it5570e/acpi/lid.asl new file mode 100644 index 0000000000..3a1ab1750e --- /dev/null +++ b/src/ec/clevo/it5570e/acpi/lid.asl @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +Device (LID) +{ + Name (_HID, "PNP0C0D") + Name (_PRW, Package () { EC_GPE_LID, 3 }) + + Method (_LID) + { + Printf ("LID: _LID: state=%o", ToDecimalString (\_SB.PCI0.LPCB.EC0.LSTE)) + + Return (\_SB.PCI0.LPCB.EC0.LSTE) + } + + Method (_PSW, 1) + { + Printf ("LID: _PSW: set lid wake enable=%o", ToDecimalString (Arg0)) + + \_SB.PCI0.LPCB.EC0.LWKE = Arg0 + } +} |