Contribute
Register

Quick Guide to Generate a SSDT for CPU Power Management

I'm having a problem with step 3 anyone know what I'm missing?

Cheers


Last login: Sun Jan 29 17:49:47 on ttys001

Tys-iMac:~ tyclark$ curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/master/ssdtPRGen.sh

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 126k 100 126k 0 0 524k 0 --:--:-- --:--:-- --:--:-- 525k

Tys-iMac:~ tyclark$ chmod +x ~/ssdtPRGen.sh

Tys-iMac:~ tyclark$ sudo ~/ssdtPRGen.sh

sudo: unable to stat /etc/sudoers: Permission denied

sudo: no valid sudoers sources found, quitting

sudo: unable to initialize policy plugin

Tys-iMac:~ tyclark$



I
 
Not sure what to do with this warning. Do I change the type? If so, how?
Warning: 'cpu-type' may be set improperly (0x0605 instead of 0x0905)

Code:
Scope (_PR_) {222 bytes} with ACPI Processor declarations found in DSDT (ACPI 1.0 compliant)
Notice: Downloading Restrictions.cfg ...
Generating ssdt.dsl for a 'iMac17,1' with board-id [Mac-65CE76090165799A]
Skylake Core i5-6500 processor [0x506E3] setup [0x0605]
With a maximum TDP of 65 Watt, as specified by Intel
Number logical CPU's: 4 (Core Frequency: 3200 MHz)
Number of Turbo States: 4 (3300-3600 MHz)
Number of P-States: 29 (800-3600 MHz)
Injected C-States for CPU0 (C1,C3,C6,C7,C8,C9,C10)
Injected C-States for CPU1 (C1,C2,C3,C6,C7)
Warning: 'cpu-type' may be set improperly (0x0605 instead of 0x0905)
     - Clover users should read https://clover-wiki.zetam.org/Configuration/CPU#cpu_typeNotice: Downloading iasl.zip ...

Compiling: ssdt_pr.dsl
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20140926-64 [Nov  6 2014]
Copyright (c) 2000 - 2014 Intel Corporation
 
Not sure what to do with this warning. Do I change the type? If so, how?
Warning: 'cpu-type' may be set improperly (0x0605 instead of 0x0905)

Code:
Scope (_PR_) {222 bytes} with ACPI Processor declarations found in DSDT (ACPI 1.0 compliant)
Notice: Downloading Restrictions.cfg ...
Generating ssdt.dsl for a 'iMac17,1' with board-id [Mac-65CE76090165799A]
Skylake Core i5-6500 processor [0x506E3] setup [0x0605]
With a maximum TDP of 65 Watt, as specified by Intel
Number logical CPU's: 4 (Core Frequency: 3200 MHz)
Number of Turbo States: 4 (3300-3600 MHz)
Number of P-States: 29 (800-3600 MHz)
Injected C-States for CPU0 (C1,C3,C6,C7,C8,C9,C10)
Injected C-States for CPU1 (C1,C2,C3,C6,C7)
Warning: 'cpu-type' may be set improperly (0x0605 instead of 0x0905)
     - Clover users should read https://clover-wiki.zetam.org/Configuration/CPU#cpu_typeNotice: Downloading iasl.zip ...

Compiling: ssdt_pr.dsl
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20140926-64 [Nov  6 2014]
Copyright (c) 2000 - 2014 Intel Corporation
From my reading you can safely ignore that warning I believe? I got the same warning I think it's just a slight cosmetic glitch.
 
http://stackoverflow.com/questions/33003847/mac-osx-no-valid-sudoers-sources-found

I'd try booting into recovery console and running recovery on your main installation? Looks like a permissions error?

I'm having a problem with step 3 anyone know what I'm missing?

Cheers


Last login: Sun Jan 29 17:49:47 on ttys001

Tys-iMac:~ tyclark$ curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/master/ssdtPRGen.sh

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 126k 100 126k 0 0 524k 0 --:--:-- --:--:-- --:--:-- 525k

Tys-iMac:~ tyclark$ chmod +x ~/ssdtPRGen.sh

Tys-iMac:~ tyclark$ sudo ~/ssdtPRGen.sh

sudo: unable to stat /etc/sudoers: Permission denied

sudo: no valid sudoers sources found, quitting

sudo: unable to initialize policy plugin

Tys-iMac:~ tyclark$



I
 
Almost complete....couple configuration questions.
  1. Do I need to check the box for Drop OEM in Clover Configurator?
  2. Additionally, I have 4 SSDTs in my patched folder. Do all of those need to be sorted in SortedOrder? Or, is only having SSDT.aml sufficient?
  3. Results in Terminal correct?

Code:
CPU Ratio Info:
------------------------------------
CPU Low Frequency Mode.............: 800 MHz
CPU Maximum non-Turbo Frequency....: 3200 MHz
CPU Maximum Turbo Frequency........: 3600 MHz

IGPU Info:
------------------------------------
IGPU Current Frequency.............: 1050 MHz
IGPU Minimum Frequency.............:  350 MHz
IGPU Maximum Non-Turbo Frequency...:  350 MHz
IGPU Maximum Turbo Frequency.......: 1050 MHz
IGPU Maximum limit.................: No Limit

CPU P-States [ (10) 16 35 ] iGPU P-States [ (21) ]
CPU C3-Cores [ 0 1 3 ]
CPU C6-Cores [ 0 1 3 ]
CPU C7-Cores [ 1 3 ]
CPU P-States [ (10) 14 16 35 ] iGPU P-States [ (21) ]
CPU C3-Cores [ 0 1 2 3 ]
CPU C6-Cores [ 0 1 2 3 ]
CPU C7-Cores [ 1 2 3 ]
CPU P-States [ 10 (13) 14 16 22 35 ] iGPU P-States [ (21) ]
CPU P-States [ (10) 13 14 16 19 22 35 ] iGPU P-States [ (21) ]
CPU P-States [ (10) 13 14 16 19 21 22 35 ] iGPU P-States [ (21) ]
 

Attachments

  • Screen Shot 2017-01-30 at 6.19.17 PM.png
    Screen Shot 2017-01-30 at 6.19.17 PM.png
    270.3 KB · Views: 333
  • CPUPowerManagement.zip
    4 KB · Views: 93
Almost complete....couple configuration questions.
  1. Do I need to check the box for Drop OEM in Clover Configurator?
  2. Additionally, I have 4 SSDTs in my patched folder. Do all of those need to be sorted in SortedOrder? Or, is only having SSDT.aml sufficient?
  3. Results in Terminal correct?

Code:
CPU Ratio Info:
------------------------------------
CPU Low Frequency Mode.............: 800 MHz
CPU Maximum non-Turbo Frequency....: 3200 MHz
CPU Maximum Turbo Frequency........: 3600 MHz

IGPU Info:
------------------------------------
IGPU Current Frequency.............: 1050 MHz
IGPU Minimum Frequency.............:  350 MHz
IGPU Maximum Non-Turbo Frequency...:  350 MHz
IGPU Maximum Turbo Frequency.......: 1050 MHz
IGPU Maximum limit.................: No Limit

CPU P-States [ (10) 16 35 ] iGPU P-States [ (21) ]
CPU C3-Cores [ 0 1 3 ]
CPU C6-Cores [ 0 1 3 ]
CPU C7-Cores [ 1 3 ]
CPU P-States [ (10) 14 16 35 ] iGPU P-States [ (21) ]
CPU C3-Cores [ 0 1 2 3 ]
CPU C6-Cores [ 0 1 2 3 ]
CPU C7-Cores [ 1 2 3 ]
CPU P-States [ 10 (13) 14 16 22 35 ] iGPU P-States [ (21) ]
CPU P-States [ (10) 13 14 16 19 22 35 ] iGPU P-States [ (21) ]
CPU P-States [ (10) 13 14 16 19 21 22 35 ] iGPU P-States [ (21) ]

DropOem=true is not really related to this topic. It is required only if you have patched ACPI files in ACPI/patched. It seems like you don't have any (all SSDTs you have are "add-on", not "patched").
 
DropOem=true is not really related to this topic. It is required only if you have patched ACPI files in ACPI/patched. It seems like you don't have any (all SSDTs you have are "add-on", not "patched").
Thanks! Restarted. How do I test? Got it, test by putting AppleIntelInfo.kext on desktop and run commands.

Attached Intel Power Gadget reading and kext tests.

Power gadget only ever spikes to 3.2...from what I can tell.

How do I know it's successful? I do see more p-states...not sure what I'm supposed to be looking for exactly.
 

Attachments

  • Screen Shot 2017-01-30 at 9.07.14 PM.png
    Screen Shot 2017-01-30 at 9.07.14 PM.png
    60.3 KB · Views: 310
  • 1st.txt
    16.9 KB · Views: 112
  • 2nd.txt
    16.7 KB · Views: 120
Last edited:
Thanks! Restarted. How do I test? Got it, test by putting AppleIntelInfo.kext on desktop and run commands.

Attached Intel Power Gadget reading and kext tests.

Power gadget only ever spikes to 3.2...from what I can tell.

How do I know it's successful? I do see more p-states...not sure what I'm supposed to be looking for exactly.

It appears to be working (pstates observed are consistent with expectations for i5-6500 specifications).
 
Hello can someone help me confirm I created a proper SSDT for my system, based on the p-states. This is for a i7 6700K 4.0 GHZ

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.........................: 0x1be2c5b79980

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


Model Specific Regiters

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

MSR_CORE_THREAD_COUNT......(0x35) : 0x40008

MSR_PLATFORM_INFO..........(0xCE) : 0x80838F1012800

MSR_PMG_CST_CONFIG_CONTROL.(0xE2) : 0x1E000006

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

IA32_MPERF.................(0xE7) : 0x1D2A5492B3

IA32_APERF.................(0xE8) : 0x1E4BE54409

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

MSR_IA32_PERF_STATUS.......(0x198) : 0x29F800002A00

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

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

IA32_THERM_STATUS..........(0x19C) : 0x884A0800

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

MSR_MISC_PWR_MGMT..........(0x1AA) : 0x18C1

MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x2A2A2A2A

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

MSR_POWER_CTL..............(0x1FC) : 0x2C005F

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

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

MSR_PKG_ENERGY_STATUS......(0x611) : 0x3F141FB

MSR_PKG_POWER_INFO.........(0x614) : 0x2F8

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

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

MSR_PP0_ENERGY_STATUS......(0x639) : 0x2B37342

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

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

MSR_PKGC7_IRTL.............(0x60c) : 0x8894

MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x2EA72480F8

MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0xE3345CE78

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

MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0

IA32_TSC_DEADLINE..........(0x6E0) : 0x1BE2C8C7F6C9


CPU Ratio Info:

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

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

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

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

CPU P-States [ (13) 40 42 ]

CPU C3-Cores [ 0 1 4 6 ]

CPU C6-Cores [ 0 1 2 3 7 ]

CPU C7-Cores [ 4 5 6 ]

CPU P-States [ 13 28 (40) 42 ]

CPU C3-Cores [ 0 1 2 3 4 5 6 ]

CPU C6-Cores [ 0 1 2 3 4 5 7 ]

CPU C7-Cores [ 2 3 4 5 6 7 ]

CPU P-States [ 13 28 32 (40) 42 ]

CPU P-States [ 13 (14) 28 31 32 40 42 ]

CPU C6-Cores [ 0 1 2 3 4 5 6 7 ]

CPU P-States [ 13 14 28 31 32 39 40 (42) ]

CPU C3-Cores [ 0 1 2 3 4 5 6 7 ]

CPU P-States [ (10) 13 14 28 31 32 39 40 42 ]

CPU P-States [ 10 (11) 13 14 28 31 32 39 40 42 ]

CPU P-States [ (9) 10 11 13 14 28 31 32 39 40 42 ]

CPU P-States [ 9 10 11 13 14 (16) 24 28 31 32 39 40 42 ]

CPU P-States [ 9 10 11 13 (14) 16 23 24 28 31 32 39 40 42 ]

CPU P-States [ 9 10 11 (13) 14 16 23 24 25 28 31 32 39 40 42 ]

CPU P-States [ 9 10 11 (13) 14 16 23 24 25 27 28 31 32 39 40 42 ]
 
Back
Top