From 1974cd6341c159d894fa67bfc2f3f34ac9477f96 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Thu, 12 Jan 2023 08:52:39 -0700 Subject: [PATCH] sys_patch_detect: prioritize USB 3.0 support --- CHANGELOG.md | 6 +++++- resources/sys_patch/sys_patch_detect.py | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d028d5769..b85d38921 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,14 +20,18 @@ - Implement mini validation during GUI build - Add early UHCI/OHCI support (USB1.1) - Implemented via Root Volume patching, ie. no installer support at this time + - Support should be seen as experimental, especially for laptops - Applicable for Penryn Macs and Cheese Grater Mac Pros (MacPro3,1 - MacPro5,1) - See associated issue for current limitations: [Legacy UHCI/OHCI support in Ventura](https://github.com/dortania/OpenCore-Legacy-Patcher/issues/1021) + - USB 3.0 controllers cannot be used along side USB 1.1 patches, OCLP will prioritize USB 3.0 support - Add early non-Metal Graphics Acceleration support for macOS Ventura - Applicable for following GPU architectures: - Intel Ironlake and Sandy Bridge - Nvidia Tesla, Maxwell and Pascal - AMD TeraScale 1 and 2 - - Note: Bluetooth Pairing is currently semi-functional, see here for work around: [Tab+Space work-around](https://forums.macrumors.com/threads/macos-13-ventura-on-unsupported-macs-thread.2346881/post-31858759) + - Notes: + - Bluetooth Pairing is currently semi-functional, see here for work around: [Tab+Space work-around](https://forums.macrumors.com/threads/macos-13-ventura-on-unsupported-macs-thread.2346881/post-31858759) + - AMFI currently needs to be outright disabled in Ventura - Overall non-Metal improvements: - Improved fake rim - Fixed full screen animation diff --git a/resources/sys_patch/sys_patch_detect.py b/resources/sys_patch/sys_patch_detect.py index 5537deb25..4e731ee23 100644 --- a/resources/sys_patch/sys_patch_detect.py +++ b/resources/sys_patch/sys_patch_detect.py @@ -369,6 +369,12 @@ class detect_root_patch: if self.constants.detected_os < os_data.os_data.ventura: return False + for controller in self.constants.computer.usb_controllers: + if (isinstance(controller, device_probe.XHCIController)): + # Currently USB 1.1 patches are incompatible with USB 3.0 controllers + # TODO: Downgrade remaining USB stack to ensure full support + return False + # If we're on a hackintosh, check for UHCI/OHCI controllers if self.constants.host_is_hackintosh is True: for controller in self.constants.computer.usb_controllers: