Closed Joaotcs closed 4 years ago
fixed! Close topic
Wow, that was fast. Can you please share some results? If anyone else need touchscreen?
Sure ;) I have tested on another laptop and it also worked.
So you need to add this TPL0.aml to config.plist:
<dict>
<key>Comment</key>
<string>I2C Touchscreen</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-TPL0.aml</string>
</dict>
and replace rename
Comment Change _INI to XINI of CPD0 and TPL0 device Count 2 Enabled Find X0lOSQCgEpVPU1lTLimit 0 Mask OemTableId Replace WElOSQCgEpVPU1lTReplaceMask Skip 2 TableLength 0 TableSignature Comment Change _CRS to XCRS of CPD0 and TPL0 device Count 2 Enabled Find X0NSUwCgDpVPU1lTLimit 0 Mask OemTableId Replace WENSUwCgDpVPU1lTReplaceMask Skip 2 TableLength 0 TableSignature
Here is TLP0.aml:
/*
Compiler Version 0x20180427 (538444839) */ DefinitionBlock ("", "SSDT", 2, "ACDT", "TPL0", 0x00000000) { External (SB.GNUM, MethodObj) // 1 Arguments (from opcode) External (SB.INUM, MethodObj) // 1 Arguments (from opcode) External (SB.PCI0.I2C0.TPL0, DeviceObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.BADR, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.HID2, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.INT1, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.INT2, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.SBFB, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.SBFG, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.SBFI, IntObj) // (from opcode) External (SB.PCI0.I2C0.TPL0.SPED, IntObj) // (from opcode) External (SB.SHPO, MethodObj) // 2 Arguments (from opcode) External (SB.SRXO, MethodObj) // 2 Arguments (from opcode) External (GPLI, FieldUnitObj) // (from opcode) External (OSYS, FieldUnitObj) // (from opcode) External (SBFI, IntObj) // (from opcode) External (SDM0, FieldUnitObj) // (from opcode) External (THHA, FieldUnitObj) // (from opcode) External (TPSA, FieldUnitObj) // (from opcode)
Scope (_SB.PCI0.I2C0.TPL0) { Method (_INI, 0, NotSerialized) // _INI: Initialize { If (_OSI ("Darwin")){} ElseIf (LLess (OSYS, 0x07DC)) { SRXO (GPLI, One) }
Store (GNUM (GPLI), INT1)
Store (INUM (GPLI), INT2)
If (_OSI ("Darwin"))
{
SHPO (GPLI, One)
}
ElseIf (LEqual (SDM0, Zero))
{
SHPO (GPLI, One)
}
Store (THHA, HID2)
Store (TPSA, BADR)
Store (0x00061A80, SPED)
}
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (_OSI ("Darwin"))
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
Else
{
If (LLess (OSYS, 0x07DC))
{
Return (SBFI)
}
If (LEqual (SDM0, Zero))
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
Return (ConcatenateResTemplate (SBFB, SBFI))
}
}
} }
Hi! I wanted to try your EFI, but it seems that I can't make it work now... How to add Touchscreen? I tried to make one for my touchscreen according to your new .aml files, but wasn't capable :/ My device: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/I2C0@15/VoodooI2CPCIController/VoodooI2CControllerNub/VoodooI2CControllerDriver/TPL0