2020-06-26 08:22:55 -05:00
/*
2020-11-03 11:58:35 -06:00
* For use with BrightnessKeys.kext and YogaSMC
* https://github.com/zhen-zen/YogaSMC
*
*/
2020-05-21 17:41:26 -05:00
2020-11-03 11:58:35 -06:00
DefinitionBlock("", "SSDT", 2, "tyler", "_KBD", 0)
{
External (_SB.PCI0.LPCB.KBD, DeviceObj)
2020-03-29 15:14:00 -05:00
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
2020-05-22 11:05:40 -05:00
"38=e05b", // Left Alt (mismapped to Left GUI by default) = Left Alt
"e038=e05c", // Right Alt (mismapped to Right GUI by default) = Right Alt
"e05b=38", // Windows (mismapped to Left Alt by default) = Left GUI
2020-03-31 19:27:54 -05:00
// "1d=80", // Fn + B = Deadkey
// "54=80", // Fn + S = Deadkey
2020-03-29 15:14:00 -05:00
},
},
})
}
}
//EOF