Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep { Store (Zero, P80D) P8XH (Zero, Arg0) PTS (Arg0) If (LEqual (Arg0, 0x03)) { If (LAnd (DTSE, LGreater (TCNT, One))) { TRAP (TRTD, 0x1E) } } If (LOr (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)), LEqual ( Arg0, 0x05))) { If (LEqual (PFLV, FDTP)) { Store (One, GP27) } } } Method (_WAK, 1, Serialized) // _WAK: Wake { P8XH (One, 0xAB) WAK (Arg0) If (NEXP) { If (And (OSCC, 0x02)) { \_SB.PCI0.NHPG () } If (And (OSCC, 0x04)) { \_SB.PCI0.NPME () } } If (LEqual (Arg0, 0x03)) { If (LEqual (Zero, ACTT)) { If (LEqual (ECON, One)) { Store (Zero, \_SB.PCI0.LPCB.H_EC.CFAN) } } } If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04))) { If (LAnd (DTSE, LGreater (TCNT, One))) { TRAP (TRTD, 0x14) } If (LEqual (OSYS, 0x07D2)) { If (And (CFGD, One)) { If (LGreater (\_PR.CPU0._PPC, Zero)) { Subtract (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC) PNOT () Add (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC) PNOT () } Else { Add (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC) PNOT () Subtract (\_PR.CPU0._PPC, One, \_PR.CPU0._PPC) PNOT () } } } If (LEqual (ECON, One)) { If (LNotEqual (LIDS, \_SB.PCI0.LPCB.H_EC.LSTE)) { Store (\_SB.PCI0.LPCB.H_EC.LSTE, LIDS) If (IGDS) { If (\_SB.PCI0.GFX0.GLID (LIDS)) { Or (0x80000000, \_SB.PCI0.GFX0.CLID, \_SB.PCI0.GFX0.CLID) } } Notify (\_SB.LID0, 0x80) } If (LNotEqual (\_SB.PCI0.LPCB.H_EC.DOCK, DSTS)) { Store (\_SB.PCI0.LPCB.H_EC.DOCK, DSTS) If (LAnd (\_SB.PCI0.HDEF.DCKS, One)) { Store (DSTS, \_SB.PCI0.HDEF.DCKA) } If (LEqual (DSTS, One)) { If (LEqual (Arg0, 0x03)) { Sleep (0x03E8) Store (PDBR, SSMP) Sleep (0x03E8) } Notify (\_SB.PCI0.DOCK, Zero) } Else { Notify (\_SB.PCI0.DOCK, One) } } If (LEqual (BNUM, Zero)) { If (LNotEqual (\_SB.PCI0.LPCB.H_EC.VPWR, PWRS)) { Store (\_SB.PCI0.LPCB.H_EC.VPWR, PWRS) PNOT () } } Else { If (LNotEqual (\_SB.PCI0.LPCB.H_EC.RPWR, PWRS)) { Store (\_SB.PCI0.LPCB.H_EC.RPWR, PWRS) PNOT () } } } If (LEqual (RP1D, Zero)) { Notify (\_SB.PCI0.RP01, Zero) } If (LEqual (RP2D, Zero)) { Notify (\_SB.PCI0.RP02, Zero) } If (LEqual (RP3D, Zero)) { Notify (\_SB.PCI0.RP03, Zero) } If (LEqual (RP4D, Zero)) { Notify (\_SB.PCI0.RP04, Zero) } If (LEqual (RP5D, Zero)) { Notify (\_SB.PCI0.RP05, Zero) } If (LEqual (RP6D, Zero)) { Notify (\_SB.PCI0.RP06, Zero) } If (LEqual (RP7D, Zero)) { If (LEqual (DSTS, Zero)) { Notify (\_SB.PCI0.RP07, Zero) } } If (LEqual (RP8D, Zero)) { If (LEqual (DSTS, Zero)) { Notify (\_SB.PCI0.RP08, Zero) } } } Return (Package (0x02) { Zero, Zero }) }