summaryrefslogtreecommitdiff
path: root/src/ec/clevo/it5570e/acpi/lid.asl
blob: 3a1ab1750ea3142c54ef7f22364e4483754187e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
	}
}