Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,728
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi RehabMan,

Thank you very much for your guide. I now have brightness adjustment working on El Capitan with HD4400.

Following your guide, I used ACPIDebug and found out _Q11 and _Q12 are the EC methods called for brightness up and down respectively, and by searching for PNP0303 in DSDT I found that KBC0 should be the device name for my keyboard. However, now I am confused by all the keycode stuff. Could you explain what is ADB code and where can I find the appropriate keycode to use? I have ELAN touchpad, and I'm using EMlyDinEsH's driver version 4.6.5.

Read post #1 carefully. The patches/codes required for the ELAN driver are explained.
 
Joined
Mar 2, 2013
Messages
25
Motherboard
P8Z77-V Deluxe
CPU
i7-3770K
Graphics
XFX R7950 BE DD
Read post #1 carefully. The patches/codes required for the ELAN driver are explained.

Thanks for the quick reply. I've read post #1 back and forth a few times. I also read the readme for ACPIKeyboard, and in my ioreg I found that indeed ADB code for Brightness up=0x4d, Brightness down=0x4f.

Some newer versions of the ELAN driver may have direct support with codes 0x10 and 0x20. So, no need for ACPIKeyboard.kext in this case.

But what is ADB code, and what are the codes 0x10 and 0x20? I want to try directly notifying the keyboard first.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,728
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
But what is ADB code, and what are the codes 0x10 and 0x20? I want to try directly notifying the keyboard first.

It is not an ADB code, but those are the codes requires by the ELAN driver (arbitrary choice by the driver author).
 
Joined
Oct 13, 2013
Messages
65
Motherboard
Sony Vaio SVZ13 / HM77
CPU
Intel Core i7 3612QM
Graphics
Intel HD4000, 1920 x 1080
Mac
  1. Mac mini
  2. Mac Pro
Mobile Phone
  1. iOS
Right - Slider works, but the brightness keys are still a challenge.

I followed the guide and enabled the key logging.

When I press the F5 an F6 keys on my vaio keyboard I can see a message in the console all.

F5 AppleP2Keyboard sending key 3f=60 down
F6 ApplePsKeyboard sending key 40=61 down

But when I add the "Fn" key no message appears on the console

Brightness control works with the "Pause" and "Fn+Del" key and I would like to map them to the original F5 & F6 keys

When pressing the "Pause" key for brightness up it reports

AppleP2Keyboard sending key e045=71 down

And when when pressing the "Fn+Del" key for brightness down it reports

AppleP2Keyboard sending key 46=6b down

How to proceed to map the current brightness keys to the printed ones?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,728
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Right - Slider works, but the brightness keys are still a challenge.

I followed the guide and enabled the key logging.

When I press the F5 an F6 keys on my vaio keyboard I can see a message in the console all.

F5 AppleP2Keyboard sending key 3f=60 down
F6 ApplePsKeyboard sending key 40=61 down

But when I add the "Fn" key no message appears on the console

Probably handled via ACPI. Read post #1.
 
Joined
Oct 13, 2013
Messages
65
Motherboard
Sony Vaio SVZ13 / HM77
CPU
Intel Core i7 3612QM
Graphics
Intel HD4000, 1920 x 1080
Mac
  1. Mac mini
  2. Mac Pro
Mobile Phone
  1. iOS
I went through the guide again and and again, but no luck.

I checked the ACPI debug patches EC, GPE, WKA and Lido but no message appears on the console when I press the printed keys for brightness down (Fn+F5) and brightness up (Fn+F6)

Any ideas on this?

Can I map the actual P2K keys on the right (printed on) keys Fn+F5 and Fn+F6 ?
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,728
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I went through the guide again and and again, but no luck.

I checked the ACPI debug patches EC, GPE, WKA and Lido but no message appears on the console when I press the printed keys for brightness down (Fn+F5) and brightness up (Fn+F6)

Any ideas on this?

Can I map the actual P2K keys on the right (printed on) keys Fn+F5 and Fn+F6 ?

Did you patch for Windows emulation ("OS Check Fix")?
 
Joined
Oct 13, 2013
Messages
65
Motherboard
Sony Vaio SVZ13 / HM77
CPU
Intel Core i7 3612QM
Graphics
Intel HD4000, 1920 x 1080
Mac
  1. Mac mini
  2. Mac Pro
Mobile Phone
  1. iOS
Yes. I tried different versions. Win 7, Win 8 and one other.

I found a hint on a special kext that could be another way to catch up the signal sendung from the Fn+F5 keys. The kext is called

IOWMIFamily.kext

by Dolmor

Could this be a valuable way, or should I try to oatchbone of the ssdts?

And again. I'm lost
 
Joined
Sep 14, 2016
Messages
12
Dell Haswell Brightness Fix needed

I’m trying to get the Brightness slider working on my Dell Inspiron 7437 with El Capitan installed. It has a Intel Haswell 4th Generation Core i7-4500U Processor, Video Card: Intel HD Graphics 4400. I’ve tried the following combinations without success. I hope someone can help me.

Extracted files using Clover F4
——
External(MDBG, MethodObj, 1)
External(_GPE.MMTB, MethodObj, 0)
External(_SB_.PCI0.LPCB.H_EC.ECWT, MethodObj, 2)
External(_SB_.PCI0.LPCB.H_EC.ECRD, MethodObj, 1)
External(_SB_.PCI0.PEG0.PEGP.SGPO, MethodObj, 2)
External(_SB.PCI0.GFX0.DD02._BCM, MethodObj, 1)
External(_SB.PCI0.SAT0.SDSM, MethodObj, 4)
External(_SB.PCI0.SAT1.SDSM, MethodObj, 4)
External(_GPE.VHOV, MethodObj, 3)
——
pbpaste>refs.txt
iasl -da -dl -fe refs.txt *.aml
——

Using MaciASL with the repository http://raw.github.com/RehabMan/Laptop-DSDT-Patch/master
Combination 1:
Combination 2.1:
  • IntelBacklight.kext
  • SSDT-7.dsl patched:
“[igpu] Rename GFX0 to IGPU”
“[igpu] Haswell HD4400/HD4600/HD5000”
“[igpu] Brightness fix (Haswell/Broadwell)”

Combination 2.2:
  • IntelBacklight.kext
  • SSDT-7.dsl patched:
“[igpu] Rename GFX0 to IGPU”
“[igpu] Haswell HD4400/HD4600/HD5000”
“[igpu] Brightness fix (Haswell/Broadwell)”
“[igpu] Rename B0D3 to HDAU”

All aml files placed in EFI/CLOVER/ACPI/patched
Kexts placed in EFI/CLOVER/kexts/10.11 folder AND using Kext Utility installed in system
 
Last edited:

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,728
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Yes. I tried different versions. Win 7, Win 8 and one other.

I found a hint on a special kext that could be another way to catch up the signal sendung from the Fn+F5 keys. The kext is called

IOWMIFamily.kext

by Dolmor

Could this be a valuable way, or should I try to oatchbone of the ssdts?

And again. I'm lost

I don't use the IOWMIFamily in this guide. It is not necessary.
 
Top