Sniki
Moderator
- Joined
- Jan 5, 2016
- Messages
- 2,316
- Motherboard
- HP Elite 8300 SFF
- CPU
- i7-3770
- Graphics
- HD 3000 | GTX 1650 LP
- Mac
-
- Mobile Phone
-
Yes, i mean ofc i would have one PTS & One WAK, but i just wanted to know if this SSDT-PTS is correct like this if i need the Enable _PTS and disable on _WAK patching "just in case laptop does have problems with sleep"You can only have one \_PTS and one \_WAK in the entire ACPI set.
If you want _PTS/_WAK to do multiple things, you'll need to have all the code you need in a single place.
You will notice my SSDT-PTSWAK.dsl in my hotpatch example repo does a variety of things, optionally, based on SSDT-Config.dsl settings.
Code:
// Overriding _PTS
DefinitionBlock("", "SSDT", 2, "T440P", "PTS", 0)
{
External(ZPTS, MethodObj)
External(_SB.PCI0.XHC.PMEE, FieldUnitObj)
External(\_SB.PCI0.PEG.VID._ON, MethodObj)
// In DSDT, native _PTS is renamed to ZPTS
// As a result, calls to this method land here.
Method(_PTS, 1)
{
If (CondRefOf(\_SB.PCI0.PEG.VID._ON)) { \_SB.PCI0.PEG.VID._ON() }
ZPTS(Arg0)
If (5 == Arg0)
{
// fix "auto start after shutdown if a USB Device is Plugged In"
\_SB.PCI0.XHC.PMEE = 0
}
}
}
//EOF