-->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]

About power management (SpeedStep, sleep)

User avatar
artur-pt
Olarila Staff
Olarila Staff
Posts: 5012
Joined: 24 May 2011, 11:04
CPU: i5
Motherboard: Lenovo
GPU: Intel

About power management (SpeedStep, sleep)

Post by artur-pt » 30 Jul 2012, 17:47

Updated: for Haswell laptops with early reboot problem, use this kernel patch
Show
10.10

Code: [Local Link Removed for Guests]

perl -pi -e 's|\xe2\x00\x00\x00\x02\x00\x00\x00|\x00\x00\x00\x00\x02\x00\x00\x00|g' kernel
perl -pi -e 's|\xe2\x00\x00\x00\x4c\x00\x00\x00|\x00\x00\x00\x00\x4c\x00\x00\x00|g' kernel
perl -pi -e 's|\xe2\x00\x00\x00\x90\x01\x00\x00|\x00\x00\x00\x00\x90\x01\x00\x00|g' kernel
10.9.x

Code: [Local Link Removed for Guests]

perl -pi -e 's|\x74\x6c(\x48\x83\xc7\x28\x90\x8b\x05..\x5e\x00\x85\x47\xdc)\x74\x54(\x8b\x4f\xd8\x45\x85\xc0\x74\x08\x44\x39\xc1\x44\x89\xc1)\x75\x44(\x0f\x32\x89\xc0\x48\xc1\xe2\x20\x48\x09\xc2\x48\x89\x57\xf8\x48\x8b\x47\xe8\x48\x85\xc0\x74\x06\x48\xf7\xd0\x48\x21\xc2\x48\x0b\x57\xf0\x49\x89\xd1\x49\xc1\xe9\x20\x89\xd0\x8b\x4f\xd8\x4c\x89\xca)(\x0f\x30\x8b\x4f\xd8\x0f\x32\x89\xc0\x48\xc1\xe2\x20\x48\x09\xc2\x48\x89\x17\x48\x83\xc7\x30\xff\xce)\x75\x99(\x5d\xc3)\x90{7}|\x74\x73${1}\x74\x5b${2}\x75\x4b${3}\x66\x81\xf9\xe2\x00\x74\x02${4}\x75\x92${5}|g' mach_kernel
10.8.5

Code: [Local Link Removed for Guests]

perl -pi -e 's|\x74\x69(\x48\x83\xc7\x28\x90\x8b\x05\xfe\xce\x5f\x00\x85\x47\xdc)\x74\x51(\x8b\x4f\xd8\x45\x85\xc0\x74\x05\x44\x39\xc1)\x75\x44(\x0f\x32\x89\xc0\x48\xc1\xe2\x20\x48\x09\xc2\x48\x89\x57\xf8\x48\x8b\x47\xe8\x48\x85\xc0\x74\x06\x48\xf7\xd0\x48\x21\xc2\x48\x0b\x57\xf0\x49\x89\xd1\x49\xc1\xe9\x20\x89\xd0\x8b\x4f\xd8\x4c\x89\xca)(\x0f\x30\x8b\x4f\xd8\x0f\x32\x89\xc0\x48\xc1\xe2\x20\x48\x09\xc2\x48\x89\x17\x48\x83\xc7\x30\xff\xce)\x75\x9c(\x5d\xc3)\x90{7}(\x90{3})|\x74\x70${1}\x74\x58${2}\x75\x4b${3}\x66\x81\xf9\xe2\x00\x74\x02${4}\x75\x95${5}${6}|g' mach_kernel
Source
[External Link Removed for Guests]
Updated: Clover boot loader can generate SSDTs for all CPUs, including Ivy Bridge
[Local Link Removed for Guests]
Show

Code: [Local Link Removed for Guests]

	<key>ACPI</key>
	<dict>
		<key>SSDT</key>
		<dict>
			<key>DropOem</key>
			<true/>
			<key>Generate</key>
			<dict>
				<key>CStates</key>
				<true/>
				<key>PStates</key>
				<true/>
			</dict>
		</dict>
	</dict>
Updated: for Sandy and Ivy Bridge CPUs, Chameleon GeneratePStates is not working since 10.7.4 update, you can use this script to generate an SSDT with P and C states
Show
Run the commands in terminal

Code: [Local Link Removed for Guests]

curl -o ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/master/ssdtPRGen.sh
chmod +x ssdtPRGen.sh
./ssdtPRGen.sh
Put SSDT.aml in Extra folder, enable the option DropSSDT, disable GeneratePStates and GenerateCStates

Code: [Local Link Removed for Guests]

	<key>DropSSDT</key>
	<string>Yes</string>
	<key>GenerateCStates</key>
	<string>No</string>
	<key>GeneratePStates</key>
	<string>No</string>
Updated: several PCs (desktop and laptop) with Sandy and Ivy Bridge chipset need AppleIntelCPUPowerManagement to be patched
[Local Link Removed for Guests]

Updated: Chameleon boot loader can generate SSDTs with P and C states automatically, simply enable the options GeneratePStates and GenerateCStates
Show

Code: [Local Link Removed for Guests]

	<key>GeneratePStates</key>
	<string>Yes</string>
	<key>GenerateCStates</key>
	<string>Yes</string>
You still need to make sure that the kext AppleLPC is loaded. If it's not, adjust ID of device LPC with DSDT patch
[Local Link Removed for Guests]

What SMBIOS use for your hardware
[Local Link Removed for Guests]

Application to monitor temperature, frequency and voltage of the processor: HWMonitor
[External Link Removed for Guests]
FakeSMC plugins:
CPUSensors - monitor processor
GPUSensors - monitor video card
LPCSensors - monitor motherboard (Super I/O)
ACPISensors - other not supported by LPCSensors (only works with [External Link Removed for Guests], install only if you make those changes)

The value reported by the CPU is not the actual temperature, but the difference to Tjmax, which is the temperature the CPU would turn itself off to avoid damage. The Tjmax is calculated automatically, but may be incorrect, causing the temperature shown in degrees Celsius to be also wrong. In this case you can set the value manually by editing the key Tjmax in the file Info.plist of CPUSensors kext.

How to edit Info.plist
[Local Link Removed for Guests]

The original kext responsible for power management is AppleIntelCPUPowerManagement, but few motherboards work with this kext without any adjustment, so the installation guides suggest using some kext that disables AppleIntelCPUPowerManagement to avoid kernel panic or overheating of the processor.
[Local Link Removed for Guests]

Since Leopard 10.5.8 sleep only works if the AppleIntelCPUPowerManagement is running, using a disabler kext breaks the sleep. To solve the problem the kext SleepEnabler was created, it enables AppleIntelCPUPowerManagement when the computer is going to sleep.
[External Link Removed for Guests]
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
[External Link Removed for Guests] - join me at irc.freenode.net/##olarila
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 15 Aug 2012, 18:49

I was trying to create my SSDT file, but getting this error in terminal.

My CPU:
Intel® Core™ i5-2400 Processor (6M Cache, up to 3.40 GHz)
Max Turbo Frequency 3.4 GHz
Max TDP 95 W

In Terminal i get this message:
Last login: Wed Aug 15 20:02:19 on console
Macintoshs-Mac-Pro:~ Macintosh$ sudo ./ssdtPRGen.sh 95 3400
Password:
sudo: ./ssdtPRGen.sh: command not found
Macintoshs-Mac-Pro:~ Macintosh$

Any suggestion?
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: About power management (SpeedStep, sleep)

Post by oldnapalm » 15 Aug 2012, 18:54

Put ssdtPRGen.sh in your user's home folder, or cd to the folder where you put the script before running it.

Example

Code: [Local Link Removed for Guests]

cd Downloads
sudo ./ssdtPRGen.sh 95 3400
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 15 Aug 2012, 21:38

I put SSDT in Extra Folder.

Added Stings in org.chameleon.Boot.plist as below:
<key>DropSSDT</key>
<string>Yes</string>
<key>GeneratePStates</key>
<string>Yes</string>
<key>GenerateCStates</key>
<string>Yes</string>

