Contribute
Register

SSDT generation script (Ivybridge PM)

Status
Not open for further replies.
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
Thanks, I just noticed that in the script code. I copied MaciASL to the Applications folder, but it still doesn't work. Then I renamed MaciASL to iasl but that didn't help either. Oh well.
Jeroen fixed this in version 3.7 so please give it a go.
 
Joined
Mar 9, 2012
Messages
57
Motherboard
GA-Z77X-UD5H
CPU
i5-3570K
Graphics
Intel HD4000
Mac
Classic Mac
Mobile Phone
Jeroen fixed this in version 3.7 so please give it a go.

I've ran the script again:

sdtPRGen.sh v3.7 Copyright (c) 2013 by Pike R. Alpha
-----------------------------------------------------
Ivy Bridge Core i5-3570K processor installed
Using a maximum TDP of 77 Watt, as specified by Intel
4 logical CPU's detected with a Core Frequency of 3400 MHz
Number of Turbo States: 4 (3500-3800 MHz)
Number of P-States: 23 (1600-3800 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)
Warning: 'cpu-type' may be set improperly (0x0601 instead of 0x0701)
cp: /usr/local/bin/iasl: Permission denied
./ssdtPRGen.sh: line 1449: /usr/local/bin/iasl: No such file or directory

A listing of the directory /usr/local/bin shows:

authorizationhost securityagentclient

so there's no file or directory iasl created.
 
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
I've ran the script again:

sdtPRGen.sh v3.7 Copyright (c) 2013 by Pike R. Alpha
...
Warning: 'cpu-type' may be set improperly (0x0601 instead of 0x0701)
cp: /usr/local/bin/iasl: Permission denied
./ssdtPRGen.sh: line 1449: /usr/local/bin/iasl: No such file or directory...
No sudo?

p.s. Version 3.8 has better feedback ;)
 
Joined
Mar 9, 2012
Messages
57
Motherboard
GA-Z77X-UD5H
CPU
i5-3570K
Graphics
Intel HD4000
Mac
Classic Mac
Mobile Phone
No sudo?

p.s. Version 3.8 has better feedback ;)

Ok, I tried again, now with:
$ cd Desktop
$ sudo chmod +x ssdtPRGen.sh
$ sudo ./ssdtPRGen.sh

It worked:
sdtPRGen.sh v3.8 Copyright (c) 2013 by Pike R. Alpha
-----------------------------------------------------
Ivy Bridge Core i5-3570K processor installed
Using a maximum TDP of 77 Watt, as specified by Intel
4 logical CPU's detected with a Core Frequency of 3400 MHz
Number of Turbo States: 4 (3500-3800 MHz)
Number of P-States: 23 (1600-3800 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)
Warning: 'cpu-type' may be set improperly (0x0601 instead of 0x0701)

Searching for iasl5 in the /Applications folder... IASL found. Copying file... Done.
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130117-64 [Jan 19 2013]
Copyright (c) 2000 - 2013 Intel Corporation

ASL Input: /Users/######/Desktop/SSDT_PR.dsl - 231 lines, 7405 bytes, 36 keywords
AML Output: /Users/######/Desktop/SSDT_PR.aml - 1343 bytes, 15 named objects, 21 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

-----------------------------------------

Maybe you should explain a bit more in your first post, just:

"Save the file on your desktop. Then open a terminal window and enter:

chmod +x ~/Desktop/ssdtPRGen.sh"

isn't enough. Something like this?

--------------------------------------------
- Download script here: https://github.com/Piker-Alpha/RevoBoot/blob/clang/i386/libsaio/acpi/Tools/ssdtPRGen.sh:
--> click on Raw
--> select and copy the code
--> open TextEditor and paste the code
--> save the file as ssdtPRGen.sh on your desktop
--> close TextEditor

- Download MaciASL here: http://www.tonymacx86.com/dsdt/83565-native-dsdt-aml-ide-compiler-maciasl-open-beta.html

- Copy MaciASL from the /Download folder to the /Applications folder

- Run ssdtPRGen.sh:
--> open Terminal
--> give these commands:
--> $ cd Desktop
--> $ sudo chmod +x ssdtPRGen.sh
--> (you will be asked for your password, so enter it)
--> $ sudo ./ssdtPRGen.sh
--> close Terminal

If everything went well, two files will have been generated and been put on your desktop: SSDT_PR.dsl and SSDT_PR.aml.

- Rename SSDT_PR.aml to SSDT.aml and copy it to the /Extra folder

- Add boot flags:
--> if you're using Chimera, use TextEdit to add this to org.chameleon.Boot.plist in the /Extra folder:
<key>DropSSDT</key>
<string>Yes</string>
--> if you're using Clover, use TextEdit to add this to config.plist in the /EFI folder:
<key>DropOemSSDT</key>
<string>Yes</string>

