-->Donations via PayPal [External Link Removed for Guests] :guitar
-->Installation/Post Installation Tutorial [Local Link Removed for Guests]
-->Useful Links [Local Link Removed for Guests]
-->Olarila Images - Updated images [Local Link Removed for Guests]
-->Guides and Tutorials [Local Link Removed for Guests]
-->Clover Folder for All Chipsets [Local Link Removed for Guests]
-->DSDT Patch Requests [Local Link Removed for Guests]

AICPMPatch

Post Reply
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

AICPMPatch

Post by Cassio » 19 Feb 2012, 20:52

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
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
kissandtell
Posts: 9
Joined: 29 Jul 2011, 21:27

Re: AICPMPatch

Post by kissandtell » 21 Feb 2012, 14:01

Could you please explain very easily how to use it?
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 21 Feb 2012, 15:22

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
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
fc_candido
Posts: 31
Joined: 20 May 2011, 01:22

Re: AICPMPatch

Post by fc_candido » 21 Feb 2012, 19:29

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.
User avatar
magnifico
Geek
Geek
Posts: 154
Joined: 08 Jul 2011, 17:13
CPU: i7 6700 k
Motherboard: asrock z170 extreme 7+
GPU: i don't know jajajajaj

Re: AICPMPatch

Post by magnifico » 27 Feb 2012, 21:42

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
:mrgreen: :mrgreen: Without PC :mrgreen: :mrgreen:
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 27 Feb 2012, 21:59

As it says, to list offsets that need patching, but don't actually patch them, just list.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
User avatar
magnifico
Geek
Geek
Posts: 154
Joined: 08 Jul 2011, 17:13
CPU: i7 6700 k
Motherboard: asrock z170 extreme 7+
GPU: i don't know jajajajaj

Re: AICPMPatch

Post by magnifico » 27 Feb 2012, 22:38

This script is good for lion and snow ...work for 10.7.3 and 10.6.8 ?
:mrgreen: :mrgreen: Without PC :mrgreen: :mrgreen:
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 27 Feb 2012, 23:01

Yes, it should work for any version.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
User avatar
magnifico
Geek
Geek
Posts: 154
Joined: 08 Jul 2011, 17:13
CPU: i7 6700 k
Motherboard: asrock z170 extreme 7+
GPU: i don't know jajajajaj

Re: AICPMPatch

Post by magnifico » 28 Feb 2012, 07:03

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
:mrgreen: :mrgreen: Without PC :mrgreen: :mrgreen:
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 28 Feb 2012, 11:47

Yes.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
User avatar
magnifico
Geek
Geek
Posts: 154
Joined: 08 Jul 2011, 17:13
CPU: i7 6700 k
Motherboard: asrock z170 extreme 7+
GPU: i don't know jajajajaj

Re: AICPMPatch

Post by magnifico » 03 Mar 2012, 17:20

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$ 
:mrgreen: :mrgreen: Without PC :mrgreen: :mrgreen:
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 03 Mar 2012, 17:30

I see. Which version of AICPM?
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
User avatar
magnifico
Geek
Geek
Posts: 154
Joined: 08 Jul 2011, 17:13
CPU: i7 6700 k
Motherboard: asrock z170 extreme 7+
GPU: i don't know jajajajaj

Re: AICPMPatch

Post by magnifico » 03 Mar 2012, 18:12

Cassio wrote:I see. Which version of AICPM?

142.6.0

:( help please
:mrgreen: :mrgreen: Without PC :mrgreen: :mrgreen:
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 03 Mar 2012, 18:20

Please download again from first post and test.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
User avatar
magnifico
Geek
Geek
Posts: 154
Joined: 08 Jul 2011, 17:13
CPU: i7 6700 k
Motherboard: asrock z170 extreme 7+
GPU: i don't know jajajajaj

Re: AICPMPatch

Post by magnifico » 03 Mar 2012, 18:45

ok..now work..can delete now from S/L/E Null Cpu ??
:mrgreen: :mrgreen: Without PC :mrgreen: :mrgreen:
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 03 Mar 2012, 18:47

If your problem was KP due to write operations to MSR 0xE2, yes you can.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
surfcaster
Posts: 9
Joined: 12 Nov 2011, 14:24

Re: AICPMPatch

Post by surfcaster » 07 Mar 2012, 15:39

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
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 07 Mar 2012, 16:25

No, there are other mobos (like Intel and ECS) and laptops (most of the Sandy Bridge I have seen) that need this patch.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
MARIANO
Posts: 2
Joined: 07 Mar 2012, 19:28

Re: AICPMPatch

Post by MARIANO » 07 Mar 2012, 19:34

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!
ASUS N53SC 234 SV LAPTOP
I CORE 7 - NVIDIA 520MX - INTEL HD3000 - HITACHI 500GB
User avatar
Cassio
Olarila Staff
Olarila Staff
Posts: 3765
Joined: 26 Aug 2011, 22:53

Re: AICPMPatch

Post by Cassio » 07 Mar 2012, 19:59

This patch is ONLY intended to avoid KP caused by write operations to MSR 0xE2, it's not directly related to sleep problems.
ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: [External Link Removed for Guests] • Linux Mint 15 • Windows 8
Post Reply

Return to “Discussão geral”