Is that correct? In the tutorial it says: Enable the option DropSSDT, disable GeneratePStates and GenerateCStates. Disable from where?
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: About power management (SpeedStep, sleep)

Post by oldnapalm » 15 Aug 2012, 21:57

No, it's wrong.

Disable means set

Code: [Local Link Removed for Guests]

   <key>GeneratePStates</key>
   <string>No</string>
   <key>GenerateCStates</key>
   <string>No</string>
or just remove those keys, since their default value is No.
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 15 Aug 2012, 23:14

No AppleLPC loaded in terminal, i used "kextstat" command.


I already followed that process even AppleLPC not loaded.Bro i have downloaded LPC SANDY BRIDGE from patches section and patched with DSDT EDIT.

Note: I opened again SSDT.aml with DSDT Edit and try LPC SANDYBRIDGE patch.
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: About power management (SpeedStep, sleep)

Post by oldnapalm » 16 Aug 2012, 03:00

Man, pay attention, apply LPC patch in DSDT, not SSDT.

Isn't there a complete patch for your mobo in [Local Link Removed for Guests] ?
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 16 Aug 2012, 13:40

oldnapalm wrote:Man, pay attention, apply LPC patch in DSDT, not SSDT.

Isn't there a complete patch for your mobo in [Local Link Removed for Guests] ?
Brother i have been searching DSDT for my mobo, before i start installation OS X. But i could not able to find it. I have checked DSDT patched section before. There is only G1.Sniper but you may know there are three version of Gigabyte G1.Sniper like Sniper 1, Sniper 2, Sniper 3 and Sniper M3. I believe in DSDT patch section there is G1. Sniper for 1366 socket, not sure.

My mobo is Sniper M3 Socket 1155 Z77 Chipset. Till now i am not using any DSDT, NullCPUManagment or Any Patches for AppleIntelPowerManagment. But i would like to build my Hackintosh which will work OOB from all corners with Olarila Forum help, all though i am new and lack of knowledge in Hackintosh.

What i should do now, I am looking forward helpful hand from you all in future as i am getting now.

Thanks.
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: About power management (SpeedStep, sleep)

Post by oldnapalm » 16 Aug 2012, 14:33

Read this topic, watch the video to learn how to apply a patch in DSDT, and apply the patches you need, starting with LPC for desktop Sandy Bridge.

[Local Link Removed for Guests]
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 16 Aug 2012, 19:35

oldnapalm wrote:Read this topic, watch the video to learn how to apply a patch in DSDT, and apply the patches you need, starting with LPC for desktop Sandy Bridge.

[Local Link Removed for Guests]
Sure. Bro I would like to do step by step not like use all the patches then compile, can i? Use DSDT Edit to Extract from ACPI Table. Use Desktop LPC Sandy Bridge patch+Compile+Save on Desktop. If it goes fine without error then the next patch. I think it will be easy like not mass with all together.
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 17 Aug 2012, 08:53

CruseRocks wrote:
Sure. Bro I would like to do step by step not like use all the patches then compile, can i? Use DSDT Edit to Extract from ACPI Table. Use Desktop LPC Sandy Bridge patch+Compile+Save on Desktop. If it goes fine without error then the next patch. I think it will be easy like not mass with all together.
I have started with LPC Desktop LPC Sandy Bridge patch and get this errors, Could you please check.
DSDT Edit.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
artur-pt
Olarila Staff
Olarila Staff
Posts: 5012
Joined: 24 May 2011, 11:04
CPU: i5
Motherboard: Lenovo
GPU: Intel

Re: About power management (SpeedStep, sleep)

Post by artur-pt » 17 Aug 2012, 12:35

hello

start with DTGP

good hack
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
[External Link Removed for Guests] - join me at irc.freenode.net/##olarila
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 17 Aug 2012, 13:09

artur-pt wrote:hello

start with DTGP

