Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

Joined
Apr 24, 2019
Messages
38
Motherboard
Lenovo E580 (20KS003AXS)
CPU
i5-8250U
Graphics
UHD620, RX 550
Hi!
I'm trying to enable Brightness hotkeys on my laptop. I've already found out what is the EC queries for them (_Q14, _Q15).
At this moment I cannot properly patch DSDT for this keys.
Original one looks like:
Code:
            Method (_Q14, 0, NotSerialized)  // _Qxx: EC Query
            {
                If (\_SB.PCI0.LPCB.EC.HKEY.MHKK (0x01, 0x8000))
                {
                    \_SB.PCI0.LPCB.EC.HKEY.MHKQ (0x1010)
                }

                If (\VIGD)
                {
                    Notify (\_SB.PCI0.GFX0.DD1F, 0x86)
                }
            }

I do not understand how to modify it. I've tried replacing method body with:
1) \_SB.PCI0.LPCB.EC.HKEY.MHKQ (0x0406)
2) Notify (\_SB.PCI0.GFX0.DD1F, 0x0406)
, but with no success.

Please help to understand how to complete this?
 

Attachments

  • debug_9200.zip
    3.9 MB · Views: 103
  • DSDT.dsl
    946.1 KB · Views: 104
Last edited:
Joined
Dec 11, 2013
Messages
17
Motherboard
Alienware R3 13 Signature Edition
CPU
i7-7700HQ
Graphics
Intel HD 630 + GTX 1060
Hello @RehabMan, I'd hate to bother you not sure if you're active in the hackintosh community or not. I am having issues getting my hackintosh laptop to work properly. I was going to see if you could give me a hand with it?
 
Joined
Oct 26, 2016
Messages
9
Motherboard
HP Omen 15 ce0xx
CPU
Intel core I5 7300HQ
Graphics
Intel HD630 ----- NVIDIA Geforce GTX 1050Ti
Hello every one.
I am trying to map the key with the brightness and it is very strange that both of brighter and dimmer key have the same code. Is anyone face with the same problem ?
 

Attachments

  • Screen Shot 2019-10-22 at 9.30.09 PM.png
    Screen Shot 2019-10-22 at 9.30.09 PM.png
    13.4 KB · Views: 146
Joined
Dec 24, 2019
Messages
8
Motherboard
HM370
CPU
i7-9750H
Graphics
GTX 1650
The 0x0405 corresponds to PS2 keydown/keyup are automatic (e005/e085) for the brightness down key used by Dell laptops. In the default keyboard profile, these correspond to ADB codes 91/90 (brigthness down/up). If your laptop uses a keyboard profile other than the default, you may need to use different codes.

@RehabMan

Hi, I am trying to add Fn key functions like 'sleep' and 'disable touchpad', with DSDT patch and VoodooPS2Controller.

I know that the ACPI notifies PS2 driver with something like 'Notify (PS2K, 0x0405)', so the VoodooPS2Keyboard can get the notification and adjust the brightness. But I don't figure out what the relationship is between the 0x0405 and the scan code 0xe005. What does the 0x0405 mean here, and how can I compute the value for a custom Fn key?

Any detail or a link for documentation or related source code would be appreciated.

Thank you.
 
Last edited:
Joined
Aug 4, 2016
Messages
114
Motherboard
HP ProBook 440 G6
CPU
i5-8265u
Graphics
UHD 620
Mobile Phone
  1. iOS
Hello! For some reason I can't execute the ioio, terminal outputs: zsh: operation not permitted: ioio. sip is disabled, termnal has full disk access. Don't know what to do
 
Joined
Mar 29, 2011
Messages
62
Motherboard
Lenovo Thinkpad T480
CPU
i7-8550u
Graphics
UHD620
does this script not work anymore? not getting a patched applebacklight.kext in user/patched despite having the stock applebacklight.kext in the script folder/vanilla
 
Joined
Feb 20, 2016
Messages
15
Motherboard
Asus P552LJ (Laptop)
CPU
Intel Core i3-5010U
Graphics
Intel HD 5500
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
  2. iOS
Hello, RehabMan. Thanks for all of your guides.

I've discovered that _Q0E() and _Q0F() methods are called when I press the brightness up and down keys respectively. Patches are applied accordingly. But still, no luck. Though brightness slider is working, keyboard shortcut does not. I've attached my required files.

Can you help me out please?
 

Attachments

  • CLOVER.zip
    1.3 MB · Views: 87
Joined
May 11, 2015
Messages
262
Motherboard
Dell 7348-Clover
CPU
i7-5500U
Graphics
HD 5500
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Hello, RehabMan. Thanks for all of your guides.

I've discovered that _Q0E() and _Q0F() methods are called when I press the brightness up and down keys respectively. Patches are applied accordingly. But still, no luck. Though brightness slider is working, keyboard shortcut does not. I've attached my required files.

Can you help me out please?

Also you need to inject a right PNLF device.
Are your hardware information updated?
 
Top