diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e552b243..206b58fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: - name: Run makefile run: | - ./makefile.sh --NO_GH_API --VERSION=${CUR_TAG} --PRE_RELEASE=Kext --PRE_RELEASE=OC --MODEL=KBLCML + ./makefile.sh --VERSION=${CUR_TAG} --PRE_RELEASE=Kext --PRE_RELEASE=OC --MODEL=KBLCML - name: Upload to Artifacts uses: actions/upload-artifact@v2 diff --git a/ACPI/KBL/Source/SSDT-PNLF.dsl b/ACPI/KBL/Source/SSDT-PNLF.dsl index e6964aea..36f997f2 100644 --- a/ACPI/KBL/Source/SSDT-PNLF.dsl +++ b/ACPI/KBL/Source/SSDT-PNLF.dsl @@ -39,14 +39,14 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "_PNLF", 0) // Name(_ADR, Zero) Name(_HID, EisaId("APP0002")) Name(_CID, "backlight") - // _UID is set depending on PWMMax to match profiles in AppleBacklight.kext Info.plist + // _UID is set depending on PWMMax to match profiles in WhateverGreen.kext https://github.com/acidanthera/WhateverGreen/blob/1.4.7/WhateverGreen/kern_weg.cpp#L32 // 14: Sandy/Ivy 0x710 // 15: Haswell/Broadwell 0xad9 // 16: Skylake/KabyLake 0x56c (and some Haswell, example 0xa2e0008) // 17: custom LMAX=0x7a1 // 18: custom LMAX=0x1499 // 19: CoffeeLake 0xffff - // 99: Other (requires custom AppleBacklightInjector.kext) + // 99: Other (requires custom profile using WhateverGreen.kext via DeviceProperties applbkl-name and applbkl-data) Name(_UID, Zero) Method (_STA, 0, NotSerialized) // _STA: Status { @@ -130,7 +130,7 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "_PNLF", 0) If (CondRefOf(\RMCF.BKLT)) { Local4 = \RMCF.BKLT } If (!(One & Local4)) { Return } - // Adjustment required when using AppleBacklight.kext + // Adjustment required when using WhateverGreen.kext Local0 = ^GDID Local2 = Ones If (CondRefOf(\RMCF.LMAX)) { Local2 = \RMCF.LMAX } @@ -255,7 +255,7 @@ DefinitionBlock("", "SSDT", 2, "ACDT", "_PNLF", 0) } // Now Local2 is the new PWMMax, set _UID accordingly - // The _UID selects the correct entry in AppleBacklight.kext + // The _UID selects the correct entry in WhateverGreen.kext If (Local2 == SANDYIVY_PWMMAX) { _UID = 14 } ElseIf (Local2 == HASWELL_PWMMAX) { _UID = 15 } ElseIf (Local2 == SKYLAKE_PWMMAX) { _UID = 16 } diff --git a/ACPI/Shared/Source/SSDT-DRP08.dsl b/ACPI/Shared/Source/SSDT-DRP08.dsl index d59f3130..2656bd80 100644 --- a/ACPI/Shared/Source/SSDT-DRP08.dsl +++ b/ACPI/Shared/Source/SSDT-DRP08.dsl @@ -5,10 +5,15 @@ // Users can change RP08 to whatever father PCI device that they want to disable // // For XiaoMi-Pro (TM1701) -// RP01 -> MX150 Graphics Card +// RP01 -> NVIDIA MX150 Graphics Card // RP05 -> Secondary SSD Slot // RP08 -> Intel Wi-Fi // RP09 -> Primary SSD Slot +// +// For XiaoMi-Pro (TM1905) +// RP05 -> NVIDIA MX250 Graphics Card +// RP09 -> Secondary SSD Slot +// RP13 -> Primary SSD Slot DefinitionBlock ("", "SSDT", 2, "hack", "_DRP08", 0x00000000) { diff --git a/Changelog.md b/Changelog.md index ffe30a20..61caf9c5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,10 +7,12 @@ ### Update - Update `OpenCore` v0.6.7 - - Update `Clover` r5130 + - Update `Clover` r5131 - Update `AppleALC` v1.5.8 - - Update `VoodooI2C` v2.6.4 - - Update `AirportItlwm` v1.3.0 (up to ) + - Update `VirtualSMC` v1.2.1 + - Update `VoodooPS2` v2.2.2 + - Update `VoodooI2C` v2.6.5 + - Update `AirportItlwm` v1.3.0 (up to [OpenIntelWireless/itlwm@b5c4e52](https://github.com/OpenIntelWireless/itlwm/commit/b5c4e52f65cacf0b98849ad2cfb6ceb1644879b6)) ### Add - Add `rps-control` property to enable RPS control patch and improves IGPU performance diff --git a/Docs/Changelog_CN.md b/Docs/Changelog_CN.md index 45c76f3e..b0bbab3c 100644 --- a/Docs/Changelog_CN.md +++ b/Docs/Changelog_CN.md @@ -7,10 +7,12 @@ ### 更新 * 更新 `OpenCore` v0.6.7 - * 更新 `Clover` r5130 + * 更新 `Clover` r5131 * 更新 `AppleALC` v1.5.8 - * 更新 `VoodooI2C` v2.6.4 - * 更新 `AirportItlwm` v1.3.0(更新至 ) + * 更新 `VirtualSMC` v1.2.1 + * 更新 `VoodooPS2` v2.2.2 + * 更新 `VoodooI2C` v2.6.5 + * 更新 `AirportItlwm` v1.3.0(更新至 [OpenIntelWireless/itlwm@b5c4e52](https://github.com/OpenIntelWireless/itlwm/commit/b5c4e52f65cacf0b98849ad2cfb6ceb1644879b6)) ### 新增 * 新增 `rps-control` 属性来启用 RPS 控制补丁并提升核显性能 diff --git a/Docs/README_CN.md b/Docs/README_CN.md index 47eab839..c11b47d7 100644 --- a/Docs/README_CN.md +++ b/Docs/README_CN.md @@ -141,8 +141,8 @@ cd XiaoMi-Pro-Hackintosh ./makefile.sh --MODEL=CML # 构建时保留工程文件 ./makefile.sh --NO_CLEAN_UP -# 绕过 GitHub API -./makefile.sh --NO_GH_API +# 使用 GitHub API +./makefile.sh --GH_API # 构建包含最新 pre-release 驱动的测试版EFI ./makefile.sh --PRE_RELEASE=Kext # 构建包含最新 pre-release OpenCore 的测试版EFI diff --git a/OC/config_cml.plist b/OC/config_cml.plist index a73b8e9d..5157d614 100644 --- a/OC/config_cml.plist +++ b/OC/config_cml.plist @@ -1238,6 +1238,8 @@ 20 PlayChime Auto + ResetTrafficClass + SetupDelay 0 VolumeAmplifier @@ -1259,8 +1261,6 @@ KeyForgetThreshold 5 - KeyMergeThreshold - 2 KeySupport KeySupportMode @@ -1344,6 +1344,8 @@ Quirks + ActivateHpetSupport + DisableSecurityPolicy ExitBootServicesDelay diff --git a/OC/config_kbl.plist b/OC/config_kbl.plist index 27b07633..a72545de 100644 --- a/OC/config_kbl.plist +++ b/OC/config_kbl.plist @@ -1295,6 +1295,8 @@ 20 PlayChime Auto + ResetTrafficClass + SetupDelay 0 VolumeAmplifier @@ -1316,8 +1318,6 @@ KeyForgetThreshold 5 - KeyMergeThreshold - 2 KeySupport KeySupportMode @@ -1401,6 +1401,8 @@ Quirks + ActivateHpetSupport + DisableSecurityPolicy ExitBootServicesDelay diff --git a/README.md b/README.md index 5fa26d18..187f712b 100644 --- a/README.md +++ b/README.md @@ -146,8 +146,8 @@ cd XiaoMi-Pro-Hackintosh ./makefile.sh --MODEL=CML # Preserve work files during the building stage ./makefile.sh --NO_CLEAN_UP -# Bypass GitHub API -./makefile.sh --NO_GH_API +# Use GitHub API +./makefile.sh --GH_API # Build the latest beta EFI with pre-release kexts ./makefile.sh --PRE_RELEASE=Kext # Build the latest beta EFI with pre-release OpenCore diff --git a/makefile.sh b/makefile.sh index fde72cee..7cc53a02 100755 --- a/makefile.sh +++ b/makefile.sh @@ -20,7 +20,7 @@ RETRY_MAX=5 clean_up=true err_no_exit=false -gh_api=true +gh_api=false language="en_US" model_input="" model_list=( ) @@ -68,8 +68,8 @@ while [[ $# -gt 0 ]]; do clean_up=false shift # past argument ;; - --NO_GH_API) - gh_api=false + --GH_API) + gh_api=true shift # past argument ;; *)