Jump to content

Power management for Sandy/Ivy Bridge/Haswell CPUs


Pimentel
 Share

533 posts in this topic

Recommended Posts

Hello

 

I don't saw any problem... it said:

Number of P-States: 15 (800-2200 MHz)
Adjusting C-States for detected (mobile) processor
Injected C-States for CPU0 (C1,C3,C6,C7)

So... P-States was found and they're in SSDT, but like i said, it doens't enable... you need find a SMbios that  work to you... try diferents models

 

Try iMac 12,1/12,2

 

Thanks for your help.

 

I try all smbios, someones give me kernel panic and other i only get the same (only pstate 8).

 

i think maybe the problem is the AppleIntelCPUPowermanagement. I got a kernel panic, after i replace the file with the original file (OSX disk) and now i can boot without problems. what do you think about this?

 

edit: i found something.... when i replace the file i don't get problems, but if i repair cache, i got the kernel panic :( maybe this file it's the problem)....

Link to comment
Share on other sites

I FIX IT!!!!  :D  :D  :D  :D

 

The problem always was the SSDT file of this script. I don't know why in my laptop never works.... I use google and i found the SSDT for all intel processors included the SSDT for my CPU (i3 2330M). The steps i follow for get the SSDT works:

 

1.- replace de SSDT file with the SSDT for my CPU. I attach the file for all SSDT for i3, i5 and i7 processor in this post.

2.- Patch AppleIntelCPUPowermanagement (for this guide)

3.- repair cache and system with kextwizard.

 

reboot and now my computer feels faster. i run a geek bench and i get this score:

 

BEFORE

http://browser.primatelabs.com/geekbench2/2398165

NOW

http://browser.primatelabs.com/geekbench2/2426915

 

but now i have a question. I need information about the p-states in my laptop. where i can get this info???

  • Like 1
Link to comment
Share on other sites

06/03/14 22:21:54, Current State: 8

06/03/14 22:21:54, P States: 8, 34, 35, 36, 37, 38

06/03/14 22:21:49, Current State: 8

06/03/14 22:21:49, P States: 8, 34, 35, 36, 37, 38

06/03/14 22:21:44, Current State: 34

 

i see this in my haswell i5 is this good ?

Link to comment
Share on other sites

 

06/03/14 22:21:54, Current State: 8
06/03/14 22:21:54, P States: 8, 34, 35, 36, 37, 38
06/03/14 22:21:49, Current State: 8
06/03/14 22:21:49, P States: 8, 34, 35, 36, 37, 38
06/03/14 22:21:44, Current State: 34
 
i see this in my haswell i5 is this good ?

 

Well,

 

it is something.In my case, most of the time I am in state 34 (i5 4570). Although I would love to save more energy. 

Link to comment
Share on other sites

 

06/03/14 22:21:54, Current State: 8
06/03/14 22:21:54, P States: 8, 34, 35, 36, 37, 38
06/03/14 22:21:49, Current State: 8
06/03/14 22:21:49, P States: 8, 34, 35, 36, 37, 38
06/03/14 22:21:44, Current State: 34
 
i see this in my haswell i5 is this good ?

 

 

try to use AppleIntelCPUPowerManagementInfo.kext. read about this here

 

Download the kext, open Terminal:

cd /Users/youuser/Downloads
chmod -R go=u-w /Users/youuser/Downloads/AppleIntelCPUPowerManagementInfo.kext
chown -R root:wheel /Users/youuser/Downloads/AppleIntelCPUPowerManagementInfo.kext
sudo kextload AppleIntelCPUPowerManagementInfo.kext
cat /var/log/system.log | grep "AICPUPMI:"

