Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

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: 102
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?
 
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
Also you need to inject a right PNLF device.
Are your hardware information updated?

How can I inject right PNLF device? Can you guide me through, please?

Yes. I've updated my H/W info now.

Thanks.
 
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
RehabMan is no longer actively contributing here.
This is truly sad. I've learnt much from his guides. Wish He comes back!
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
23,276
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
How can I inject right PNLF device? Can you guide me through, please?

Yes. I've updated my H/W info now.

Thanks.
you seem to be missing lilu.kext in clover/kexts/other

actually, in terminal:
Code:
sudo kextcache -i /
and copy and paste the result here
 
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
you seem to be missing lilu.kext in clover/kexts/other

actually, in terminal:
Code:
sudo kextcache -i /
and copy and paste the result here

Actually, Lilu is not missing. I installed it in /Library/Extensions/ to enable Brightness slider as per the requirements stated in here.

Fortunately, I've fixed the issue. In this guide, RahabMan guided to apply this patch:
Code:
into method label _Q0E replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n
end;
into method label _Q0F replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n
end;

In another guide elsewhere, I've got this patch to apply:
Code:
#Edit methods _Q11 and _Q12 to interface with KBC0 (or PS2K in some systems),
into method label _Q0E replace_content
begin
// Brightness Down\n
Notify (PS2K, 0x20)\n
end;

into method label _Q0F replace_content
begin
// Brightness Up\n
Notify (PS2K, 0x10)\n
end;

And now, brightness shortcut is working well.

Thanks you all.

P.S.: I've attached the file you've asked.
 

Attachments

  • kextcache.txt
    3.4 KB · Views: 51
Top