Add legacy iSight patch

Thanks Jazzny for notifying!
This commit is contained in:
Mykola Grymalyuk
2021-11-18 16:46:46 -07:00
parent eef336ab62
commit 889b5f3c71
6 changed files with 49 additions and 5 deletions
+4
View File
@@ -20,6 +20,10 @@
- Fix Content Caching with spoofless usage - Fix Content Caching with spoofless usage
- Allow disabling of ConnectDrivers - Allow disabling of ConnectDrivers
- Aid with Hibernation on MacBookPro9,1/MacBookPro10,1 - Aid with Hibernation on MacBookPro9,1/MacBookPro10,1
- Add legacy iSight patch
- Applicable for MacBook4,1/5,2
- Affected Device IDs: 0x8300, 0x8501, 0x8503
- Credit to parrotgeek1 for LegacyUSBVideoSupport
## 0.3.1 ## 0.3.1
- Increment Binaries: - Increment Binaries:
+10
View File
@@ -29,6 +29,7 @@ smbios_dictionary = {
"Screen Size": 13, "Screen Size": 13,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.Intel.Archs.GMA_950 device_probe.Intel.Archs.GMA_950
], ],
@@ -48,6 +49,7 @@ smbios_dictionary = {
"Screen Size": 13, "Screen Size": 13,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.Intel.Archs.GMA_950 device_probe.Intel.Archs.GMA_950
], ],
@@ -67,6 +69,7 @@ smbios_dictionary = {
"Screen Size": 13, "Screen Size": 13,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.Intel.Archs.GMA_X3100 device_probe.Intel.Archs.GMA_X3100
], ],
@@ -86,6 +89,7 @@ smbios_dictionary = {
"Screen Size": 13, "Screen Size": 13,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.Intel.Archs.GMA_X3100 device_probe.Intel.Archs.GMA_X3100
], ],
@@ -140,6 +144,7 @@ smbios_dictionary = {
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046, "Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
"Screen Size": 13, "Screen Size": 13,
"Ethernet Chipset": "Nvidia", "Ethernet Chipset": "Nvidia",
"Legacy iSight": True,
"nForce Chipset": True, "nForce Chipset": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.NVIDIA.Archs.Tesla device_probe.NVIDIA.Archs.Tesla
@@ -1686,6 +1691,7 @@ smbios_dictionary = {
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2045, "Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2045,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.AMD.Archs.R500, device_probe.AMD.Archs.R500,
], ],
@@ -1704,6 +1710,7 @@ smbios_dictionary = {
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2045, "Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2045,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.Intel.Archs.GMA_950, device_probe.Intel.Archs.GMA_950,
], ],
@@ -1722,6 +1729,7 @@ smbios_dictionary = {
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046, "Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.AMD.Archs.R500, device_probe.AMD.Archs.R500,
], ],
@@ -1740,6 +1748,7 @@ smbios_dictionary = {
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046, "Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.Intel.Archs.GMA_950, device_probe.Intel.Archs.GMA_950,
], ],
@@ -1758,6 +1767,7 @@ smbios_dictionary = {
"Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046, "Bluetooth Model": bluetooth_data.bluetooth_data.BRCM2046,
"UGA Graphics": True, "UGA Graphics": True,
"Ethernet Chipset": "Marvell", "Ethernet Chipset": "Marvell",
"Legacy iSight": True,
"Stock GPUs": [ "Stock GPUs": [
device_probe.AMD.Archs.R500, device_probe.AMD.Archs.R500,
device_probe.NVIDIA.Archs.Curie device_probe.NVIDIA.Archs.Curie
+18
View File
@@ -1113,6 +1113,24 @@
<key>PlistPath</key> <key>PlistPath</key>
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>LegacyUSBVideoSupport.kext</string>
<key>Comment</key>
<string>Legayc iSight support</string>
<key>Enabled</key>
<false/>
<key>ExecutablePath</key>
<string>Contents/MacOS/LegacyUSBVideoSupport</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string>18.0.0</string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
</array> </array>
<key>Block</key> <key>Block</key>
<array/> <array/>
Binary file not shown.
+7
View File
@@ -343,6 +343,13 @@ class BuildOpenCore:
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.cpu_data.penryn.value: if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.cpu_data.penryn.value:
print("- Adding IOHIDFamily patch") print("- Adding IOHIDFamily patch")
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.iokit.IOHIDFamily")["Enabled"] = True self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.iokit.IOHIDFamily")["Enabled"] = True
# Legacy iSight patches
try:
if smbios_data.smbios_dictionary[self.model]["Legacy iSight"] is True:
self.enable_kext("LegacyUSBVideoSupport.kext", self.constants.apple_isight_version, self.constants.apple_isight_path)
except KeyError:
pass
# SSDT patches # SSDT patches
if smbios_data.smbios_dictionary[self.model]["CPU Generation"] == cpu_data.cpu_data.nehalem.value and not (self.model.startswith("MacPro") or self.model.startswith("Xserve")): if smbios_data.smbios_dictionary[self.model]["CPU Generation"] == cpu_data.cpu_data.nehalem.value and not (self.model.startswith("MacPro") or self.model.startswith("Xserve")):
+10 -5
View File
@@ -42,11 +42,12 @@ class Constants:
## Apple ## Apple
## https://www.apple.com ## https://www.apple.com
self.marvel_version = "1.0.1" # MarvelYukonEthernet self.marvel_version = "1.0.1" # MarvelYukonEthernet
self.nforce_version = "1.0.1" # nForceEthernet self.nforce_version = "1.0.1" # nForceEthernet
self.piixata_version = "1.0.1" # AppleIntelPIIXATA self.piixata_version = "1.0.1" # AppleIntelPIIXATA
self.fw_kext = "1.0.1" # IOFireWireFamily self.fw_kext = "1.0.1" # IOFireWireFamily
self.apple_trackpad = "1.0.1" # AppleUSBTrackpad self.apple_trackpad = "1.0.1" # AppleUSBTrackpad
self.apple_isight_version = "1.0.0" # AppleISight
## Apple - Dortania Modified ## Apple - Dortania Modified
self.bcm570_version = "1.0.2" # CatalinaBCM5701Ethernet self.bcm570_version = "1.0.2" # CatalinaBCM5701Ethernet
@@ -344,6 +345,10 @@ class Constants:
@property @property
def apple_trackpad_path(self): def apple_trackpad_path(self):
return self.payload_kexts_path / Path(f"Misc/AppleUSBTrackpad-v{self.apple_trackpad}.zip") return self.payload_kexts_path / Path(f"Misc/AppleUSBTrackpad-v{self.apple_trackpad}.zip")
@property
def apple_isight_path(self):
return self.payload_kexts_path / Path(f"Misc/LegacyUSBVideoSupport-v{self.apple_isight_version}.zip")
@property @property
def plist_folder_path(self): def plist_folder_path(self):