after this code, you will see results, like this:

Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: v3.3 Copyright © 2012-2014 Pike R. Alpha. All rights reserved
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: logMSRs............................: 1
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: logIGPU............................: 0
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: logCStates.........................: 1
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: logIPGStyle........................: 1
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MWAIT C-States.....................: 135456
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_CORE_THREAD_COUNT......(0x35)  : 0x20004
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PLATFORM_INFO..........(0xCE)  : 0x80C10E0011900
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PMG_CST_CONFIG_CONTROL.(0xE2)  : 0x1E008404
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PMG_IO_CAPTURE_BASE....(0xE4)  : 0x20414
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: IA32_MPERF.................(0xE7)  : 0x603532E
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: IA32_APERF.................(0xE8)  : 0x5C9445D
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_FLEX_RATIO.............(0x194) : 0x100000
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_IA32_PERF_STATUS.......(0x198) : 0x21F200001D00
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_IA32_PERF_CONTROL......(0x199) : 0x1D00
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: IA32_CLOCK_MODULATION......(0x19A) : 0x8
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: IA32_THERM_STATUS..........(0x19C) : 0x88370000
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: IA32_MISC_ENABLES..........(0x1A0) : 0x850089
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_MISC_PWR_MGMT..........(0x1AA) : 0x400001
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x1D1D1D1F
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x4
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_POWER_CTL..............(0x1FC) : 0x14005F
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_RAPL_POWER_UNIT........(0x606) : 0xA1003
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKG_POWER_LIMIT........(0x610) : 0x8000815E00DC8118
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKG_ENERGY_STATUS......(0x611) : 0x273287F7
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKGC3_IRTL.............(0x60a) : 0x883B
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKGC6_IRTL.............(0x60b) : 0x8850
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKGC7_IRTL.............(0x60c) : 0x8857
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x1814149480000380
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PP0_POWER_LIMIT........(0x638) : 0x0
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PP0_ENERGY_STATUS......(0x639) : 0xEB53CF4
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PP0_POLICY.............(0x63a) : 0x0
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_CONFIG_TDP_NOMINAL.....(0x648) : 0x19
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_CONFIG_TDP_LEVEL1......(0x649) : 0xC0000000000000
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_CONFIG_TDP_LEVEL2......(0x64a) : 0xC0000000000000
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_CONFIG_TDP_CONTROL.....(0x64b) : 0x80000000
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_TURBO_ACTIVATION_RATIO.(0x64c) : 0x0
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x32DC444350
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0xB3374E58
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x395FCA25EF
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x52EDFDB31E9
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU Low Frequency Mode.............: 1200 MHz
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU Maximum non-Turbo Frequency....: 2500 MHz
Mar  1 15:57:57 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU Maximum Turbo Frequency........: 3100 MHz
Mar  1 15:57:58 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (22) 25 29 ]
Mar  1 15:57:58 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU C3-Cores [ 0 2 3 ]
Mar  1 15:57:58 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU C6-Cores [ 0 1 3 ]
Mar  1 15:57:58 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU C7-Cores [ 0 1 2 3 ]
Mar  1 15:57:58 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 20 22 25 29 ]
Mar  1 15:57:58 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU C6-Cores [ 0 1 2 3 ]
Mar  1 15:57:59 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ 12 17 20 (22) 25 29 ]
Mar  1 15:57:59 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU C3-Cores [ 0 1 2 3 ]
Mar  1 15:57:59 Allans-MacBook-Pro.local Console[664]: setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
Mar  1 15:57:59 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ 12 17 20 22 25 27 (29) ]
Mar  1 15:58:00 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 17 20 22 23 25 27 29 ]
Mar  1 15:58:01 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 17 20 22 23 24 25 27 29 ]
Mar  1 15:58:02 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ 12 17 20 21 22 23 24 (25) 27 29 ]
Mar  1 15:58:02 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 17 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:05 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 13 17 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:06 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 13 14 17 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:07 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 13 14 17 19 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:08 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 13 14 15 17 19 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:09 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 13 14 15 16 17 19 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:29 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ (12) 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 ]
Mar  1 15:58:56 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 (31) ]
Mar  1 15:59:33 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ 12 13 14 15 16 17 18 19 20 21 22 23 24 (25) 26 27 29 30 31 ]
Mar  1 15:59:49 Allans-MacBook-Pro kernel[0]: AICPUPMI: CPU P-States [ 12 13 14 15 16 17 18 19 20 21 22 23 24 (25) 26 27 28 29 30 31 ]

if you see all states and turbo, everything works fine.

 

for unload kext, use the last code:

sudo kextunload AppleIntelCPUPowerManagementInfo.kext

Note: where I put "youuser", enter your User name.

  • Like 3
Link to comment
Share on other sites

That version of AppleIntelCPUPowerManagementInfo.kext you linked to, crashes my hack as soon as I load it. It is mentioned by Piker.

He suggests to compile the a fixed version from source. Tried that but the resulting kext fails to load. It is my first compile in xcode, so probably 

I am doing things wrong.

Link to comment
Share on other sites

 

Thanks that worked good 

i saw 

Mar 13 18:57:36 ham4evers-MacBook-Air kernel[0]: AICPUPMI: CPU P-States [ 8 9 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 (34) 35 36 37 38 ]

 
so i think is good 
thanks for the info 
Link to comment
Share on other sites

 

Thanks that worked good 

i saw 

