Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

EDIT: Brightness Slider solved. Thank you Rehabman. Reference Post #1232 Page 124.
Only thing left is to map the Brightness Slider.


Hello everyone Good day! I'm a complete newbie and looking for someone to help me.

My problem is with my brightness controls slider.

My laptop is Sony SVF14213SAW, Intel i3-3227u + Intel HD4000.

I applied the pre-Haswell: "Brightness Fix (HD3000/HD4000)" and added ACPIBacklight.kext on my Clover EFI/CLOVER/KEXTS/10.12 and then applied the "Rename GFX0 to IGPU" on my DSDT.

I rebooted and I got the highest brightness and the brightness slider doesn't seem to do anything.

Any help is really appreciated and please bear with me, Thank you.
kextstat|grep -y acpiplat
13 2 0xffffff7f8271f000 0x60000 0x60000 com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>

kextstat|grep -y appleintelcpu
25 0 0xffffff7f825cc000 0x2b000 0x2b000 com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) 24568E6C-556D-36A8-BF1F-F390B1E85C5B <7 6 5 4 3 1>

kextstat|grep -y applelpc
94 0 0xffffff7f8229f000 0x3000 0x3000 com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <93 12 5 4 3>

sudo touch /System/Library/Extensions && sudo kextcache -u /

kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
KernelCache ID: BBBC2CD9825D605B9B024AF06E120790
 

Attachments

  • Dhaniele’s MacBook Pro-Ioreg.ioreg
    2.9 MB · Views: 84
  • RehabMan.zip
    17.4 KB · Views: 93
  • CLOVER.zip
    2.8 MB · Views: 95
Last edited:
EDIT: Brightness Slider solved. Thank you Rehabman. Reference Post #1232 Page 124.
Only thing left is to map the Brightness Slider.


Actually, it is linked from post #1... I guess you didn't read very carefully.
 
Actually, it is linked from post #1... I guess you didn't read very carefully.

My bad. Didn't have enough sleep yesterday. Everything is okay now.

Thank you so much for your work.
 
Hi Rehabman,