- Reboot

Enjoy the power management!
---------------------------------------

(thanks to toledo, I nicked most of the instructions from his thread http://www.tonymacx86.com/mountain-...tive-ivy-bridge-cpu-gpu-power-management.html ;))
 
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
Thanks, but we want to make it even easier. Currently testing a new installation script for post #1 that will do everything for you.
 
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
The easy installer is now available for download from post #1 And because we want it to be overly simplistic, there is no instruction, yet, other than to download and run the installer. Feedback welcome – long story short. Have to run now.
 
Joined
Apr 28, 2011
Messages
903
Motherboard
ASRock Fatal1ty Z370 Gaming-ITX/ac
CPU
i7-8700
Graphics
UHD 630
Mac
  1. MacBook Pro
Mobile Phone
  1. iOS
The easy installer is now available for download from post #1 And because we want it to be overly simplistic, there is no instruction, yet, other than to download and run the installer. Feedback welcome – long story short. Have to run now.

Here it is
Code:
sdtPRGen.sh v4.0 Copyright (c) 2013 by Pike R. Alpha
-----------------------------------------------------
Ivy Bridge Core i7-3770T processor installed
Using a maximum TDP of 45 Watt, as specified by Intel
8 logical CPU's detected with a Core Frequency of 2500 MHz
Number of Turbo States: 12 (2600-3700 MHz)
Number of P-States: 22 (1600-3700 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)

IASL not found. Downloading iasl...
Password:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1132k  100 1132k    0     0   131k      0  0:00:08  0:00:08 --:--:--  166k
Done.

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130117-64 [Jan 19 2013]
Copyright (c) 2000 - 2013 Intel Corporation

ASL Input:     /Users/gio/Desktop/SSDT_PR.dsl - 258 lines, 8169 bytes, 56 keywords
AML Output:    /Users/gio/Desktop/SSDT_PR.aml - 1539 bytes, 27 named objects, 29 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Do you want to copy /Users/gio/Desktop/SSDT_PR.aml to /Extra/SSDT.aml? (y/n)?y
logout

Code:
Feb 15 18:41:18 localhost kernel[0]: MSRDumper CoreMulti(16) 
Feb 15 18:41:18 localhost kernel[0]: MSRDumper PStatesReached: 16 17 21 25 32 33 34 35 36 37

Works fine!
No more chance to set minimum lower than 1600, though
And it bricked my MACIasl app. Had to delete and reinstall it (no big deal:thumbup:)
 
Joined
Jan 19, 2013
Messages
271
Motherboard
Mac mini
CPU
i[5/7]
Graphics
HD[3/4]000
Mac
Classic Mac
Mobile Phone
Works fine!
No more chance to set minimum lower than 1600, though
And it bricked my MACIasl app. Had to delete and reinstall it (no big deal:thumbup:)
Thank you for this confirmation.

About the minimum frequency. You can still run ssdtPRGen.sh/ssdtPRGen.command with the extra arguments. However. I don't think you that want to change it. Why would you? We are clearly following the Intel data sheets so there is no need for it.

About the bricking. That's not us! That's what you get for using software with a time bomb. As in MaciASL removes everything in the MacOS folder when the "beta expires". And I mean everything, including the executables of iasl4 and iasl5. IMHO nobody should ever do this kind of things, but that's basically what happened.

I also like to add that the downloading of iasl is a one time event only.
 
Joined
Mar 9, 2012
Messages
57
Motherboard
GA-Z77X-UD5H
CPU
i5-3570K
Graphics
Intel HD4000
Mac
Classic Mac
Mobile Phone
Works fine here too, no issues at all:

sdtPRGen.sh v4.0 Copyright (c) 2013 by Pike R. Alpha
-----------------------------------------------------
Ivy Bridge Core i5-3570K processor installed
Using a maximum TDP of 77 Watt, as specified by Intel
4 logical CPU's detected with a Core Frequency of 3400 MHz
Number of Turbo States: 4 (3500-3800 MHz)
Number of P-States: 23 (1600-3800 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)
Warning: 'cpu-type' may be set improperly (0x0601 instead of 0x0701)

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130117-64 [Jan 19 2013]
Copyright (c) 2000 - 2013 Intel Corporation

ASL Input: /Users/######/Desktop/SSDT_PR.dsl - 231 lines, 7405 bytes, 36 keywords
AML Output: /Users/######/Desktop/SSDT_PR.aml - 1343 bytes, 15 named objects, 21 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Do you want to copy /Users/######/Desktop/SSDT_PR.aml to /Extra/SSDT.aml? (y/n)?n
logout
 
Status
Not open for further replies.
Top