Piker-Alpha / ssdtPRGen.sh

Script to generate a SSDT for Power Management
712 stars 156 forks source link

SSDT does not work under Sierra, but it's ok under El Cap #303

Open Riko-Shet opened 7 years ago

Riko-Shet commented 7 years ago

Hi Pike! First, please excuse my English, I'm from Italy, still learning! Second, thank you for your great work! Thanks to your script I was able to run my system for several OSs with PM! Now the problem: I have a particular CPU, the xeon e5-2695 v3 ES, it has slightly different freqs respect of OEM version, anyway, like a year ago with a older version of your script I was able to create a SSDT for my cpu, all fine. Now I'm using Sierra, fresh instal. Like for El Cap I'm using Clover and all files on EFI partition. So after installing Sierra I have many of this entries on every boot:

kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUCStates - CP1D ACST and _CST evaluations failed! kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUCStates - CP1D ACST and _CST evaluations failed! kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUCStates - _CST did not return a package kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUCStates - _CST did not return a package kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUPStates - CP1D APSS and _PSS evaluations failed! kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUPStates - CP1D APSS and _PSS evaluations failed! kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUPStates - acpiPSArrayObj is not an valid OSArray kernel: (IOPlatformPluginFamily) X86PlatformPlugin::getCPUPStates - acpiPSArrayObj is not an valid OSArray

And it finish with:

kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States! kernel: (IOPlatformPluginFamily) X86PlatformPlugin::publishACPIStates - Failed to get CPU P States!

So my CPU is stuck at x25, I think it's max multiplier for my CPU, and fans a very loud and power consumtion is at max. It is one week I'm searching solutions but no way. Today i find this kext: http://www.insanelymac.com/forum/topic/317747-haswell-e-powermanagement-yet-another-option/

It does a good job, I can see my multiplier jumping from x12 to x25. If you can adjust your script it would be great!

And, adding to User Defined.cfg the string " 'Genuine Intel(R) CPU @ 2.20GHz',145,1200,2200,2800,14,28,8,100" gives me the same error:

ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl v6.6 Copyright (c) 2013 by † Jeroen v21.2 Copyright (c) 2013-2016 by Pike R. Alpha

Bugs > https://github.com/Piker-Alpha/ssdtPRGen.sh/issues <

System information: Mac OS X 10.12.1 (16B2657) Brandstring: "Genuine Intel(R) CPU @ 2.20GHz"

Override value: (-p) processor model, now using: E3-2695v3! Override value: (-target) CPU, now using: Haswell! Override value: (-t) maximum TDP, now using: 145 Watt! Override value: (-bclk) frequency, now using: 100 MHz! Override value: (-f) clock frequency, now using: 2200 MHz! Override value: (-turbo) maximum (turbo) frequency, now using: 2800 MHz! Override value: (-l) number of logical processors, now using: 28!

Error: Unknown processor model ... Visit http://ark.intel.com to gather the required data: Processor Number TDP Low Frequency Mode (use AppleIntelInfo.kext) Base Frequency Max Turbo Frequency Cores Threads Aborting ... Done.

Thank you for your job!

Piker-Alpha commented 7 years ago

You seem to have a problem with the correct way of adding the (missing) processor data, but that problem is now solved. Cleanup your: ~/Library/ssdtPRGen/Data folder and launch the script with:

./ssdtPRGen.sh -p 'E5-2695 v3'
Riko-Shet commented 7 years ago

Hello piker! This time the scrip work just how it should! But the multiplier is locked to x25, just like in case with old ssdt, so the power consuption is high so are the temps! screen shot 2016-12-04 at 16 37 05 I'd like to remember you that with El Cap it was ok, so the problem is Sierra related. Does Apple change something inside Sierra PM, do you know it? Thank you!

2016-12-04 16:33:23.303753+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.303756+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.304027+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.304028+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.304320+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.304321+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.330313+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.330316+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.330771+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.330774+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.356232+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.356234+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.356508+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.356509+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.356824+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.356826+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382114+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382116+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382395+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382396+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382686+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382688+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382975+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.382977+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.383270+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.383272+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.383559+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.383560+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.408956+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.408958+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.409234+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.409235+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.409536+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.409538+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.409825+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.409826+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.410118+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.410120+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.410407+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.410409+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.435646+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.435647+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.435924+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.435926+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.436216+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.436218+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.461315+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.461317+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.461596+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.461597+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.461888+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.461890+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.462176+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.462178+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.462469+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.462471+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendPStates - Success! 2016-12-04 16:33:23.774828+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendStepper - Done! 2016-12-04 16:33:23.774839+0100 0x64e Default 0x0 0 kernel: (IOPlatformPluginFamily) X86PlatformShim::sendStepper - Done!