Contribute
Register

[Guide] Laptop backlight control using AppleBacklightFixup.kext

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,621
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
You are a hero, it works perfectly now.

If sleep is working, make sure you compare relative backlight levels pre-sleep vs. post-sleep.

I'm not really 100% sure on the LMAX of 0xff7b.
It could be anywhere between 0xff7b and 0xffff. That is a small difference and not likely to be noticed though.

If you could get a framebuffer dump from the CFL kext (kernel flag -igfxdump), that would be great.
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,621
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
I booted with -igfxdump, but I couldn't find the framebuffer dump in the root of my macOS drive.

Am I doing something wrong?

Did you install the debug WhateverGreen.kext?

Note (from WhateverGreen source):
Code:
#ifdef DEBUG
       if (checkKernelArgument("-igfxdump"))
           dumpFramebufferToDisk = true;
#endif
 
Joined
Dec 8, 2011
Messages
545
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
Razer Blade 15 running Mojave.
i7-8750H
UHD 630 Graphics
Nvidia GTX 1060 (Disabled)
Followed the guide but no backlight control. Also upon first boost my entire screen stays black for about 3 minutes and then comes to life. If I shine my phones flashlight against the screen, I can see what's on the screen, kind of and I can log in, so it's fully booted.

Problem reporting files attached.
 

Attachments

  • debug_27323.zip
    3.5 MB · Views: 90

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,621
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Razer Blade 15 running Mojave.
i7-8750H
UHD 630 Graphics
Nvidia GTX 1060 (Disabled)
Followed the guide but no backlight control. Also upon first boost my entire screen stays black for about 3 minutes and then comes to life. If I shine my phones flashlight against the screen, I can see what's on the screen, kind of and I can log in, so it's fully booted.

Problem reporting files attached.

You forgot to put SSDT-PNLF.aml in ACPI/patched. Clover does not read .dsl files.

Also...
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/
 
Joined
Dec 8, 2011
Messages
545
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
You forgot to put SSDT-PNLF.aml in ACPI/patched. Clover does not read .dsl files.

Also...
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/

Was still working on getting the system up and running, didn't cross my mind to move the kexts over. Also completely overlooked the SSDT-PNLF not being an aml file. Both issues fixed and the issue still remains. No control over screen brightness and a black screen upon first boot for the first few minutes and then the backlight turns on.

Updated problem reporting files attached.
 

Attachments

  • debug_8041.zip
    2 MB · Views: 48

RehabMan

Moderator
Joined
May 3, 2012
Messages
184,621
Motherboard
Intel DH67BL
CPU
i7-2600K
Graphics
HD 3000
Mac
  1. MacBook Air
Mobile Phone
  1. iOS
Was still working on getting the system up and running, didn't cross my mind to move the kexts over. Also completely overlooked the SSDT-PNLF not being an aml file. Both issues fixed and the issue still remains. No control over screen brightness and a black screen upon first boot for the first few minutes and then the backlight turns on.

Updated problem reporting files attached.

As per guide, ForceKextsToLoad is only for pre-install. After install, it should be removed.

Make sure you rebuild caches and reboot.

Other problems:
- you're using the wrong Clover. The Clover you're using has a serious ACPI patching bug. Use latest RehabMan Clover as linked from the guide.
- CsmVideoDxe not recommended. Remove.
- EmuVaraibleUefi not recommended. Remove.

Also, read post #1 regarding EDID patching that may be necessary.

When everything is working correctly with your kernel cache and patching, the ApplePanels under PNLF->AppleIntelPanelA should change to ApplePanel with just the F19Txxx entry.
 
Joined
Dec 8, 2011
Messages
545
Motherboard
Razer Blade 15 - Clover
CPU
i7-8750H
Graphics
UHD 630/GTX 1060 - 1920x1080
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
As per guide, ForceKextsToLoad is only for pre-install. After install, it should be removed.

Make sure you rebuild caches and reboot.

Other problems:
- you're using the wrong Clover. The Clover you're using has a serious ACPI patching bug. Use latest RehabMan Clover as linked from the guide.
- CsmVideoDxe not recommended. Remove.
- EmuVaraibleUefi not recommended. Remove.

Also, read post #1 regarding EDID patching that may be necessary.

When everything is working correctly with your kernel cache and patching, the ApplePanels under PNLF->AppleIntelPanelA should change to ApplePanel with just the F19Txxx entry.

Kexts were installed to L/E and kext cache rebuilt in my last post, but I rebuilt cache again anyways for this time around. Updated Clover to your latest version, patched the EDID and removed CsmVideoDxe & EmuVaraibleUefi.

The good news is, I have brightness control now and the keys on my keyboard are mapped properly and work. So that's a step in the right direction!

But I still have a black screen with no backlight at all at first boot for about 3 or so minutes. I attached an updated problem reporting file for this one as well.
 

Attachments

  • debug_14938.zip
    1.8 MB · Views: 55
Top