Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

Hi, my backlight control isn't working under 10.11 (work under 10.10). I have patched my DSDT and use latest acpibacklight but still not working. I attach some useful files

MBP-Warn:~ POD$ kextstat|grep -y acpiplat
13 2 0xffffff7f824de000 0x66000 0x66000 com.apple.driver.AppleACPIPlatform (4.0) BA8E02C7-596F-370A-8C17-079119B0B08E <12 11 7 6 5 4 3 1



MBP-Warn:~ POD$ kextstat|grep -y appleintelcpu
23 0 0xffffff7f8211e000 0x2b000 0x2b000 com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) 9F40F723-D2A8-349A-9B37-1A1940EB19D2 <7 6 5 4 3 1>
34 0 0xffffff7f82119000 0x3000 0x3000 com.apple.driver.AppleIntelCPUPowerManagementClient (218.0.0) F6745DCF-A7C6-3FAB-95D5-292EA7C537FA <7 6


BacklightHandler is not starting. Look at system.log for logs from ACPIBacklight.

Also, avoid Clover autopatching of ACPI/DSDT.

See here for config.plist examples: http://www.tonymacx86.com/yosemite-...de-booting-os-x-installer-laptops-clover.html
 
Thank you for this post. Worked great on Lenovo Y50-70 with ELAN touchpad and drivers.
 
Hello ReHabMan
I fixed SSDT(renamed GFX0 to IGPU and patched Brightness fix(haswell)) , adding kext ACPIBacklight.kextBut it doesn't work for me.
This is all files( ioreg,dsdt.aml,ssdt.aml,dsdt) : View attachment Tomle.zip
Thanks!
 
Hello ReHabMan
I fixed SSDT(renamed GFX0 to IGPU and patched Brightness fix(haswell)) , adding kext ACPIBacklight.kextBut it doesn't work for me.
This is all files( ioreg,dsdt.aml,ssdt.aml,dsdt) : View attachment 148348
Thanks!

You probably forgot config.plist/ACPI/SSDT/DropOem=true.

You cannot provide patched SSDTs without dropping OEM SSDTs.

It is well covered in this guide: http://www.tonymacx86.com/yosemite-laptop-support/152573-guide-patching-laptop-dsdt-ssdts.html

You will probably need to include more SSDTs in ACPI/patched than those you have currently. Best practice to keep all of them, patched as required.
 
You probably forgot config.plist/ACPI/SSDT/DropOem=true.

You cannot provide patched SSDTs without dropping OEM SSDTs.

It is well covered in this guide: http://www.tonymacx86.com/yosemite-laptop-support/152573-guide-patching-laptop-dsdt-ssdts.html

You will probably need to include more SSDTs in ACPI/patched than those you have currently. Best practice to keep all of them, patched as required.
Thanks RehabMan, I forgot it. So My laptop work brightness :). I'm so happy. Thanks you very much. The next I will enable Brightness Keys.
 
Hey RehabMan,

I have problem with patch

into method label _Q10 replace_content
begin
// Brightness Down\n
Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n
Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n
end;
into method label _Q11 replace_content
begin
// Brightness Up\n
Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n
Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n
end;When I press F11( 8/25/15 9:57:52.000 kernel[0]: ApplePS2Keyboard: sending key 57=67 up)
and F12(8/25/15 9:58:21.000 kernel[0]: ApplePS2Keyboard: sending key 58=6f up)
So I was replacement it :
Code:
into method label _Q57 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n
end;
into method label _Q58 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n 
end;

But it's not have changes.
Could you tell me a reason,plz?
 
Hey RehabMan,

I have problem with patch

Code:
into method label _Q10 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n
end;
into method label _Q11 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n 
end;

When I press F11( 8/25/15 9:57:52.000 kernel[0]: ApplePS2Keyboard: sending key 57=67 up)
and F12(8/25/15 9:58:21.000 kernel[0]: ApplePS2Keyboard: sending key 58=6f up)
So I was replacement it :
Code:
into method label _Q57 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0205)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0285)\n
end;
into method label _Q58 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0206)\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0286)\n 
end;

But it's not have changes.
Could you tell me a reason,plz?

Wrong.

First, you're pressing F11 and F12, not your brightness keys (PS2 code 57 and 58 are standard codes for F11 and F12).

Second, PS2 codes have nothing to do with EC queries.

You need to follow the guide carefully.

Test your brightness keys in Windows to know which keys you should be pressing.
 
Hi, Mr. Rehabman,
I am patching DSDT for brightness control but it seemed that when I convert DSDT file from .dsl to .aml by MacIASL it will create error of GPU. Can you help me with other ways (like Terminal) to convert .dsl more correctly?
Thanks in advance!!!

P/s: I have also attached my DSDT.aml file hereView attachment 148878View attachment 148878here
 
Hi, Mr. Rehabman,
I am patching DSDT for brightness control but it seemed that when I convert DSDT file from .dsl to .aml by MacIASL it will create error of GPU. Can you help me with other ways (like Terminal) to convert .dsl more correctly?
Thanks in advance!!!

P/s: I have also attached my DSDT.aml file hereView attachment 148878View attachment 148878here

Do not open AML files directly and expect them to recompile without errors. The iasl disassembler is not perfect.
 
Hi, i'm trying to enable my ACPI button. already follow this guide, and found my keys are Q11 for down and Q12 for up.
but when i try to compile it says that PS2K object doesn't exist. where to find the right 'PS2K' code replacement for my laptop?
thanks
 
Back
Top