Mar 13 18:57:36 ham4evers-MacBook-Air kernel[0]: AICPUPMI: CPU P-States [ 8 9 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 (34) 35 36 37 38 ]

 
so i think is good 
thanks for the info 

 

Good, works great.

 

 

That version of AppleIntelCPUPowerManagementInfo.kext you linked to, crashes my hack as soon as I load it. It is mentioned by Piker.

He suggests to compile the a fixed version from source. Tried that but the resulting kext fails to load. It is my first compile in xcode, so probably 

I am doing things wrong.

 

Don't install in S/L/E, mentioned cd/Users/youuser/Downloads because it is easier.

Link to comment
Share on other sites

 

 

Don't install in S/L/E, mentioned cd/Users/youuser/Downloads because it is easier.

 

Hi All@n, it is being loaded from Downloads (placing a dodgy kext in SLE is asking for problems).

Piker says that the kext KP's or craches the system for some mainboards, guess mine is one of them.

It is also not his intention to provide compiled kext's as he reasons it is not meant for the general audience and nitwits like me.

 

Actually, I am wondering why we should have states ranging from 8 till turbo. 8 makes the system unworkably slow. 

I currently have 16, 21, 28 and 34 (achieved by using the specs for my cpu using ssdtPRgen.sh) w/ smbios Macmini6,2.

 

If we would want it vanilla and how Apple does it for the iMac's, we should only have min and max (16 and 34Ghz).

 

cheers, relikwie.

Link to comment
Share on other sites

Hi All@n, it is being loaded from Downloads (placing a dodgy kext in SLE is asking for problems).

Piker says that the kext KP's or craches the system for some mainboards, guess mine is one of them.

It is also not his intention to provide compiled kext's as he reasons it is not meant for the general audience and nitwits like me.

 

Actually, I am wondering why we should have states ranging from 8 till turbo. 8 makes the system unworkably slow. 

I currently have 16, 21, 28 and 34 (achieved by using the specs for my cpu using ssdtPRgen.sh) w/ smbios Macmini6,2.

 

If we would want it vanilla and how Apple does it for the iMac's, we should only have min and max (16 and 34Ghz).

 

cheers, relikwie.

 

What is your CPU?

 

i installed kext in S/L/E and i didn't get any KP :D lucky me i guess 

 

Nice, the bad news is that lots of messages appears in the Console.

Link to comment
Share on other sites

Hello, I followed your guide for the hardware on my sign, All seems to be fine, but with ssdt and patched AICPUPM my hackintosh seems to be running a lot slower, how can I know what's wrong there?

 

Also the wake from sleep state is very slow, it requires around one minute, I don't know if it's regular...

 

thank you very much!

 

Attached is the ssdt that I'm currently using

 

EDIT: I downloaded DPCIManager (using ML 10.8.4) and I can see, if I boot with NullCPUPM, 16 P-states while I'm stuck at 16th.

If I boot with patched AICPUPM I only get 8, I'm stuck on 8th state and the console of DPCIManager gives me error messages like "P states: I/O error, trottling to 9hz" down to 1hz, and then "P-states: method failed, exiting 0xE00002CA"

 

What's going on there?

SSDT.zip

Link to comment
Share on other sites

I built the system cache without NullCPU and then I put nullCPU in S/L/E so that I can boot with NullCPU using -f flag, or without it just booting from kernel cache...or at least I was thinking this could work...

I don't actually have Generate P stats and Generate C states in my boot.plist.

I'll try erasing at all nullCPUPM and looking around with AICPUPM info, thank you very much.

Link to comment
Share on other sites

Nothing to do with AICPUPMInfo.kext, I can't enable it. WIth HWMonitor I can see my cpu freq stuck at 800Mhz.

Entering sleep mode and waking up HWMonitor shows 3,5Ghz.

also waking from sleep audio is not working anymore, showing in the conosolle IOAudioStream[xxxxxxxxxxxxxxx]::ClipIfNecessary()-Error... I'm using an external Firewire Sound card, maybe there's some problem with firewire

Link to comment
Share on other sites

Sorry for my bad english, I think we have misunderstood. I know AICPUPMinfo is only for information, I'm not using it to replace AICPUPM or anything else, just trying to load it from the root folder with the terminal commands you gave, but It doesn't work, it said that it's not installed correctly...

anyway no, nothing found on this topic was helpful, I tried changing smbios but nothing changed, maybe I must regenerate ssdt and repatch aicpupm after each smbios change?

I tryied duplicating the last p-state in the ssdt created with the script, because I've found that this could be a solution for i7 3770k PR, but it doesn't work neither.

Link to comment
Share on other sites

 Share

×
×
  • Create New...