diff --git a/CHANGELOG.md b/CHANGELOG.md index 44be2c8f9..b8e44fd61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Resources/Build.py b/Resources/Build.py index a944be244..0d65f7a6a 100644 --- a/Resources/Build.py +++ b/Resources/Build.py @@ -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) diff --git a/Resources/Constants.py b/Resources/Constants.py index afd25ec8f..737ff0b92 100644 --- a/Resources/Constants.py +++ b/Resources/Constants.py @@ -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): diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index 81c960596..9f3c367ae 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -934,6 +934,24 @@ PlistPath Contents/Info.plist + + Arch + x86_64 + BundlePath + AppleUSBTrackpad.kext + Comment + Fix legacy MacBook Trackpad + Enabled + + ExecutablePath + Contents/MacOS/AppleUSBTrackpad + MaxKernel + + MinKernel + 20.4.0 + PlistPath + Contents/Info.plist + Block diff --git a/payloads/Kexts/Misc/AppleUSBTrackpad-v1.0.0.zip b/payloads/Kexts/Misc/AppleUSBTrackpad-v1.0.0.zip new file mode 100644 index 000000000..6c1a474a4 Binary files /dev/null and b/payloads/Kexts/Misc/AppleUSBTrackpad-v1.0.0.zip differ