Allow Trackpad gestures on MacBook4,1 and MacBook5,2

This commit is contained in:
Mykola Grymalyuk
2021-09-08 22:17:05 -06:00
parent 15e4650785
commit 600e71581c
5 changed files with 25 additions and 0 deletions

View File

@@ -31,6 +31,8 @@
- Nvidia Tesla
- AMD TeraScale 1
- TeraScale 2 acceleration to be added in the future
- Allow Trackpad gestures on MacBook4,1 and MacBook5,2
- System Preferences will not report settings however
## 0.2.4

View File

@@ -171,6 +171,7 @@ class BuildOpenCore:
("FeatureUnlock.kext", self.constants.featureunlock_version, self.constants.featureunlock_path, lambda: self.model in ModelArray.SidecarPatch),
("DebugEnhancer.kext", self.constants.debugenhancer_version, self.constants.debugenhancer_path, lambda: self.constants.kext_debug is True),
("latebloom.kext", self.constants.latebloom_version, self.constants.latebloom_path, lambda: self.model in ModelArray.PCIRaceCondition),
("AppleUSBTrackpad.kext", self.constants.apple_trackpad, self.constants.apple_trackpad_path, lambda: self.model in ["MacBook4,1", "MacBook5,2"]),
]:
self.enable_kext(name, version, path, check)

View File

@@ -330,6 +330,10 @@ class Constants:
@property
def latebloom_path(self):
return self.payload_kexts_path / Path(f"Misc/latebloom-v{self.latebloom_version}.zip")
@property
def apple_trackpad_path(self):
return self.payload_kexts_path / Path(f"Misc/AppleUSBTrackpad-v{self.apple_trackpad}.zip")
@property
def plist_folder_path(self):

View File

@@ -934,6 +934,24 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>AppleUSBTrackpad.kext</string>
<key>Comment</key>
<string>Fix legacy MacBook Trackpad</string>
<key>Enabled</key>
<false/>
<key>ExecutablePath</key>
<string>Contents/MacOS/AppleUSBTrackpad</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>20.4.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
</array>
<key>Block</key>
<array/>

Binary file not shown.