Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

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
 
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: 189
RehabMan is no longer actively contributing here.
 
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?
 
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.
 
RehabMan is no longer actively contributing here.
This is truly sad. I've learnt much from his guides. Wish He comes back!
 
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
 
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: 139
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.
thing is, you only have a few kexts in /L/E and not all, but newer versions of macOS, Catalina, you would be best to have them all just in clover/kexts/other
 
Back
Top