From 329311e4b493c7d086d9f7fcdea13c55c4d23441 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 28 Oct 2024 15:31:08 +0700 Subject: [PATCH] Add built-in device property for network devices and storage controllers --- README.md | 3 ++- Scripts/config_prodigy.py | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 91de7fa..fd40afb 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,8 @@ - Allow flexible iGPU configuration between headless and driving a display when a supported discrete GPU is present. - Force Intel GPUs into VESA mode with HDMI and DVI connectors to simplify installation process. - Use random layout IDs have comment based on author or motherboard brand for better sound quality. - - Provide configuration required for using OpenCore Legacy Patcher + - Provide configuration required for using OpenCore Legacy Patcher. + - Add built-in device properties for network devices (fix 'Could not communicate with the server' when using iServices) and storage controllers (fix internal drives shown as external). and more... diff --git a/Scripts/config_prodigy.py b/Scripts/config_prodigy.py index dc9597c..86bcc92 100644 --- a/Scripts/config_prodigy.py +++ b/Scripts/config_prodigy.py @@ -288,6 +288,16 @@ class ConfigProdigy: "model": gpu_name } + + network_items = hardware_report.get("Network", {}).items() + storage_controllers_items = hardware_report.get("Storage Controllers", {}).items() + + for device_name, device_props in list(network_items) + list(storage_controllers_items): + if device_props.get("PCI Path") and not device_props.get("ACPI Path"): + deviceproperties_add[device_props.get("PCI Path")] = { + "built-in": self.utils.hex_to_bytes("01") + } + for key, value in deviceproperties_add.items(): for key_child, value_child in value.items(): if isinstance(value_child, str):