Skip to content

Commit

Permalink
Add SSDT-DRP08 to disable Intel Wireless Card and save power, credit …
Browse files Browse the repository at this point in the history
…宪武 and athlonreg
  • Loading branch information
stevezhengshiqi committed Dec 14, 2019
1 parent 9b0143e commit 452d1d9
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ English | [中文](Changelog_CN.md)
- Update `AppleSupportPkg` v2.1.1
- Update `VoodooI2C`
- Update `SSDT-USB`
- Add `SSDT-DRP08` to disable Intel Wireless Card
- Add `complete-modeset-framebuffers` property to improve HDMI
- Add `PanicNoKextDump` to replace panic kext logging patches
- Add `EFICheckDisabler`
Expand Down
1 change: 1 addition & 0 deletions Changelog_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
* 更新 `AppleSupportPkg` v2.1.1
* 更新 `VoodooI2C`
* 更新 `SSDT-USB`
* 新增 `SSDT-DRP08` 来禁用Intel无线网卡
* 新增 `complete-modeset-framebuffers` 来改善HDMI
* 新增 `PanicNoKextDump` 来替代 panic kext logging 补丁
* 新增 `EFICheckDisabler`
Expand Down
Binary file added EFI/CLOVER/ACPI/patched/SSDT-DRP08.aml
Binary file not shown.
26 changes: 26 additions & 0 deletions EFI/CLOVER/ACPI/patched/SSDT-DRP08.dsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// NOT Necessary hotpatch
// Maintained by: daliansky
// Reference: https://github.com/daliansky/OC-little
// Disable Intel Wireless Card (RP08) to save power

DefinitionBlock ("", "SSDT", 2, "hack", "_DRP08", 0x00000000)
{
External (_SB_.PCI0.RP08, DeviceObj)

Scope (_SB.PCI0.RP08)
{
OperationRegion (DE01, PCI_Config, 0x50, One)
Field (DE01, AnyAcc, NoLock, Preserve)
{
, 1,
, 3,
DDDD, 1
}
}

Scope (\)
{
\_SB.PCI0.RP08.DDDD = One
}
}

Binary file added EFI/OC/ACPI/SSDT-DRP08.aml
Binary file not shown.
29 changes: 29 additions & 0 deletions EFI/OC/ACPI/SSDT-DRP08.dsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// NOT Necessary hotpatch
// Maintained by: daliansky
// Reference: https://github.com/daliansky/OC-little
// Disable Intel Wireless Card (RP08) to save power

DefinitionBlock ("", "SSDT", 2, "hack", "_DRP08", 0x00000000)
{
External (_SB_.PCI0.RP08, DeviceObj)

Scope (_SB.PCI0.RP08)
{
OperationRegion (DE01, PCI_Config, 0x50, One)
Field (DE01, AnyAcc, NoLock, Preserve)
{
, 1,
, 3,
DDDD, 1
}
}

Scope (\)
{
If (_OSI ("Darwin"))
{
\_SB.PCI0.RP08.DDDD = One
}
}
}

8 changes: 8 additions & 0 deletions EFI/OC/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
<key>Path</key>
<string>SSDT-DMAC.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Disable RP08 device</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-DRP08.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Add EC device</string>
Expand Down

0 comments on commit 452d1d9

Please sign in to comment.