Contribute
Register

[Guide] Laptop backlight control using AppleBacklightFixup.kext

Joined
Apr 7, 2015
Messages
44
Motherboard
Gigabyte Aero 15 OLED YA
CPU
i9-9980HK
Graphics
UHD 630, RTX 2080 Max-Q, 3840x2160
Mac
  1. Mac mini
Mobile Phone
  1. iOS
Yeah, probably built-in support for that keyboard. Brightness keys on the laptop will require appropriate ACPI patching.

Maybe there is a display override for that monitor (0x9c7c) or a color profile. Color profile can be changed in SysPrefs->Displays. And a display override could be deleted or replaced.

No.

It stopped working.. My laptop was on, I went away for some time, when I came back, Windows was running (so macOS probably crashed and laptop restarted). I tried booting Mojave, got stuck, powered it down. Tried booting again (verbose on) but this time booted fine although backlight control wasn't working anymore.. Rebooting didn't fix it.
 

Attachments

  • files.zip
    2.5 MB · Views: 37

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
It stopped working.. My laptop was on, I went away for some time, when I came back, Windows was running (so macOS probably crashed and laptop restarted). I tried booting Mojave, got stuck, powered it down. Tried booting again (verbose on) but this time booted fine although backlight control wasn't working anymore.. Rebooting didn't fix it.

What do you see in SysPrefs->Displays?
 
Joined
Apr 7, 2015
Messages
44
Motherboard
Gigabyte Aero 15 OLED YA
CPU
i9-9980HK
Graphics
UHD 630, RTX 2080 Max-Q, 3840x2160
Mac
  1. Mac mini
Mobile Phone
  1. iOS
What do you see in SysPrefs->Displays?
Alright, just booted Mojave and it’s working again (both the slider and keys). Even though I rebooted multiple times and nothing happened (also nothing in sysprefs). Weird stuff..
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Alright, just booted Mojave and it’s working again (both the slider and keys). Even though I rebooted multiple times and nothing happened (also nothing in sysprefs). Weird stuff..

Probably your kernel cache was not stable. Once you stop fiddling with kexts, you should have a stable kextcache.
 

mhk

Joined
Oct 8, 2018
Messages
10
Motherboard
HP Probook 6470b (179c) - Clover
CPU
i5-3320M
Graphics
HD 4000, 1600x900
Mobile Phone
  1. iOS
Thanks Rehabman. Now work great. I always do backup of deleted kext. Bring back one of them and everything is perfect.
Big big applause for Your big big work.
 
Joined
Feb 23, 2018
Messages
58
Motherboard
Lenovo LNVNB161216 (Clover UEFI)
CPU
i5-8250U @1.60GHz
Graphics
Intel UHD Graphics 620 1366x768
Mac
  1. iMac
  2. MacBook
Classic Mac
  1. iMac
  2. Performa
Mobile Phone
  1. iOS
You cannot use Graphics/EDID with Devices/Properties. (EDID setting ignored). Must inject with Properties.
Ok, got it working with AppleBacklightInjector and edid in devices/properties/aapl00... So, its all working now, thank you.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
186,689
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Ok, got it working with AppleBacklightInjector and edid in devices/properties/aapl00... So, its all working now, thank you.

Note that the new recommendation in post #1 is AppleBacklightFixup.kext + SSDT-PNLF.aml (and no KextsToPatch entry).

Also, with my build of Clover, you can use config.plist/EDID/Inject=true, EDID=ProductID=0x9c7c, as long as you have AAPL00,override-no-connect=<> (eg. empty)
 
Joined
Oct 7, 2016
Messages
278
Motherboard
Broadwell, UEFI
CPU
Core i3-5005U
Graphics
Intel HD 5500 (1366 x 768), AMD Radeon R5 M330 2GB
Mobile Phone
  1. Android
  2. iOS
To use this technique requires three components:
- SSDT-PNLF.aml in ACPI/patched
- AppleBacklightFixup.kext installed to /L/E
now its only two components?
 
Joined
Feb 23, 2018
Messages
58
Motherboard
Lenovo LNVNB161216 (Clover UEFI)
CPU
i5-8250U @1.60GHz
Graphics
Intel UHD Graphics 620 1366x768
Mac
  1. iMac
  2. MacBook
Classic Mac
  1. iMac
  2. Performa
Mobile Phone
  1. iOS
Note that the new recommendation in post #1 is AppleBacklightFixup.kext + SSDT-PNLF.aml (and no KextsToPatch entry).

Also, with my build of Clover, you can use config.plist/EDID/Inject=true, EDID=ProductID=0x9c7c, as long as you have AAPL00,override-no-connect=<> (eg. empty)
Yeah I'm using fixup now instead on injector and no kexts to pass. Nice about the the new build of clover, I'll have to update, I did it the hard way with passing the whole edid into the AAPL line.
 
Top