Contribute
Register

[Guide] Laptop backlight control using AppleBacklightFixup.kext

Ok, I found that my problem was because I deleted applebacklight.kext. I can now change my brightness.

I am now having a problem with my screen being blank (with my backlight lit) whenever I wake my laptop or open my laptop after closing it. I thought that this was fixed with backlight control. Could you take a look at my report files? Thanks!

Read here regarding display override:
https://www.tonymacx86.com/threads/readme-common-problems-in-10-13-high-sierra.233582/
 
First of all, Thank you legend, RehabMan! I am novice, tried it, got this attached output(error).
If anything else required, I will upload.
P.S. "Search this thread" is buggy, after a second it shows search result of whole forum. So I apologise if this question/problem is repeated.

Code:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f861c7357f0 [0x7fff8631e980]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
KernelCache ID: DD8B95A98C4449D6ECEB7D0E15ABDAAC
Kext with invalid signatured (-67062) allowed: <OSKext 0x7fb810414220 [0x7fff8631e980]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }
 

Attachments

  • EFI.zip
    32.9 MB · Views: 173
  • Terminal Saved Output.txt
    709 bytes · Views: 131
First of all, Thank you legend, RehabMan! I am novice, tried it, got this attached output(error).
If anything else required, I will upload.

"Problem Reporting" files are incomplete.
Read FAQ, "Problem Reporting" again. Carefully. Attach all requested files/output.
https://www.tonymacx86.com/threads/faq-read-first-laptop-frequent-questions.164990/
Use the gen_debug.sh tool mentioned in the FAQ, that way it is less likely you'll omit something.

P.S. "Search this thread" is buggy, after a second it shows search result of whole forum. So I apologise if this question/problem is repeated.


Thread specific results follow google results.
Look at the result page carefully.
 
Make sure you rebuild cache and reboot (as per post #1).
And read post #1 regarding EDID...
Sorry for a bit late response. Been a little busy. I will do that tomorrow and let you know how it goes.
 
SMBIOS truncation is obvious from ioreg.
You need config.plist/KernelAndKextPatches/DellSMBIOSPatch=true.

Also, see here regarding sleep/wake:
https://www.tonymacx86.com/threads/readme-common-problems-in-10-13-high-sierra.233582/

No need for ACPI/patched/SSDT.aml. Remove.

Your kernel log shows:
Code:
kernel: (ACPIDebug) ACPIDebug: "EC _Q66 enter"

You will find your brightness keys are handled by _Q66, eventually by the BRT6 method.

Audio is off-topic here, but you should check that your patched AppleHDA (eg. AppleALC) components use layout-id=12 (which is what your HDEF._DSM method is injecting).
@RehabMan Struggling from the last 7 days to work wake and brightness keys, I am not able to get my brightness keys popup. Use every guide tried also new mechanism for system log using https://www.tonymacx86.com/threads/...ay-the-console-now-works.207833/#post-1375525 this guide but not working for me. I can find the EC _Q66 enter method inside DSDT but don't know what actual key from brightness is. Today I tried evtest using ubuntu and shows brightness key is 244 and 255. (screenshot attached below). My question is how can i implement this function into EC _Q66 enter ? The problem reporting files are attached here https://www.tonymacx86.com/threads/...dual-gpu-laptops.163772/page-183#post-1708025
MyDSDT _Q66 function looks:
Code:
Method (_Q66, 0, NotSerialized)  // _Qxx: EC Query
          
            {
                If (LNotEqual (ECRD, One))
                {
                    Return (Zero)
                }

                NEVT ()
                Return (Zero)
            }
For my problem if I use below code in my patch I cannot Apply changes because _Q224 and _Q255 method is not available only _Q66. So, my question is how to insert _Q244 and _Q255 inside _Q66 Method using if function?
Code:
into method label _Q224 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n
end;
into method label _Q225 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n
end;
 

Attachments

  • key.png
    key.png
    90.1 KB · Views: 107
@RehabMan Struggling from the last 7 days to work wake and brightness keys, I am not able to get my brightness keys popup. Use every guide tried also new mechanism for system log using https://www.tonymacx86.com/threads/...ay-the-console-now-works.207833/#post-1375525 this guide but not working for me. I can find the EC _Q66 enter method inside DSDT but don't know what actual key from brightness is. Today I tried evtest using ubuntu and shows brightness key is 244 and 255. (screenshot attached below). My question is how can i implement this function into EC _Q66 enter ? The problem reporting files are attached here https://www.tonymacx86.com/threads/...dual-gpu-laptops.163772/page-183#post-1708025
MyDSDT _Q66 function looks:
Code:
Method (_Q66, 0, NotSerialized)  // _Qxx: EC Query
         
            {
                If (LNotEqual (ECRD, One))
                {
                    Return (Zero)
                }

                NEVT ()
                Return (Zero)
            }
For my problem if I use below code in my patch I cannot Apply changes because _Q224 and _Q255 method is not available only _Q66. So, my question is how to insert _Q244 and _Q255 inside _Q66 Method using if function?
Code:
into method label _Q224 replace_content
begin
// Brightness Down\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0405)\n
end;
into method label _Q225 replace_content
begin
// Brightness Up\n
    Notify(\_SB.PCI0.LPCB.PS2K, 0x0406)\n
end;

You will likely find your keys are handled in BRT6.
But that is just a guess, as you didn't provide any problem reporting files.

Details for patching BRT6 are in the original backlight guide (section involving ACPI brightness keys):
https://www.tonymacx86.com/threads/guide-patching-dsdt-ssdt-for-laptop-backlight-control.152659/
 
You will likely find your keys are handled in BRT6.
But that is just a guess, as you didn't provide any problem reporting files.

Details for patching BRT6 are in the original backlight guide (section involving ACPI brightness keys):
https://www.tonymacx86.com/threads/guide-patching-dsdt-ssdt-for-laptop-backlight-control.152659/
Sorry, I have already tried BRT6 but didn't worked, you can check my DSDT. I am using Dell Inspiron 15. Brightness keys are F11 and F12. I just notice only few of Fn+key are working like
Fn+F1= Mute
Fn+F2 = Volume Down
Fn+F3 = Volume Up
Only these three are working. I have Fn13 Keys.
 

Attachments

  • debug_2673.zip
    1.4 MB · Views: 64
Last edited:
Please find the attachment with this reply, sir. I used gen_debug.sh tool as mentioned.

I actually managed to get it working. I can now adjust brightness from SysPref. But I still get this error on
sudo kextcache -i /

Code:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94e8c10d80 [0x7fffa7149980]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }

KernelCache ID: 72FB03895342CAFFEE8B816974DFBAA0

Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc150827ee0 [0x7fffa7149980]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }

Also, any way to re-assign the keys?
 

Attachments

  • debug_16148.zip
    4.8 MB · Views: 72
Sorry, I have already tried BRT6 but didn't worked, you can check my DSDT. I am using Dell Inspiron 15. Brightness keys are F11 and F12. I just notice only few of Fn+key are working like
Fn+F1= Mute
Fn+F2 = Volume Down
Fn+F3 = Volume Up
Only these three are working. I have Fn13 Keys.

If your volume keys require Fn+, so will your brightness keys.
And you didn't patch ACPI correctly... there is no accommodation for _OSI("Darwin").
Read ACPI patching guide regarding "OS Check Fix" patches.
https://www.tonymacx86.com/threads/guide-patching-laptop-dsdt-ssdts.152573/
 
Please find the attachment with this reply, sir. I used gen_debug.sh tool as mentioned.

I actually managed to get it working. I can now adjust brightness from SysPref. But I still get this error on
sudo kextcache -i /

Code:
Kext with invalid signatured (-67062) allowed: <OSKext 0x7f94e8c10d80 [0x7fffa7149980]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }

KernelCache ID: 72FB03895342CAFFEE8B816974DFBAA0

Kext with invalid signatured (-67062) allowed: <OSKext 0x7fc150827ee0 [0x7fffa7149980]> { URL = "AppleBacklightInjector.kext/ -- file:///Library/Extensions/", ID = "org.rehabman.injector.AppleBacklightInjector" }

Also, any way to re-assign the keys?

I see no kextcache errors.

But...
Your kextcache output proves kexts are not installed correctly.
All kexts you need must be installed to the system volume.
Read post #2 of the Clover guide for details:
https://www.tonymacx86.com/threads/guide-booting-the-os-x-installer-on-laptops-with-clover.148093/

Your keys are likely handled in ACPI. Requires patching DSDT. Read post #1 to find applicable link/guide.
 
Back
Top