Skip to content

Commit

Permalink
FEAT: CPU powermanagerment with CPUFriend, update kext 6/6/2021
Browse files Browse the repository at this point in the history
  • Loading branch information
kn authored and kn committed Jun 6, 2021
1 parent c794a11 commit 0408584
Show file tree
Hide file tree
Showing 529 changed files with 385 additions and 64 deletions.
Binary file removed EFI/OC/ACPI/SSDT-Battery.aml
Binary file not shown.
Binary file removed EFI/OC/ACPI/SSDT-HWAC.aml
Binary file not shown.
124 changes: 79 additions & 45 deletions EFI/OC/Config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,6 @@
<key>Path</key>
<string>SSDT-INIT.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Notebook Battery</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-Battery.aml</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-HWAC.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>plugin-type=1</string>
Expand Down Expand Up @@ -76,23 +60,23 @@
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-THINK.aml</string>
<string>SSDT-ECRW.aml</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-XOSI.aml</string>
<string>SSDT-THINK.aml</string>
</dict>
<dict>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-ECRW.aml</string>
<string>SSDT-XOSI.aml</string>
</dict>
</array>
<key>Delete</key>
Expand Down Expand Up @@ -137,6 +121,10 @@
<key>Patch</key>
<array>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>_OSI to XOSI</string>
<key>Count</key>
Expand Down Expand Up @@ -171,6 +159,10 @@
</data>
</dict>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>_PTS to ZPTS(1,N)</string>
<key>Count</key>
Expand Down Expand Up @@ -205,6 +197,10 @@
</data>
</dict>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>_WAK to ZWAK(1,S)</string>
<key>Count</key>
Expand Down Expand Up @@ -239,6 +235,10 @@
</data>
</dict>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>GPRW to XPRW</string>
<key>Count</key>
Expand Down Expand Up @@ -273,12 +273,16 @@
</data>
</dict>
<dict>
<key>Base</key>
<string></string>
<key>BaseSkip</key>
<integer>0</integer>
<key>Comment</key>
<string>battery: Change HWAC to XWAC EC reads</string>
<key>Count</key>
<integer>0</integer>
<key>Enabled</key>
<true/>
<false/>
<key>Find</key>
<data>
RUNfX0hXQUM=
Expand Down Expand Up @@ -508,6 +512,24 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>Any</string>
<key>BundlePath</key>
<string>ECEnabler.kext</string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/ECEnabler</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>Any</string>
Expand Down Expand Up @@ -940,6 +962,40 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>CPUFriend.kext</string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>ExecutablePath</key>
<string>Contents/MacOS/CPUFriend</string>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
<dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key>
<string>CPUFriendDataProvider.kext</string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>MaxKernel</key>
<string></string>
<key>MinKernel</key>
<string></string>
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</dict>
</array>
<key>Block</key>
<array>
Expand Down Expand Up @@ -1178,37 +1234,21 @@
<dict>
<key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
<dict>
<key>DefaultBackgroundColor</key>
<data>
AAAAAA==
</data>
<key>UIScale</key>
<data>
AQ==
</data>
</dict>
<key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
<dict>
<key>rtc-blacklist</key>
<data>
</data>
</dict>
<key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
<dict>
<key>SystemAudioVolume</key>
<data>
Rg==
</data>
<key>boot-args</key>
<string>keepsyms=1 debug=0x100</string>
<key>csr-active-config</key>
<data>
/w8AAA==
</data>
<key>prev-lang:kbd</key>
<data>
cnUtUlU6MjUy
</data>
<string></string>
<key>run-efi-updater</key>
<string>No</string>
</dict>
Expand All @@ -1219,10 +1259,6 @@
<array>
<string>UIScale</string>
</array>
<key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
<array>
<string>rtc-blacklist</string>
</array>
<key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
<array>
<string>boot-args</string>
Expand Down Expand Up @@ -1322,7 +1358,7 @@
<key>AppleInput</key>
<dict>
<key>AppleEvent</key>
<string>Builtin</string>
<string>Auto</string>
<key>CustomDelays</key>
<false/>
<key>KeyInitialDelay</key>
Expand Down Expand Up @@ -1419,8 +1455,6 @@
<false/>
<key>AppleDebugLog</key>
<false/>
<key>AppleEvent</key>
<false/>
<key>AppleFramebufferInfo</key>
<false/>
<key>AppleImageConversion</key>
Expand Down Expand Up @@ -1457,7 +1491,7 @@
<key>DisableSecurityPolicy</key>
<false/>
<key>EnableVectorAcceleration</key>
<true/>
<false/>
<key>ExitBootServicesDelay</key>
<integer>0</integer>
<key>ForgeUefiSupport</key>
Expand Down
Binary file modified EFI/OC/Drivers/OpenHfsPlus.efi
Binary file not shown.
107 changes: 107 additions & 0 deletions EFI/OC/Kexts/CPUFriend.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>19H15</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>CPUFriend</string>
<key>CFBundleIdentifier</key>
<string>org.vanilla.driver.CPUFriend</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>CPUFriend</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.2.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.2.3</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>12B45b</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>11.0</string>
<key>DTSDKBuild</key>
<string>20A2408</string>
<key>DTSDKName</key>
<string>macosx11.0</string>
<key>DTXcode</key>
<string>1220</string>
<key>DTXcodeBuild</key>
<string>12B45b</string>
<key>IOKitPersonalities</key>
<dict>
<key>CPUFriend</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.vanilla.driver.CPUFriend</string>
<key>IOClass</key>
<string>CPUFriend</string>
<key>IOMatchCategory</key>
<string>CPUFriend</string>
<key>IOProviderClass</key>
<string>IOResources</string>
<key>IOResourceMatch</key>
<string>IOKit</string>
</dict>
<key>CPUFriendPlatform</key>
<dict>
<key>CFBundleIdentifier</key>
<string>org.vanilla.driver.CPUFriend</string>
<key>IOClass</key>
<string>CPUFriendData</string>
<key>IOProbeScore</key>
<integer>6000</integer>
<key>IOPropertyMatch</key>
<dict>
<key>IOCPUNumber</key>
<integer>0</integer>
</dict>
<key>IOProviderClass</key>
<string>AppleACPICPU</string>
<key>IOResourceMatch</key>
<string>ACPI</string>
</dict>
</dict>
<key>LSMinimumSystemVersion</key>
<string>10.8</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 - 2019 PMheart. All rights reserved.</string>
<key>OSBundleCompatibleVersion</key>
<string>1.0</string>
<key>OSBundleLibraries</key>
<dict>
<key>as.vit9696.Lilu</key>
<string>1.2.0</string>
<key>com.apple.iokit.IOACPIFamily</key>
<string>1.0.0d1</string>
<key>com.apple.kpi.bsd</key>
<string>12.0.0</string>
<key>com.apple.kpi.dsep</key>
<string>12.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>12.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>12.0.0</string>
<key>com.apple.kpi.mach</key>
<string>12.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>12.0.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
Binary file not shown.
40 changes: 40 additions & 0 deletions EFI/OC/Kexts/CPUFriendDataProvider.kext/Contents/Info.plist

Large diffs are not rendered by default.

Loading

0 comments on commit 0408584

Please sign in to comment.