Contribute
Register

Quick Guide to Generate a SSDT for CPU Power Management

Thanks, it's beginning to come clear to me. The double up of states simply means that it monitored twice.

No idea what you mean by "double up of states".
The kext writes a new line to the log whenever the set of observed states changes.

CPU-S is much the same with both SSDT in patched and without. At first blush it looks like p states are ok without any patches, which would be very nice.

Complete/correct PM only possible with "plugin-type"=1 injection.
 
So now I get 7 P states :)
CPU P-States [ 12 33 35 42 44 45 47 ]

You will likely observe more pstates the longer you monitor with AppleIntelInfo.kext.
 
Hello Guys,

I installed the SSDT generated by Piker-Alpha's ssdtPRGen.sh script V15.6
the CPU clock speed goes up and down as expected but sleep still wouldn't work
View media item 189351
So I tweaked my Clover settings using the configurator, added the EHC1 to EH01 and EHC2 to EH02 patches, compiled my DSDT, and now it sleeps (led off, fans off) and wakes perfectly, which is great! (not sure if DSDT or patches helped or not, anyway...) But clock speed stays around 3,4 Ghz.
View media item 189350
Not too much of a big deal, but I'm more into understanding the why than actually caring about what it does.

After reading a lot and testing countless options, I no longer use the ssdt.aml (now generated by ssdtPRGen.sh v21.5 - IDK if it makes a difference with the one generated with V15.6), since I read that on Haswell, CPU PM is handled by XPM. So I used RehabMan's SSDT-PluginType1.aml - and I got IOClass, String, X86PlatformPlugin activated, sleep works, but no low power states.

So I'm clueless, can you help me figure it out?
I attached everything that may be relevant, plus the -v boot without SSDT
Thanks in advance.
 

Attachments

  • ACPI_origin.zip
    69.4 KB · Views: 120
  • AppleIntelInfo log with SSDT.txt
    12.4 KB · Views: 167
  • AppleIntelInfo log without SSDT.txt
    13.3 KB · Views: 152
  • Clover BootLog.txt
    22.6 KB · Views: 202
  • Haswell-Asrock.ioreg
    4.9 MB · Views: 98
  • ssdt.dsl
    9.7 KB · Views: 178
  • config.plist
    8.3 KB · Views: 247
  • DSDT.dsl
    376.8 KB · Views: 163
  • vlcsnap-2017-08-28-21h30m27s484.png
    vlcsnap-2017-08-28-21h30m27s484.png
    8.8 MB · Views: 153
Last edited:
Is my SSDT working?

AppleIntelInfo.kext v1.2 Copyright © 2012-2015 Pike R. Alpha. All rights reserved


Settings:

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

logMSRs............................: 1

logIGPU............................: 0

logIntelRegs.......................: 1

logCStates.........................: 1

logIPGStyle........................: 1

InitialTSC.........................: 0x535d372a80

MWAIT C-States.....................: 1319200


Model Specific Regiters

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

MSR_CORE_THREAD_COUNT......(0x35) : 0x40004

MSR_PLATFORM_INFO..........(0xCE) : 0x80838F1012600

MSR_PMG_CST_CONFIG_CONTROL.(0xE2) : 0x1E008006

MSR_PMG_IO_CAPTURE_BASE....(0xE4) : 0x31814

IA32_MPERF.................(0xE7) : 0xD03CD1C98

IA32_APERF.................(0xE8) : 0xD71F5C04E

MSR_FLEX_RATIO.............(0x194) : 0xE0000

MSR_IA32_PERF_STATUS.......(0x198) : 0x262E00002800

MSR_IA32_PERF_CONTROL......(0x199) : 0x2A00

IA32_CLOCK_MODULATION......(0x19A) : 0x0

IA32_THERM_STATUS..........(0x19C) : 0x88370000

IA32_MISC_ENABLES..........(0x1A0) : 0x850089

MSR_MISC_PWR_MGMT..........(0x1AA) : 0x1CC1

MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x2829292A

IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x1

MSR_POWER_CTL..............(0x1FC) : 0x3C005F

MSR_RAPL_POWER_UNIT........(0x606) : 0xA0E03

MSR_PKG_POWER_LIMIT........(0x610) : 0x42FFD0001AEA82

MSR_PKG_ENERGY_STATUS......(0x611) : 0x20966CA

MSR_PKG_POWER_INFO.........(0x614) : 0x2D8

MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x0

MSR_PP0_POWER_LIMIT........(0x638) : 0x0

MSR_PP0_ENERGY_STATUS......(0x639) : 0x128E23A

MSR_PP0_POLICY.............(0x63a) : 0x0

MSR_PKGC6_IRTL.............(0x60b) : 0x8876

MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x121ED7EF42

MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x13C52C26CE

MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0

IA32_TSC_DEADLINE..........(0x6E0) : 0x53605A2752


