Skip to content

Commit

Permalink
OpenCoreKernel: Implement DummyPowerManagement quirk
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Feb 1, 2020
1 parent 210df23 commit abb5129
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ OpenCore Changelog
- Added `TakeoffDelay` option for improved action hotkey support
- Added Mac GOP support to `ProvideConsoleGop` quirk
- Added experimental `BuiltinTextRenderer` boot option
- Added `DummyPowerManagement` kernel quirk to disable CPU PM

#### v0.5.4
- Added Enter key handling in boot menu for quick proceed
Expand Down
Binary file modified Docs/Configuration.pdf
Binary file not shown.
10 changes: 10 additions & 0 deletions Docs/Configuration.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,16 @@ \subsection{Quirks Properties}\label{kernelpropsquirks}
ACPI table and disabling VT-d in firmware preferences, which does not break
VT-d support in other systems in case they need it.

\item
\texttt{DummyPowerManagement}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Disables \texttt{AppleIntelCpuPowerManagement}.

\emph{Note}: This option is a preferred alternative to
\texttt{NullCpuPowerManagement.kext} for CPUs without native power
management driver in macOS.

\item
\texttt{ExternalDiskIcons}\\
\textbf{Type}: \texttt{plist\ boolean}\\
Expand Down
Binary file modified Docs/Differences/Differences.pdf
Binary file not shown.
16 changes: 14 additions & 2 deletions Docs/Differences/Differences.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Fri Jan 17 12:56:17 2020
%DIF ADD ../Configuration.tex Sun Feb 2 01:35:24 2020
%DIF ADD ../Configuration.tex Sun Feb 2 02:19:09 2020

\usepackage{lmodern}
\usepackage{amssymb,amsmath}
Expand Down Expand Up @@ -1938,7 +1938,19 @@ \subsection{Quirks Properties}\label{kernelpropsquirks}
VT-d support in other systems in case they need it.

\item
\texttt{ExternalDiskIcons}\\
\DIFaddbegin \texttt{\DIFadd{DummyPowerManagement}}\\
\textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
\textbf{\DIFadd{Failsafe}}\DIFadd{: }\texttt{\DIFadd{false}}\\
\textbf{\DIFadd{Description}}\DIFadd{: Disables }\texttt{\DIFadd{AppleIntelCpuPowerManagement}}\DIFadd{.
}

\emph{\DIFadd{Note}}\DIFadd{: This option is a preferred alternative to
}\texttt{\DIFadd{NullCpuPowerManagement.kext}} \DIFadd{for CPUs without native power
management driver in macOS.
}

\item
\DIFaddend \texttt{ExternalDiskIcons}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Failsafe}: \texttt{false}\\
\textbf{Description}: Apply icon type patches to AppleAHCIPort.kext to force
Expand Down
1 change: 0 additions & 1 deletion Docs/Kexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Kexts
- [CPUFriend.kext](https://github.com/acidanthera/CPUFriend)
- [FakeSMC.kext and sensors](https://github.com/CloverHackyColor/FakeSMC3_with_plugins)
- [HWPEnabler.kext](https://github.com/headkaze/HWPEnable)
- [NullCPUPowerManagement.kext](https://github.com/corpnewt/NullCPUPowerManagement) for AMD only (also some virtual machines)
- [OpcodeEmulator.kext](https://www.insanelymac.com/forum/topic/329704-opcode-emulator-opemu-plug-in-project/)
- [TSCAdjustReset.kext](https://github.com/interferenc/TSCAdjustReset)
- [VirtualSMC.kext and sensors](https://github.com/acidanthera/VirtualSMC)
Expand Down
2 changes: 2 additions & 0 deletions Docs/Sample.plist
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@
<false/>
<key>DisableIoMapper</key>
<false/>
<key>DummyPowerManagement</key>
<false/>
<key>ExternalDiskIcons</key>
<false/>
<key>IncreasePciBarSize</key>
Expand Down
2 changes: 2 additions & 0 deletions Docs/SampleFull.plist
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@
<false/>
<key>DisableIoMapper</key>
<false/>
<key>DummyPowerManagement</key>
<false/>
<key>ExternalDiskIcons</key>
<false/>
<key>IncreasePciBarSize</key>
Expand Down
4 changes: 4 additions & 0 deletions Platform/OpenCore/OpenCoreKernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ OcKernelApplyPatches (
if (Config->Kernel.Quirks.CustomSmbiosGuid) {
PatchCustomSmbiosGuid (Context);
}

if (Config->Kernel.Quirks.DummyPowerManagement) {
PatchDummyPowerManagement (Context);
}
} else {
if (Config->Kernel.Quirks.AppleXcpmCfgLock) {
PatchAppleXcpmCfgLock (&Patcher);
Expand Down

0 comments on commit abb5129

Please sign in to comment.