Contribute
Register

[Guide] Laptop backlight control using AppleBacklightFixup.kext

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,445
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
i was digging and it is how EDID is applied. the value is already set to 0x0534 for IOGraphics. changing AppleBacklight %04x to xxxx won't match IOGraphics. changing AppleBacklight %04x to 0534 wouldn't work because the injector expects xxxx. so in my specific case the injector must use 0534 in the active profile and no patch.

Why do you think your EDID is special?
If you don't want to try, it doesn't bother me.
 
Last edited:
Joined
Aug 31, 2014
Messages
264
Motherboard
Asus T300LA-DH51T
CPU
Intel Core i5 4200U
Graphics
Intel HD Graphics 4400
Mobile Phone
  1. Android
Why do you think your EDID is special?
If you don't want to try, it doesn't bother me.

i don't think its special. i think i may have over configured my machine to a point that it has to be specific. stating the obvious %04x is DisplayProductID guess it gets that info directly from EDID or IOGraphics

source for 10.12.4 iographics has been released
 
Last edited:
Joined
Dec 19, 2011
Messages
50
Motherboard
Dell Inspiron 7537; Lenovo T430
CPU
Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz; Intel Core i5
Graphics
Intel HD 4400; Intel HD 4000
Mac
  1. MacBook
Mobile Phone
  1. iOS
After updating to 10.12.4 I ended up losing brightness control. thanks to this guide got that working back partially. But still one problem, whenever I boot the machine the brightness is set to 0. So I need to blindly type password and after logging in using keyboard shortcut able to increase the brightness. Not sure what wrong here. Any help please
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,445
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
i don't think its special. i think i may have over configured my machine to a point that it has to be specific.

Possible a mistake has led to unstable kernel cache, which will make Clover kext patching problematic/unreliable.
But who knows... you haven't tried the latest yet...

source for latest iographics has been released

Thanks for the info. I'll be taking a peek.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,445
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
After updating to 10.12.4 I ended up losing brightness control. thanks to this guide got that working back partially. But still one problem, whenever I boot the machine the brightness is set to 0. So I need to blindly type password and after logging in using keyboard shortcut able to increase the brightness. Not sure what wrong here. Any help please

It is likely your NVRAM is broken (keep in mind EmuVariableUefi-64.efi requires "RC scripts"... and keep in mind Skylake+ computers usually have incompatible UEFI NVRAM, so require EmuVariableUefi-64.efi + RC scripts).

You should check your NVRAM setup.

And read post #1, "Problem Reporting".
 
Joined
Mar 6, 2012
Messages
187
Motherboard
15ZD960-GX3DK
CPU
i3-6100U
Graphics
HD 520
Mobile Phone
  1. Android
good news. i did completed clover edid fix and submitted fixed files to clover team.

we can easily use edid and vendorid and productid and checksum.

it maybe help.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,445
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
good news. i did completed clover edid fix and submitted fixed files to clover team.

we can easily use edid and vendorid and productid and checksum.

it maybe help.

No need to patch EDID.
 

Feartech

Moderator
Joined
Aug 3, 2013
Messages
26,550
Motherboard
Asus N752VX-OpenCore
CPU
i7-6700HQ / HM170
Graphics
HD 530 1920 x 1080
Mac
  1. iMac
Mobile Phone
  1. iOS
Hi Rehabman

I got the brightness keys working fine yesterday (Thanks again!) and have only noticed that after boot, the display is at maximum brightness, probably a nvram issue.

I have tried a few different versions of Clover, 4049 and also 4052, 4056 built from source but still having the issue.

(including installing RC Scripts and EmuVariableUefi64)

When using 10.12.3 and using Intelbacklight.kext, i didn't have this issue

i have included some problem reporting files to see if i have missed something obvious

Code:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooI2C.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext USBInjectAll.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext Sinetek-rtsx.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext RealtekRTL8111.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HDMI_Audio.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HD_Graphics.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Broadcom_WiFi.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext CodecCommander.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM2.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmFirmwareRepo.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AsusNBFnKeys.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext aDummyHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
Invalid signature -67030 for kext <OSKext 0x7fa7d244d760 [0x7fffd0fa0da0]> { URL = "Sinetek-rtsx.kext/ -- file:///System/Library/Extensions/", ID = "com.sinet3k.Sinetek-rtsx" }
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.
KernelCache ID: 45321F55F0D97A60AB0B7409EF0A8169

Code:
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y acpiplat
   13    2 0xffffff7f8307d000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y appleintelcpu
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y applelpc
   99    0 0xffffff7f82a8b000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <88 12 5 4 3>
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y applehda
  103    1 0xffffff7f82fa0000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (279.48) ED51F180-19C8-3DE1-AF81-0E389D98ADDE <102 101 78 12 7 6 5 4 3 1>
  126    0 0xffffff7f83303000 0xb5000    0xb5000    com.apple.driver.AppleHDA (999.1.1fc1) 806B8C17-50CA-3C6B-90B3-195F38D8FB89 <125 103 102 101 82 78 6 5 4 3 1>

