RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,058
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
Great, thank you
But what about XHC.PMEE that when shutting laptop down and a USB is plugged in, laptop reboots instead of shutdown.
Shall i create a SSDT-PTS and take only that fix from your SSDT-PTSWAK like this:
Code:// Overriding _PTS DefinitionBlock("", "SSDT", 2, "T440P", "PTS", 0) { External(ZPTS, MethodObj) External(RMCF.XPEE, IntObj) // In DSDT, native _PTS is renamed to ZPTS // As a result, calls to this method land here. Method(_PTS, 1) { If (5 == Arg0) { // XHC.PMEE fix, if enabled External(\_SB.PCI0.XHC.PMEE, FieldUnitObj) If (CondRefOf(\RMCF.XPEE)) { If (\RMCF.XPEE && CondRefOf(\_SB.PCI0.XHC.PMEE)) { \_SB.PCI0.XHC.PMEE = 0 } } } } } //EOF
If you have that issue, yes... you have the right idea.
But your implementation of _PTS is not right. Again, you know that you have XHC.PMEE and you have no need to leave this patch configurable (that's what XPEE is all about in my RMCF... is just to allow people to easily change the behavior). And of course you need to call the origin _PTS.
So, you end up renaming _PTS to ZPTS, and writing a replacement _PTS (classic "rename/replace/delegate").
This code to be #include:
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"
\_SB.PCI0.XHC.PMEE = 0
}
}
//}
//EOF