CPU Ratio Info:

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

CPU Low Frequency Mode.............: 800 MHz

CPU Maximum non-Turbo Frequency....: 3800 MHz

CPU Maximum Turbo Frequency........: 4200 MHz

CPU P-States [ 38 (40) 41 ]

CPU C3-Cores [ 0 3 ]

CPU C6-Cores [ 0 2 3 ]

CPU P-States [ (8) 27 38 40 41 ]

CPU C3-Cores [ 0 2 3 ]

CPU P-States [ 8 27 32 38 40 (41) ]

CPU C3-Cores [ 0 1 2 3 ]

CPU C6-Cores [ 0 1 2 3 ]

CPU P-States [ (8) 27 32 38 39 40 41 ]

CPU P-States [ 8 27 32 34 38 39 40 (41) ]

CPU P-States [ (8) 21 27 32 34 38 39 40 41 ]

CPU P-States [ 8 21 27 32 34 37 (38) 39 40 41 ]

CPU P-States [ (8) 18 21 27 32 34 37 38 39 40 41 ]

CPU P-States [ (8) 18 20 21 27 32 34 37 38 39 40 41 ]

CPU P-States [ (8) 18 19 20 21 27 32 34 37 38 39 40 41 ]

CPU P-States [ 8 18 19 20 21 27 31 32 34 37 (38) 39 40 41 ]

CPU P-States [ 8 18 19 20 21 27 28 31 32 34 37 38 39 40 (41) ]

CPU P-States [ (8) 13 18 19 20 21 27 28 31 32 34 37 38 39 40 41 ]

CPU P-States [ (8) 13 18 19 20 21 27 28 31 32 34 35 37 38 39 40 41 ]

CPU P-States [ (8) 13 18 19 20 21 27 28 30 31 32 34 35 37 38 39 40 41 ]

CPU P-States [ 8 13 18 19 20 21 27 28 30 31 32 33 34 35 37 (38) 39 40 41 ]

CPU P-States [ (8) 13 18 19 20 21 27 28 29 30 31 32 33 34 35 37 38 39 40 41 ]

CPU P-States [ 8 13 18 19 20 21 23 27 28 29 30 31 32 33 34 35 37 (38) 39 40 41 ]

CPU P-States [ 8 13 18 19 20 21 23 27 28 29 30 31 32 33 34 35 37 38 39 40 41 (42) ]

CPU P-States [ (8) 13 18 19 20 21 23 24 27 28 29 30 31 32 33 34 35 37 38 39 40 41 42 ]
 
Hi don't know if it's working on my system,
here's the logsidle.jpglogic X (exporting and playing).jpg
 

Attachments

  • Archivio.zip
    2.5 MB · Views: 77
You will likely observe more pstates the longer you monitor with AppleIntelInfo.kext.
No idea if AppleIntelInfo.kext supports your CPU.
Did you build the kext from source?
If there is a bug in the kext, you should post an issue for Pike on github.


hello

I'm running OS X Sierra 10.12.6 and I used ssdtPRGen.sh to try and generate ssdt but ge this

System information: Mac OS X 10.12.6 (16G29)

Brandstring: "Genuine Intel(R) CPU @ 2.00GHz"


Error: Unknown processor model ...

Visit http://ark.intel.com to gather the required data:

Processor Number

TDP

Low Frequency Mode (use AppleIntelInfo.kext)

Base Frequency

Max Turbo Frequency

Cores

Threads

Aborting ...

Done.

then I try ssdtPRGen.sh -p 'E5-2683 v3’ -turbo 2300 and get this



Error: Invalid argument detected: -p E5-2683 v3’ -turbo 2300 /Users/admin/Downloads/ssdtPRGen-4.sh-Beta/ssdtPRGen.sh -p E5-2683 (check ssdtPRGen.sh -h)

Aborting ...

Done.



Admins-MBP:~ admin$



any help??
 
hi!
I have followed the instructions and I had to use the beta branch to generate de file (i7 6700k)
When the script is running I got the following text:
Code:
[B]Warning[/B]: 'cpu-type' may be set improperly (0x0705 instead of 0x0905)

    - Clover users should read https://clover-wiki.zetam.org/Configuration/CPU#cpu_type

[B]Error[/B]: board-id [Mac-27ADBB7B4CEE8E61] not supported by Skylake – check SMBIOS data / use the -target option


Do you want to continue (y/n)? y

if I continue I get the the next message:

Code:
Warning: 'system-type' may be set improperly (1 instead of 2)
	 - Clover users should read https://clover-wiki.zetam.org/Configuration/ACPI#acpi_smartups
Compiling: ssdt_pr.dsl

but it is ok to use it?
 
but it is ok to use it?
It is telling you that your hardware does not match the iMac14,2 system definition.
Consider changing to something more suitable.
 
Back
Top