Skip to content

Commit

Permalink
OC: Update config to support OpenCore v0.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
stevezhengshiqi committed Feb 28, 2021
1 parent f381e25 commit 8ec08b8
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions ACPI/KBL/Source/SSDT-PNLF.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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 }
Expand Down Expand Up @@ -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 }
Expand Down
7 changes: 6 additions & 1 deletion ACPI/Shared/Source/SSDT-DRP08.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
8 changes: 5 additions & 3 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions Docs/Changelog_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 控制补丁并提升核显性能
Expand Down
4 changes: 2 additions & 2 deletions Docs/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions OC/config_cml.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,8 @@
<integer>20</integer>
<key>PlayChime</key>
<string>Auto</string>
<key>ResetTrafficClass</key>
<false/>
<key>SetupDelay</key>
<integer>0</integer>
<key>VolumeAmplifier</key>
Expand All @@ -1259,8 +1261,6 @@
<false/>
<key>KeyForgetThreshold</key>
<integer>5</integer>
<key>KeyMergeThreshold</key>
<integer>2</integer>
<key>KeySupport</key>
<true/>
<key>KeySupportMode</key>
Expand Down Expand Up @@ -1344,6 +1344,8 @@
</dict>
<key>Quirks</key>
<dict>
<key>ActivateHpetSupport</key>
<false/>
<key>DisableSecurityPolicy</key>
<false/>
<key>ExitBootServicesDelay</key>
Expand Down
6 changes: 4 additions & 2 deletions OC/config_kbl.plist
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,8 @@
<integer>20</integer>
<key>PlayChime</key>
<string>Auto</string>
<key>ResetTrafficClass</key>
<false/>
<key>SetupDelay</key>
<integer>0</integer>
<key>VolumeAmplifier</key>
Expand All @@ -1316,8 +1318,6 @@
<false/>
<key>KeyForgetThreshold</key>
<integer>5</integer>
<key>KeyMergeThreshold</key>
<integer>2</integer>
<key>KeySupport</key>
<true/>
<key>KeySupportMode</key>
Expand Down Expand Up @@ -1401,6 +1401,8 @@
</dict>
<key>Quirks</key>
<dict>
<key>ActivateHpetSupport</key>
<false/>
<key>DisableSecurityPolicy</key>
<false/>
<key>ExitBootServicesDelay</key>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions makefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=( )
Expand Down Expand Up @@ -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
;;
*)
Expand Down

0 comments on commit 8ec08b8

Please sign in to comment.