good hack
Thanks for your reply. I have started with DTGP but still one error like _HID suffix must be all hex digits(GH), Do i need to apply all the patches together and then compile and save aml? If so Bro can u let me know what all patches i need to download from [Local Link Removed for Guests] section. Example in Desktop section: DTGP, LPC Sandy Bridge ect.

I am totally new so please tell me all i need those patch to build my Hackintosh OOB, Thanks bro. Thanks once again.
User avatar
oldnapalm
Olarila Staff
Olarila Staff
Posts: 1225
Joined: 05 Dec 2010, 20:49

Re: About power management (SpeedStep, sleep)

Post by oldnapalm » 17 Aug 2012, 14:05

CruseRocks wrote:still one error like _HID suffix must be all hex digits(GH)
Search the forum for the error message, this has been answered a lot of times.
I am totally new
This is a good reason for you to read with attention. The DTGP question, for example, is very clear in the guide
DTGP is required by many patches, so you will probably need it.
[Local Link Removed for Guests]
so please tell me all i need those patch to build my Hackintosh OOB
No one will do it, you have to figure it out by yourself, reading and testing, I told you that already.
CruseRocks
Posts: 59
Joined: 01 Jul 2012, 16:19

Re: About power management (SpeedStep, sleep)

Post by CruseRocks » 18 Aug 2012, 01:48

Believe me or not i have never used Mac before. Brothers i am going my max level best to make it possible, of course by help from all of you. I am really glad you guys are always guiding me even i post all silly questions :)

Big Big Big thanks to all of you. Good Hack OLARILA.COM.
Leonald
Posts: 12
Joined: 08 May 2012, 16:33

Re: About power management (SpeedStep, sleep)

Post by Leonald » 27 Aug 2012, 06:53

so if chameleon can do this automatically
Active options and will be ready?
karisx
Posts: 11
Joined: 30 Oct 2012, 10:30

Re: About power management (SpeedStep, sleep)

Post by karisx » 17 Nov 2012, 07:48

Open the file ssdt-pr.dsl with DSDT Editor, compile and save as SSDT.aml in the Extra folder.
Enable the option DropSSDT, disable GeneratePStates and GenerateCStates.

Chameleon can generate P and C states automatically, simply enable the options
ive generated my ssdt.aml. but i i dont understand that above . could you explain me please?. so in chameleon i have enable it and where i have to disable it??
User avatar
artur-pt
Olarila Staff
Olarila Staff
Posts: 5012
Joined: 24 May 2011, 11:04
CPU: i5
Motherboard: Lenovo
GPU: Intel

Re: About power management (SpeedStep, sleep)

Post by artur-pt » 17 Nov 2012, 07:52

hello

use chameleon wizard to set the config in org.chameleon.boot.plist

good hack
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
[External Link Removed for Guests] - join me at irc.freenode.net/##olarila
karisx
Posts: 11
Joined: 30 Oct 2012, 10:30

Re: About power management (SpeedStep, sleep)

Post by karisx » 17 Nov 2012, 08:43

oh i see... so if i have generated my ssdt.aml then i have to choose in my chameleon enable dropssdt and disable c-p state (and if dont have ssdt.aml, i have to enable c p states..)

thank you..
i have generated my ssdt,
patch my applecpupowermanagement (im using sandy bridge),
run kexstat and see applelpc loaded, remove nullcpupwmngmt and sleep enabler.
but i got kp said kernel in bactrace is applecpupowermanegement..
so could you please tell mee what is wrong?? :D

  • Image
User avatar
artur-pt
Olarila Staff
Olarila Staff
Posts: 5012
Joined: 24 May 2011, 11:04
CPU: i5
Motherboard: Lenovo
GPU: Intel

Re: About power management (SpeedStep, sleep)

Post by artur-pt » 17 Nov 2012, 11:16

hello

try this one

p-sates=yes and c-states=No

Dropssdt=Yes
i5_2430M_SSDT.aml.zip
good hack
You do not have the required permissions to view the files attached to this post.
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
[External Link Removed for Guests] - join me at irc.freenode.net/##olarila
Post Reply

Return to “Guides and tutorials”