2020-03-31 19:27:54 -05:00
DefinitionBlock("", "SSDT", 2, "OCLT", "x1input", 0)
2020-03-29 15:14:00 -05:00
{
External(_SB.PCI0.LPCB.KBD, DeviceObj)
External(_SB.PCI0.LPCB.EC, DeviceObj)
External(_SB.PCI0.LPCB.EC.XQ6A, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ15, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ14, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ16, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ64, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ66, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ60, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ61, MethodObj)
External(_SB.PCI0.LPCB.EC.XQ62, MethodObj)
Scope (_SB.PCI0.LPCB.EC)
{
2020-03-31 19:27:54 -05:00
Method (_Q6A, 0, NotSerialized) // F4 - Microphone Mute = F4
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
Notify(\_SB.PCI0.LPCB.KBD, 0x033E)
}
Else
{
\_SB.PCI0.LPCB.EC.XQ6A()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q15, 0, NotSerialized) // F5 - Brightness Down = F14
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
Notify(\_SB.PCI0.LPCB.KBD, 0x0405)
Notify(\_SB.PCI0.LPCB.KBD, 0x20)
}
Else
{
\_SB.PCI0.LPCB.EC.XQ15()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q14, 0, NotSerialized) // F6 - Brightness Up = F15
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
Notify(\_SB.PCI0.LPCB.KBD, 0x0406)
Notify(\_SB.PCI0.LPCB.KBD, 0x10)
}
Else
{
\_SB.PCI0.LPCB.EC.XQ14()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q16, 0, NotSerialized) // F7 - Dual Display = F16
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
2020-03-31 19:27:54 -05:00
Notify(\_SB.PCI0.LPCB.KBD, 0x0367)
2020-03-29 15:14:00 -05:00
}
Else
{
\_SB.PCI0.LPCB.EC.XQ16()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q64, 0, NotSerialized) // F8 - Network = F8
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
2020-03-31 19:27:54 -05:00
Notify(\_SB.PCI0.LPCB.KBD, 0x0342)
2020-03-29 15:14:00 -05:00
}
Else
{
\_SB.PCI0.LPCB.EC.XQ64()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q66, 0, NotSerialized) // F9 - Settings = F19
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
Notify(\_SB.PCI0.LPCB.KBD, 0x036A)
}
Else
{
\_SB.PCI0.LPCB.EC.XQ66()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q60, 0, NotSerialized) // F10 - Bluetooh = F20
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
Notify(\_SB.PCI0.LPCB.KBD, 0x036B)
}
Else
{
\_SB.PCI0.LPCB.EC.XQ60()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q61, 0, NotSerialized) // F11 - Keyboard = F17
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
Notify(\_SB.PCI0.LPCB.KBD, 0x0368)
}
Else
{
\_SB.PCI0.LPCB.EC.XQ61()
}
}
2020-03-31 19:27:54 -05:00
Method (_Q62, 0, NotSerialized) // F12 - Star = F18
2020-03-29 15:14:00 -05:00
{
If (_OSI ("Darwin"))
{
2020-03-31 19:27:54 -05:00
Notify(\_SB.PCI0.LPCB.KBD, 0x0369)
2020-03-29 15:14:00 -05:00
}
Else
{
\_SB.PCI0.LPCB.EC.XQ62()
}
}
}
Scope (_SB.PCI0.LPCB.KBD)
{
2020-04-05 19:00:52 -05:00
Method(_DSM, 4)
{
If (!Arg2) { Return (Buffer() { 0x03 } ) }
Return (Package()
{
"RM,oem-id", "LENOVO",
"RM,oem-table-id", "Thinkpad_ClickPad",
})
}
2020-03-29 15:14:00 -05:00
// Overrides (the example data here is default in the Info.plist)
Name(RMCF, Package()
{
2020-04-05 19:00:52 -05:00
"Synaptics TouchPad", Package()
{
"BogusDeltaThreshX", 800,
"BogusDeltaThreshY", 800,
"Clicking", ">y",
"DragLockTempMask", 0x40004,
"DynamicEWMode", ">n",
"FakeMiddleButton", ">n",
"HWResetOnStart", ">y",
//"ForcePassThrough", ">y",
//"SkipPassThrough", ">y",
"PalmNoAction When Typing", ">y",
"ScrollResolution", 800,
"SmoothInput", ">y",
"UnsmoothInput", ">y",
"Thinkpad", ">y",
"EdgeBottom", 0,
"FingerZ", 30,
"MaxTapTime", 100000000,
"MouseMultiplierX", 2,
"MouseMultiplierY", 2,
"MouseScrollMultiplierX", 2,
"MouseScrollMultiplierY", 2,
//"TrackpointScrollYMultiplier", 1, //Change this value to 0xFFFF in order to inverse the vertical scroll direction of the Trackpoint when holding the middle mouse button.
//"TrackpointScrollXMultiplier", 1, //Change this value to 0xFFFF in order to inverse the horizontal scroll direction of the Trackpoint when holding the middle mouse button.
},
2020-03-29 15:14:00 -05:00
"Keyboard", Package()
{
"Custom PS2 Map", Package()
{
Package() { },
2020-03-31 19:27:54 -05:00
"e037=64", // PrtSc = F13
"46=80", // Fn + K = Deadkey
"e045=80", // Fn + P = Deadkey
// "1d=80", // Fn + B = Deadkey
// "54=80", // Fn + S = Deadkey
2020-03-29 15:14:00 -05:00
},
},
})
}
}
//EOF