Piker-Alpha / ssdtPRGen.sh

Script to generate a SSDT for Power Management
712 stars 156 forks source link

Samsung NP730U3E i5-3337U/ No ACPI tables/ Low frequency mode 0/ cpu-type #204

Open wujekfester opened 8 years ago

wujekfester commented 8 years ago

Hi, I've just do everything from readme file and it shows me this,

`sh-3.2# ./ssdtPRGen.sh

ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl v6.6 Copyright (c) 2013 by † Jeroen

v15.6 Copyright (c) 2013-2016 by Pike R. Alpha

Bugs > https://github.com/Piker-Alpha/ssdtPRGen.sh/issues <

gDataPath: /var/root/Library/ssdtPRGen/Data System information: Mac OS X 10.11.3 (15D21) Brandstring 'Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz'

./ssdtPRGen.sh: line 2295: 513 Segmentation fault: 11 "${gToolPath}/extractACPITables" xxd: /var/root/Library/ssdtPRGen/DSDT.aml: No such file or directory

Warning: No ACPI Processor declarations found in the DSDT! Using assumed Scope (_SB) {}

./ssdtPRGen.sh: line 2295: 570 Segmentation fault: 11 "${gToolPath}/extractACPITables" Generating ssdt.dsl for a 'MacBookAir5,2' with board-id [Mac-2E6FAB96566FE58C] Ivy Bridge Core i5-3337U processor [0x306A9] setup [0x0604] With a maximum TDP of 17 Watt, as specified by Intel

Warning: Low Frequency Mode is 0 (unknown/unconfirmed) Now using 1200 MHz for Mobile processor

Number logical CPU's: 4 (Core Frequency: 1800 MHz) Number of Turbo States: 9 (1900-2700 MHz) Number of P-States: 16 (1200-2700 MHz) Adjusting C-States for detected (mobile) processor Injected C-States for CPU0 (C1,C3,C6,C7) Injected C-States for CPU1 (C1,C2,C3) Warning: 'cpu-type' may be set improperly (0x0604 instead of 0x0704)

Intel ACPI Component Architecture ASL Optimizing Compiler version 20140926-64 [Nov 6 2014] Copyright (c) 2000 - 2014 Intel Corporation

ASL Input: /var/root/Library/ssdtPRGen/ssdt.dsl - 266 lines, 7972 bytes, 48 keywords AML Output: /var/root/Library/ssdtPRGen/ssdt.aml - 1602 bytes, 16 named objects, 32 executable opcodes

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

`

How to create DSDT with this, how to fix low frequency mode and what is this cpu-type?

gfoury commented 8 years ago

You should try the Beta branch.

gfoury commented 8 years ago

I should have mentioned that after changing branches, you need to remove ~/Library/ssdtPRGen. This is not that obvious...

wujekfester commented 8 years ago

Ok, i deleted all files and make it again, then i got this `MacBook-Air-Alex:~ alex$ ~/ssdtPRGen.sh

ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl v6.6 Copyright (c) 2013 by † Jeroen

v18.2 Copyright (c) 2013-2016 by Pike R. Alpha

Bugs > https://github.com/Piker-Alpha/ssdtPRGen.sh/issues <

System information: Mac OS X 10.11.3 (15D21) Brandstring: "Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz"

Version: models.cfg v160 / Ivy Bridge.cfg v150

Scope (PR) {222 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant) Generating ssdt.dsl for a 'MacBookAir5,2' with board-id [Mac-2E6FAB96566FE58C] Ivy Bridge Core i5-3337U processor [0x306A9] setup [0x0604] With a maximum TDP of 17 Watt, as specified by Intel

Warning: Low Frequency Mode is 0 (unknown/unconfirmed) Now using 1200 MHz for Mobile processor

Number logical CPU's: 4 (Core Frequency: 1800 MHz) Number of Turbo States: 9 (1900-2700 MHz) Number of P-States: 16 (1200-2700 MHz) Adjusting C-States for detected (mobile) processor Injected C-States for CPU0 (C1,C3,C6,C7) Injected C-States for CPU1 (C1,C2,C3) Warning: 'cpu-type' may be set improperly (0x0604 instead of 0x0704)

Compiling: ssdt_pr.dsl Intel ACPI Component Architecture ASL Optimizing Compiler version 20140926-64 [Nov 6 2014] Copyright (c) 2000 - 2014 Intel Corporation

ASL Input: /Users/alex/Library/ssdtPRGen/ssdt.dsl - 268 lines, 8111 bytes, 50 keywords AML Output: /Users/alex/Library/ssdtPRGen/ssdt.aml - 1679 bytes, 16 named objects, 34 executable opcodes

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

Do you want to copy /Users/alex/Library/ssdtPRGen/ssdt.aml to /Extra/ssdt.aml? (y/n)? n Do you want to open ssdt.dsl (y/n)? n MacBook-Air-Alex:~ alex$ `

What is Low Frequency Mode and cpu-type? How i can fix this?

Nomad347 commented 7 years ago

@wujekfester Try this Quick PM guide 1.Kernel patch to enable XCPM: http://www.insanelymac.com/forum/topic/319035-ivy-bridge-xcpm-kernelpatch-for-1012/

  1. SMBIOS macbookpro 10.1
  2. in Clover drop SSDT CPUPM and CPU0lst. Deselect Generate P state + C state, deselect C state, a good guide is here: https://www.tonymacx86.com/threads/mavericks-native-cpu-igpu-power-management.128926/
  3. Reboot. Check you have XCPM enabled in terminal sysctl -n machdep.xcpm.mode. Should be 1.
  4. generate SSDT https://github.com/Piker-Alpha/ssdtPRGen.sh. with XPCM 1 argument
  5. add new SSDT to CLover (+ Clover plist in SSDT order) folder and rename to SSDT-3.aml (replaces the native one). You can keep the other 2 SSDT (0 and 1). Discard the ones with X.