1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* The _PTS method (Prepare To Sleep) is called before the OS is
4 * entering a sleep state. The sleep state number is passed in Arg0
12 /* The _WAK method is called on system wakeup */
16 /* Update in case state changed while asleep */
17 /* Update AC status */
18 Local0 = \_SB.PCI0.LPCB.EC0.ADPT
19 if (Local0 != \PWRS) {
21 Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
24 /* Update LID status */
25 Local0 = \_SB.PCI0.LPCB.EC0.LIDF
26 if (Local0 != \LIDS) {
28 Notify (\_SB.LID0, 0x80)
31 Return(Package(){0,0})