I have a Surface Pro 2 with CPU Core i5-4200U and HD 4400 graphic.
I tried to follow your guide and install IntelBacklight.kext. I also patched the SSDT (SSDT-8) using the file "graphics_PNLF" (I can't find the file "Brightness Fix" in the link https://github.com/RehabMan/Laptop-DSDT-Patch) and modified the config.plist but the backlight slider still didn't appear. Did I do anything wrong ?
Thank for your help.

BG,
 

Attachments

  • Backlight.zip
    89 KB · Views: 76
Hi Rehabman,

I have a Surface Pro 2 with CPU Core i5-4200U and HD 4400 graphic.
I tried to follow your guide and install IntelBacklight.kext. I also patched the SSDT (SSDT-8) using the file "graphics_PNLF" (I can't find the file "Brightness Fix" in the link https://github.com/RehabMan/Laptop-DSDT-Patch) and modified the config.plist but the backlight slider still didn't appear. Did I do anything wrong ?
Thank for your help.

BG,

"Brightness Fix" is found in MaciASL when you add the repo correctly to MaciASL->Preferences->Sources.

Read FAQ, "Problem Reporting"
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
 
"Brightness Fix" is found in MaciASL when you add the repo correctly to MaciASL->Preferences->Sources.

Read FAQ, "Problem Reporting"
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
After imported the repo and applied the Brightness Fix patch to the DSDT I got to a bunch of error when I try to save as ACPI Machine Language Library so I decided to re disassembly the DSDT file using iasl download from https://bitbucket.org/RehabMan/acpica/downloads
But I got this warning :
iASL Warning: There were 12 external control methods found during disassembly, but only 5 were resolved (7 unresolved). Additional ACPI tables may be required to properly disassemble the code.

Did I do anything wrong? I already copied all of my SSDT to the same folder.

Thanks.
Code:
Ks-MacBook-Pro:origin k$ iasl -e SSDT* -d DSDT.aml

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0xEDDA (60890) bytes
ACPI: DSDT 0x0000000000000000 00EDDA (v02 OEMA   O E M A  00000250 INTL 20120711)
External object resolution file       SSDT-8.dsl
Input file SSDT-8.dsl, Length 0x1C9B3 (117171) bytes
    SSDT-8.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-8.aml
Input file SSDT-8.aml, Length 0x3CE8 (15592) bytes
ACPI: SSDT 0x0000000000000000 003CE8 (v01 SaSsdt SaSsdt   00003000 INTL 20100331)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-7.dsl
Input file SSDT-7.dsl, Length 0x17DD (6109) bytes
    SSDT-7.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-7.aml
Input file SSDT-7.aml, Length 0x315 (789) bytes
ACPI: SSDT 0x0000000000000000 000315 (v01 SataRe SataTabl 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-6x.dsl
Input file SSDT-6x.dsl, Length 0xB5A (2906) bytes
    SSDT-6x.dsl: File does not appear to contain a valid AML table
External object resolution file      SSDT-6x.aml
Input file SSDT-6x.aml, Length 0x119 (281) bytes
ACPI: SSDT 0x0000000000000000 000119 (v01 PmRef  ApCst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-5x.dsl
Input file SSDT-5x.dsl, Length 0x1FDF (8159) bytes
    SSDT-5x.dsl: File does not appear to contain a valid AML table
External object resolution file      SSDT-5x.aml
Input file SSDT-5x.aml, Length 0x3D3 (979) bytes
ACPI: SSDT 0x0000000000000000 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-4x.dsl
Input file SSDT-4x.dsl, Length 0x2D33 (11571) bytes
    SSDT-4x.dsl: File does not appear to contain a valid AML table
External object resolution file      SSDT-4x.aml
Input file SSDT-4x.aml, Length 0x5AA (1450) bytes
ACPI: SSDT 0x0000000000000000 0005AA (v01 PmRef  ApIst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-3.dsl
Input file SSDT-3.dsl, Length 0x3DB7 (15799) bytes
    SSDT-3.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-3.aml
Input file SSDT-3.aml, Length 0xAD8 (2776) bytes
ACPI: SSDT 0x0000000000000000 000AD8 (v01 PmRef  CpuPm    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-2.dsl
Input file SSDT-2.dsl, Length 0x2935 (10549) bytes
    SSDT-2.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-2.aml
Input file SSDT-2.aml, Length 0x539 (1337) bytes
ACPI: SSDT 0x0000000000000000 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-1.dsl
Input file SSDT-1.dsl, Length 0x1374 (4980) bytes
    SSDT-1.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-1.aml
Input file SSDT-1.aml, Length 0x141 (321) bytes
ACPI: SSDT 0x0000000000000000 000141 (v01 Intel  zpoddult 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-0.dsl
Input file SSDT-0.dsl, Length 0x154B (5451) bytes
    SSDT-0.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-0.aml
Input file SSDT-0.aml, Length 0x200 (512) bytes
ACPI: SSDT 0x0000000000000000 000200 (v01 INTEL  sensrhub 00000000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
Ks-MacBook-Pro:origin k$ iasl -e SSDT* -d DSDT.aml

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0xEDDA (60890) bytes
ACPI: DSDT 0x0000000000000000 00EDDA (v02 OEMA   O E M A  00000250 INTL 20120711)
External object resolution file       SSDT-8.aml
Input file SSDT-8.aml, Length 0x399E (14750) bytes
ACPI: SSDT 0x0000000000000000 00399E (v01 SaSsdt SaSsdt   00003000 INTL 20091112)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-7.aml
Input file SSDT-7.aml, Length 0x315 (789) bytes
ACPI: SSDT 0x0000000000000000 000315 (v01 SataRe SataTabl 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-6x.aml
Input file SSDT-6x.aml, Length 0x119 (281) bytes
ACPI: SSDT 0x0000000000000000 000119 (v01 PmRef  ApCst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-5x.aml
Input file SSDT-5x.aml, Length 0x3D3 (979) bytes
ACPI: SSDT 0x0000000000000000 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-4x.aml
Input file SSDT-4x.aml, Length 0x5AA (1450) bytes
ACPI: SSDT 0x0000000000000000 0005AA (v01 PmRef  ApIst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-3.aml
Input file SSDT-3.aml, Length 0xAD8 (2776) bytes
ACPI: SSDT 0x0000000000000000 000AD8 (v01 PmRef  CpuPm    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-2.aml
Input file SSDT-2.aml, Length 0x539 (1337) bytes
ACPI: SSDT 0x0000000000000000 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-1.aml
Input file SSDT-1.aml, Length 0x141 (321) bytes
ACPI: SSDT 0x0000000000000000 000141 (v01 Intel  zpoddult 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-0.aml
Input file SSDT-0.aml, Length 0x200 (512) bytes
ACPI: SSDT 0x0000000000000000 000200 (v01 INTEL  sensrhub 00000000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed

Found 12 external control methods, reparsing with new information
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed
Disassembly completed
ASL Output:    DSDT.dsl - 521396 bytes

iASL Warning: There were 12 external control methods found during
disassembly, but only 5 were resolved (7 unresolved). Additional
ACPI tables may be required to properly disassemble the code. This
resulting disassembler output file may not compile because the
disassembler did not know how many arguments to assign to the
unresolved methods. Note: SSDTs can be dynamically loaded at
runtime and may or may not be available via the host OS.

In addition, the -fe option can be used to specify a file containing
control method external declarations with the associated method
argument counts. Each line of the file must be of the form:
     External (<method pathname>, MethodObj, <argument count>)
Invocation:
     iasl -fe refs.txt -d dsdt.aml
 
After imported the repo and applied the Brightness Fix patch to the DSDT I got to a bunch of error when I try to save as ACPI Machine Language Library so I decided to re disassembly the DSDT file using iasl download from https://bitbucket.org/RehabMan/acpica/downloads
But I got this warning :
iASL Warning: There were 12 external control methods found during disassembly, but only 5 were resolved (7 unresolved). Additional ACPI tables may be required to properly disassemble the code.

Did I do anything wrong? I already copied all of my SSDT to the same folder.

Thanks.
Code:
Ks-MacBook-Pro:origin k$ iasl -e SSDT* -d DSDT.aml

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0xEDDA (60890) bytes
ACPI: DSDT 0x0000000000000000 00EDDA (v02 OEMA   O E M A  00000250 INTL 20120711)
External object resolution file       SSDT-8.dsl
Input file SSDT-8.dsl, Length 0x1C9B3 (117171) bytes
    SSDT-8.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-8.aml
Input file SSDT-8.aml, Length 0x3CE8 (15592) bytes
ACPI: SSDT 0x0000000000000000 003CE8 (v01 SaSsdt SaSsdt   00003000 INTL 20100331)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-7.dsl
Input file SSDT-7.dsl, Length 0x17DD (6109) bytes
    SSDT-7.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-7.aml
Input file SSDT-7.aml, Length 0x315 (789) bytes
ACPI: SSDT 0x0000000000000000 000315 (v01 SataRe SataTabl 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-6x.dsl
Input file SSDT-6x.dsl, Length 0xB5A (2906) bytes
    SSDT-6x.dsl: File does not appear to contain a valid AML table
External object resolution file      SSDT-6x.aml
Input file SSDT-6x.aml, Length 0x119 (281) bytes
ACPI: SSDT 0x0000000000000000 000119 (v01 PmRef  ApCst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-5x.dsl
Input file SSDT-5x.dsl, Length 0x1FDF (8159) bytes
    SSDT-5x.dsl: File does not appear to contain a valid AML table
External object resolution file      SSDT-5x.aml
Input file SSDT-5x.aml, Length 0x3D3 (979) bytes
ACPI: SSDT 0x0000000000000000 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-4x.dsl
Input file SSDT-4x.dsl, Length 0x2D33 (11571) bytes
    SSDT-4x.dsl: File does not appear to contain a valid AML table
External object resolution file      SSDT-4x.aml
Input file SSDT-4x.aml, Length 0x5AA (1450) bytes
ACPI: SSDT 0x0000000000000000 0005AA (v01 PmRef  ApIst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-3.dsl
Input file SSDT-3.dsl, Length 0x3DB7 (15799) bytes
    SSDT-3.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-3.aml
Input file SSDT-3.aml, Length 0xAD8 (2776) bytes
ACPI: SSDT 0x0000000000000000 000AD8 (v01 PmRef  CpuPm    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-2.dsl
Input file SSDT-2.dsl, Length 0x2935 (10549) bytes
    SSDT-2.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-2.aml
Input file SSDT-2.aml, Length 0x539 (1337) bytes
ACPI: SSDT 0x0000000000000000 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-1.dsl
Input file SSDT-1.dsl, Length 0x1374 (4980) bytes
    SSDT-1.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-1.aml
Input file SSDT-1.aml, Length 0x141 (321) bytes
ACPI: SSDT 0x0000000000000000 000141 (v01 Intel  zpoddult 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-0.dsl
Input file SSDT-0.dsl, Length 0x154B (5451) bytes
    SSDT-0.dsl: File does not appear to contain a valid AML table
External object resolution file       SSDT-0.aml
Input file SSDT-0.aml, Length 0x200 (512) bytes
ACPI: SSDT 0x0000000000000000 000200 (v01 INTEL  sensrhub 00000000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
Ks-MacBook-Pro:origin k$ iasl -e SSDT* -d DSDT.aml

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0xEDDA (60890) bytes
ACPI: DSDT 0x0000000000000000 00EDDA (v02 OEMA   O E M A  00000250 INTL 20120711)
External object resolution file       SSDT-8.aml
Input file SSDT-8.aml, Length 0x399E (14750) bytes
ACPI: SSDT 0x0000000000000000 00399E (v01 SaSsdt SaSsdt   00003000 INTL 20091112)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-7.aml
Input file SSDT-7.aml, Length 0x315 (789) bytes
ACPI: SSDT 0x0000000000000000 000315 (v01 SataRe SataTabl 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-6x.aml
Input file SSDT-6x.aml, Length 0x119 (281) bytes
ACPI: SSDT 0x0000000000000000 000119 (v01 PmRef  ApCst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-5x.aml
Input file SSDT-5x.aml, Length 0x3D3 (979) bytes
ACPI: SSDT 0x0000000000000000 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-4x.aml
Input file SSDT-4x.aml, Length 0x5AA (1450) bytes
ACPI: SSDT 0x0000000000000000 0005AA (v01 PmRef  ApIst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-3.aml
Input file SSDT-3.aml, Length 0xAD8 (2776) bytes
ACPI: SSDT 0x0000000000000000 000AD8 (v01 PmRef  CpuPm    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-2.aml
Input file SSDT-2.aml, Length 0x539 (1337) bytes
ACPI: SSDT 0x0000000000000000 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-1.aml
Input file SSDT-1.aml, Length 0x141 (321) bytes
ACPI: SSDT 0x0000000000000000 000141 (v01 Intel  zpoddult 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-0.aml
Input file SSDT-0.aml, Length 0x200 (512) bytes
ACPI: SSDT 0x0000000000000000 000200 (v01 INTEL  sensrhub 00000000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed

Found 12 external control methods, reparsing with new information
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed
Disassembly completed
ASL Output:    DSDT.dsl - 521396 bytes

iASL Warning: There were 12 external control methods found during
disassembly, but only 5 were resolved (7 unresolved). Additional
ACPI tables may be required to properly disassemble the code. This
resulting disassembler output file may not compile because the
disassembler did not know how many arguments to assign to the
unresolved methods. Note: SSDTs can be dynamically loaded at
runtime and may or may not be available via the host OS.

In addition, the -fe option can be used to specify a file containing
control method external declarations with the associated method
argument counts. Each line of the file must be of the form:
     External (<method pathname>, MethodObj, <argument count>)
Invocation:
     iasl -fe refs.txt -d dsdt.aml

Read guide regarding refs.txt.
Some unresolved symbols are normal though.
 
Read guide regarding refs.txt.
Some unresolved symbols are normal though.
Hi,
With the refs.txt the warning became
iASL Warning: There were 22 external control methods found during disassembly, but only 15 were resolved (7 unresolved). Additional ACPI tables may be required to properly disassemble the code.
and MaciASL still show errors when I try to save the file
Code:
Ks-MacBook-Pro:origin k$ iasl -e SSDT* -fe refs.txt -d DSDT.aml

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0xEDDA (60890) bytes
ACPI: DSDT 0x0000000000000000 00EDDA (v02 OEMA   O E M A  00000250 INTL 20120711)
External object resolution file       SSDT-8.aml
Input file SSDT-8.aml, Length 0x399E (14750) bytes
ACPI: SSDT 0x0000000000000000 00399E (v01 SaSsdt SaSsdt   00003000 INTL 20091112)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-7.aml
Input file SSDT-7.aml, Length 0x315 (789) bytes
ACPI: SSDT 0x0000000000000000 000315 (v01 SataRe SataTabl 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-6x.aml
Input file SSDT-6x.aml, Length 0x119 (281) bytes
ACPI: SSDT 0x0000000000000000 000119 (v01 PmRef  ApCst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-5x.aml
Input file SSDT-5x.aml, Length 0x3D3 (979) bytes
ACPI: SSDT 0x0000000000000000 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-4x.aml
Input file SSDT-4x.aml, Length 0x5AA (1450) bytes
ACPI: SSDT 0x0000000000000000 0005AA (v01 PmRef  ApIst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-3.aml
Input file SSDT-3.aml, Length 0xAD8 (2776) bytes
ACPI: SSDT 0x0000000000000000 000AD8 (v01 PmRef  CpuPm    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-2.aml
Input file SSDT-2.aml, Length 0x539 (1337) bytes
ACPI: SSDT 0x0000000000000000 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-1.aml
Input file SSDT-1.aml, Length 0x141 (321) bytes
ACPI: SSDT 0x0000000000000000 000141 (v01 Intel  zpoddult 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-0.aml
Input file SSDT-0.aml, Length 0x200 (512) bytes
ACPI: SSDT 0x0000000000000000 000200 (v01 INTEL  sensrhub 00000000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
refs.txt: Importing method external (1 arguments) MDBG
refs.txt: Importing method external (0 arguments) _GPE.MMTB
refs.txt: Importing method external (2 arguments) _SB.PCI0.LPCB.H_EC.ECWT
refs.txt: Importing method external (1 arguments) _SB.PCI0.LPCB.H_EC.ECRD
refs.txt: Importing method external (1 arguments) _SB.PCI0.LPCB.H_EC.ECMD
refs.txt: Importing method external (2 arguments) _SB.PCI0.PEG0.PEGP.SGPO
refs.txt: Importing method external (1 arguments) _SB.PCI0.GFX0.DD02._BCM
refs.txt: Importing method external (4 arguments) _SB.PCI0.SAT0.SDSM
refs.txt: Importing method external (3 arguments) _GPE.VHOV
refs.txt: Importing method external (2 arguments) _SB.PCI0.XHC.RHUB.TPLD
refs.txt: Imported 10 external method definitions
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed

Found 22 external control methods, reparsing with new information
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed
Disassembly completed
ASL Output:    DSDT.dsl - 522164 bytes

iASL Warning: There were 22 external control methods found during
disassembly, but only 15 were resolved (7 unresolved). Additional
ACPI tables may be required to properly disassemble the code. This
resulting disassembler output file may not compile because the
disassembler did not know how many arguments to assign to the
unresolved methods. Note: SSDTs can be dynamically loaded at
runtime and may or may not be available via the host OS.

In addition, the -fe option can be used to specify a file containing
control method external declarations with the associated method
argument counts. Each line of the file must be of the form:
     External (<method pathname>, MethodObj, <argument count>)
Invocation:
     iasl -fe refs.txt -d dsdt.aml
Thanks.
Edit: I also attach the Error Reporting file just in case
 

Attachments

  • Surface Pro 2 Error Reporting.zip
    2.1 MB · Views: 80
Hi,
With the refs.txt the warning became

and MaciASL still show errors when I try to save the file
Code:
Ks-MacBook-Pro:origin k$ iasl -e SSDT* -fe refs.txt -d DSDT.aml

Intel ACPI Component Architecture
ASL+ Optimizing Compiler version 20161210-64(RM)
Copyright (c) 2000 - 2016 Intel Corporation

Input file DSDT.aml, Length 0xEDDA (60890) bytes
ACPI: DSDT 0x0000000000000000 00EDDA (v02 OEMA   O E M A  00000250 INTL 20120711)
External object resolution file       SSDT-8.aml
Input file SSDT-8.aml, Length 0x399E (14750) bytes
ACPI: SSDT 0x0000000000000000 00399E (v01 SaSsdt SaSsdt   00003000 INTL 20091112)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-7.aml
Input file SSDT-7.aml, Length 0x315 (789) bytes
ACPI: SSDT 0x0000000000000000 000315 (v01 SataRe SataTabl 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-6x.aml
Input file SSDT-6x.aml, Length 0x119 (281) bytes
ACPI: SSDT 0x0000000000000000 000119 (v01 PmRef  ApCst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-5x.aml
Input file SSDT-5x.aml, Length 0x3D3 (979) bytes
ACPI: SSDT 0x0000000000000000 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file      SSDT-4x.aml
Input file SSDT-4x.aml, Length 0x5AA (1450) bytes
ACPI: SSDT 0x0000000000000000 0005AA (v01 PmRef  ApIst    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-3.aml
Input file SSDT-3.aml, Length 0xAD8 (2776) bytes
ACPI: SSDT 0x0000000000000000 000AD8 (v01 PmRef  CpuPm    00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-2.aml
Input file SSDT-2.aml, Length 0x539 (1337) bytes
ACPI: SSDT 0x0000000000000000 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-1.aml
Input file SSDT-1.aml, Length 0x141 (321) bytes
ACPI: SSDT 0x0000000000000000 000141 (v01 Intel  zpoddult 00001000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
External object resolution file       SSDT-0.aml
Input file SSDT-0.aml, Length 0x200 (512) bytes
ACPI: SSDT 0x0000000000000000 000200 (v01 INTEL  sensrhub 00000000 INTL 20120711)
Pass 1 parse of [SSDT]
Pass 2 parse of [SSDT]
refs.txt: Importing method external (1 arguments) MDBG
refs.txt: Importing method external (0 arguments) _GPE.MMTB
refs.txt: Importing method external (2 arguments) _SB.PCI0.LPCB.H_EC.ECWT
refs.txt: Importing method external (1 arguments) _SB.PCI0.LPCB.H_EC.ECRD
refs.txt: Importing method external (1 arguments) _SB.PCI0.LPCB.H_EC.ECMD
refs.txt: Importing method external (2 arguments) _SB.PCI0.PEG0.PEGP.SGPO
refs.txt: Importing method external (1 arguments) _SB.PCI0.GFX0.DD02._BCM
refs.txt: Importing method external (4 arguments) _SB.PCI0.SAT0.SDSM
refs.txt: Importing method external (3 arguments) _GPE.VHOV
refs.txt: Importing method external (2 arguments) _SB.PCI0.XHC.RHUB.TPLD
refs.txt: Imported 10 external method definitions
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed

Found 22 external control methods, reparsing with new information
Pass 1 parse of [DSDT]
Pass 2 parse of [DSDT]
Parsing Deferred Opcodes (Methods/Buffers/Packages/Regions)

Parsing completed
Disassembly completed
ASL Output:    DSDT.dsl - 522164 bytes

iASL Warning: There were 22 external control methods found during
disassembly, but only 15 were resolved (7 unresolved). Additional
ACPI tables may be required to properly disassemble the code. This
resulting disassembler output file may not compile because the
disassembler did not know how many arguments to assign to the
unresolved methods. Note: SSDTs can be dynamically loaded at
runtime and may or may not be available via the host OS.

In addition, the -fe option can be used to specify a file containing
control method external declarations with the associated method
argument counts. Each line of the file must be of the form:
     External (<method pathname>, MethodObj, <argument count>)
Invocation:
     iasl -fe refs.txt -d dsdt.aml
Thanks.
Edit: I also attach the Error Reporting file just in case

I disassembled ACPI/origin with: iasl -da -dl -fe refs.txt DSDT.aml SSDT*.aml

The resulting DSDT.dsl compiles without error using MaciASL (linked by my guide) and ACPI 6.1 (see MaciASL->Preferences->iASL).
 
Back
Top