RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,470
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
-
- Mobile Phone
-
@the-braveknight & @RehabMan
in case the laptop needs it Enabled on _PTS & Disabled on _WAK:
In my case the Original WAK is renamed to ZWAK and copied as patched for Battery Status on lets say SSDT-BAT and PTS to ZPTS so i have it on SSDT-PTS with:
Is it ok to have the _PTS / _WAK on separate SSDTs, will that cause problems for Discrete GPU or its fine like this:Code:// Overriding _PTS DefinitionBlock("", "SSDT", 2, "T440P", "PTS", 0) { External(ZPTS, MethodObj) External(_SB.PCI0.XHC.PMEE, FieldUnitObj) // In DSDT, native _PTS is renamed to ZPTS // As a result, calls to this method land here. Method(_PTS, 1) { ZPTS(Arg0) If (5 == Arg0) { // fix "auto start after shutdown if a USB Device is Plugged In" \_SB.PCI0.XHC.PMEE = 0 } } } //EOF
And the same with _OFF on WAK on SSDT-BATCode:// 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
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.
Last edited: