Page 1 of 11

AICPMPatch

Posted: 19 Feb 2012, 20:52
by Cassio
Update: Clover boot loader includes this patch
[External Link Removed for Guests]

Script to patch the kext AppleIntelCPUPowerManagement to work with locked wrmsr BIOS

Download: [Local Link Removed for Guests]

Written by el coniglio

Modified by RehabMan
[Local Link Removed for Guests]

Thanks to flAked and dmazar
[External Link Removed for Guests]


How to use:

In terminal

Code: [Local Link Removed for Guests]

cd ~/Downloads/AICPMPatch
Find wrmsr (do not patch, just list)

Code: [Local Link Removed for Guests]

perl AICPMPatch.pl /System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement
Patch wrmsr

Code: [Local Link Removed for Guests]

sudo perl AICPMPatch.pl /System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement --patch
Update cache

Code: [Local Link Removed for Guests]

sudo touch /System/Library/Extensions

Re: AICPMPatch

Posted: 21 Feb 2012, 14:01
by kissandtell
Could you please explain very easily how to use it?

Re: AICPMPatch

Posted: 21 Feb 2012, 15:22
by Cassio
kissandtell wrote:Could you please explain very easily how to use it?
Download and unzip the attachment in Downloads folder.

Open terminal and run

Code: [Local Link Removed for Guests]

cd ~/Downloads/AICPMPatch
To list wrmsr (without patching)

Code: [Local Link Removed for Guests]

perl AICPMPatch.pl /System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement
To list and patch wrmsr

Code: [Local Link Removed for Guests]

sudo perl AICPMPatch.pl /System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement --patch

Re: AICPMPatch

Posted: 21 Feb 2012, 19:29
by fc_candido
Fiz o procedimento e funcionou perfeitamente com meu i5, Mobo DP55WB, agora não uso mais o NullCPUPowerManagement.kext.
E notei que o boot ficou muito mais rápido com meu SSD 120G, antes bootava em 19 segundos agora boota em 13 segundos.
O resultado é este agora...
Based on code by mercurysquad, superhai (C)2008
User defined TjMax=0
AppleACPICPU: ProcessorId=0 LocalApicId=0 Enabled
AppleACPICPU: ProcessorId=1 LocalApicId=2 Enabled
AppleACPICPU: ProcessorId=2 LocalApicId=4 Enabled
AppleACPICPU: ProcessorId=3 LocalApicId=6 Enabled
AppleACPICPU: ProcessorId=4 LocalApicId=0 Disabled
AppleACPICPU: ProcessorId=5 LocalApicId=0 Disabled
AppleACPICPU: ProcessorId=6 LocalApicId=0 Disabled
AppleACPICPU: ProcessorId=7 LocalApicId=0 Disabled

Obrigado.

Re: AICPMPatch

Posted: 27 Feb 2012, 21:42
by magnifico
Cassio sorry what is this?
What to serve?

To list wrmsr without patching

Code: [Local Link Removed for Guests]

perl AICPMPatch.pl /System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement

Re: AICPMPatch

Posted: 27 Feb 2012, 21:59
by Cassio
As it says, to list offsets that need patching, but don't actually patch them, just list.

Re: AICPMPatch

Posted: 27 Feb 2012, 22:38
by magnifico
This script is good for lion and snow ...work for 10.7.3 and 10.6.8 ?

Re: AICPMPatch

Posted: 27 Feb 2012, 23:01
by Cassio
Yes, it should work for any version.

Re: AICPMPatch

Posted: 28 Feb 2012, 07:03
by magnifico
Cassio wrote:Yes, it should work for any version.

Thanks for patch i use only this?

Code: [Local Link Removed for Guests]

sudo perl AICPMPatch.pl /System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement --patch

Re: AICPMPatch

Posted: 28 Feb 2012, 11:47
by Cassio
Yes.

Re: AICPMPatch

Posted: 03 Mar 2012, 17:20
by magnifico
Cassio wrote:Yes.
Cassio , sorry dont work please look

Code: [Local Link Removed for Guests]

/System/Library/Extensions/AppleIntelCPUPowerManagement.kext/Contents/MacOS/AppleIntelCPUPowerManagement

arch: x86_64

found 11 wrmsr, should be 10, file is already patched or untested version


arch: i386

found 9 wrmsr, should be 10, file is already patched or untested version

Mac-di-magnifico:AICPMPatch magnifico$ 

Re: AICPMPatch

Posted: 03 Mar 2012, 17:30
by Cassio
I see. Which version of AICPM?

Re: AICPMPatch

Posted: 03 Mar 2012, 18:12
by magnifico
Cassio wrote:I see. Which version of AICPM?

142.6.0

:( help please

Re: AICPMPatch

Posted: 03 Mar 2012, 18:20
by Cassio
Please download again from first post and test.

Re: AICPMPatch

Posted: 03 Mar 2012, 18:45
by magnifico
ok..now work..can delete now from S/L/E Null Cpu ??

Re: AICPMPatch

Posted: 03 Mar 2012, 18:47
by Cassio
If your problem was KP due to write operations to MSR 0xE2, yes you can.

Re: AICPMPatch

Posted: 07 Mar 2012, 15:39
by surfcaster
following the thread of insanely understand that this patch is specific to Asus Sandy Bridge, fixes a problem KP, am I right?.
sorry for my English

Re: AICPMPatch

Posted: 07 Mar 2012, 16:25
by Cassio
No, there are other mobos (like Intel and ECS) and laptops (most of the Sandy Bridge I have seen) that need this patch.

Re: AICPMPatch

Posted: 07 Mar 2012, 19:34
by MARIANO
HI GUYS, im new here and i need your help
im stuck in the patching of sleep for my lion 10.7.3
im dsdt ok made with help of Kyndeer can you explain me ALL the steps for make sleep work?
i do the patching but doesnt work...
i dont erase any kext....i dont make any pther patch...

thanks!

Re: AICPMPatch

Posted: 07 Mar 2012, 19:59
by Cassio
This patch is ONLY intended to avoid KP caused by write operations to MSR 0xE2, it's not directly related to sleep problems.