i have also uploaded the nvram.plist file that Clover now generates in the EFI folder

thanks in advance
 

Attachments

  • CLOVER.zip
    1.5 MB · Views: 62
  • Lee’s MacBook Pro.ioreg
    5.5 MB · Views: 104
  • nvram.plist
    6.8 KB · Views: 218

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,445
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Hi Rehabman

I got the brightness keys working fine yesterday (Thanks again!) and have only noticed that after boot, the display is at maximum brightness, probably a nvram issue.

I have tried a few different versions of Clover, 4049 and also 4052, 4056 built from source but still having the issue.

(including installing RC Scripts and EmuVariableUefi64)

When using 10.12.3 and using Intelbacklight.kext, i didn't have this issue

i have included some problem reporting files to see if i have missed something obvious

Code:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Trackpad.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Mouse.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Keyboard.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooPS2Controller.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooI2C.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext USBInjectAll.kext
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext Sinetek-rtsx.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext RealtekRTL8111.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HDMI_Audio.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Intel_HD_Graphics.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID_Broadcom_WiFi.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext FakePCIID.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext CodecCommander.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM2.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmFirmwareRepo.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AsusNBFnKeys.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext-dev-mode allowing invalid signature -67030 0xFFFFFFFFFFFEFA2A for kext aDummyHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
Invalid signature -67030 for kext <OSKext 0x7fa7d244d760 [0x7fffd0fa0da0]> { URL = "Sinetek-rtsx.kext/ -- file:///System/Library/Extensions/", ID = "com.sinet3k.Sinetek-rtsx" }
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.
KernelCache ID: 45321F55F0D97A60AB0B7409EF0A8169

Code:
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y acpiplat
   13    2 0xffffff7f8307d000 0x66000    0x66000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y appleintelcpu
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y applelpc
   99    0 0xffffff7f82a8b000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <88 12 5 4 3>
Lees-MacBook-Pro:~ feartech$ kextstat|grep -y applehda
  103    1 0xffffff7f82fa0000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (279.48) ED51F180-19C8-3DE1-AF81-0E389D98ADDE <102 101 78 12 7 6 5 4 3 1>
  126    0 0xffffff7f83303000 0xb5000    0xb5000    com.apple.driver.AppleHDA (999.1.1fc1) 806B8C17-50CA-3C6B-90B3-195F38D8FB89 <125 103 102 101 82 78 6 5 4 3 1>

i have also uploaded the nvram.plist file that Clover now generates in the EFI folder

thanks in advance

Off-topic here (this guide does not address NVRAM implementation issues)

You need to debug your NVRAM...
Check what the value of backlight-level prior to rebooting. And check that it is changing as you change the brightness level. Then check your Clover bootlog to see where Clover is loading NVRAM from and what the value is. And check native NVRAM to see what is there also.
 
Joined
May 19, 2012
Messages
3
Motherboard
Clevo P151EM Notebook
CPU
i7-3820QM
Graphics
HD 4000
Hi, RehabMan, I had tried twice, but the brightness bar doesn't work. Can you help me find where the problem is?

Thanks!

Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
kextstat|grep -y applelpc
kextstat|grep -y applehda

   13    2 0xffffff7f830c9000 0x60000    0x60000    com.apple.driver.AppleACPIPlatform (5.0) 65E05472-6AE7-3308-8CC8-FA6CB0DB2AEE <12 11 7 6 5 4 3 1>
   24    0 0xffffff7f82cd0000 0x2b000    0x2b000    com.apple.driver.AppleIntelCPUPowerManagement (219.0.0) C2841490-D1F6-30D4-AC81-48D63A8FA04C <7 6 5 4 3 1>
   34    0 0xffffff7f82ccb000 0x3000     0x3000     com.apple.driver.AppleIntelCPUPowerManagementClient (219.0.0) B802638B-251C-3602-BA8C-001F87228765 <7 6 5 4 3 1>
   98    0 0xffffff7f829a4000 0x3000     0x3000     com.apple.driver.AppleLPC (3.1) F51595F0-F9B1-3B85-A1C3-F984DAD4107E <96 12 5 4 3>
  104    1 0xffffff7f82d7e000 0x1d000    0x1d000    com.apple.driver.AppleHDAController (279.48) ED51F180-19C8-3DE1-AF81-0E389D98ADDE <103 102 86 12 7 6 5 4 3 1>
  125    0 0xffffff7f82f00000 0xb5000    0xb5000    com.apple.driver.AppleHDA (279.48) 806B8C17-50CA-3C6B-90B3-195F38D8FB89 <124 107 104 103 102 86 6 5 4 3 1>


➜  sudo touch /System/Library/Extensions && sudo kextcache -u /

kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmPatchRAM2.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext BrcmFirmwareRepo.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleIntelCPUPowerManagement.kext
KernelCache ID: FFA127AFB61E4595B79774B0A513F3E8
 

Attachments

  • Macrow's Files.zip
    2.9 MB · Views: 51
Top