Contribute
Register

10.12.4 IntelBackLight.kext doesnt work anymore

Status
Not open for further replies.
because brightness control works without a problem with the brighness DSDT fix and without any injector or anything, i just need to know how and where to set the PWMax values.
 
got it working but still need to know how calculate pwmmax for 0x19120000. dont understand the tables in info.plist
 
got it working but still need to know how calculate pwmmax for 0x19120000. dont understand the tables in info.plist

Note: Strange to use 0x19120000 for a laptop... (no LVDS connector, but maybe you're adding one with a patch?)

ig-platform-id data for 0x19120000:
Code:
00 00 12 19 00 00 00 00 FF 08 08 00 00 00 00 00 01 03 03 03 00 00 20 02 00 00 50 01 00 00 00 60
6C 05 00 00 6C 05 00 00 00 00 00 00 00 00 00 00
FF 00 00 00 01 00 00 00 20 00 00 00
01 05 09 00 00 04 00 00 87 01 00 00
02 04 0A 00 00 04 00 00 87 01 00 00
03 06 0A 00 00 04 00 00 87 01 00 00
0F 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 23 1B 00 00 00 00 00 70 24 1B 00 00 00 00 00 70 24 1B 00 00 00 00 00 01 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00

You can see the PWMMax values on the second line. It is 0x056c.
 
sorry i meant 191b not 1912. :( how did you get the platform data in the first place?

I open the kext binary in a hex editor then search for the platform data by searching for the ig-platform-id.
So for 0x191b0000, search for 00 00 1b 19.
You find this:
Code:
00 00 1B 19 00 00 00 00 FF 08 08 00 00 00 00 00 01 03 03 03 00 00 20 02 00 00 50 01 00 00 00 60 
6C 05 00 00 6C 05 00 00 00 00 00 00 00 00 00 00 
00 00 08 00 02 00 00 00 98 00 00 00 
01 05 09 00 00 04 00 00 87 01 00 00 
02 04 0A 00 00 04 00 00 87 01 00 00 
FF 00 00 00 01 00 00 00 20 00 00 00 
0F 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 23 1B 00 00 00 00 00 20 24 1B 00 00 00 00 00 70 24 1B 00 00 00 00 00 01 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00

So, for 0x191b0000, the PWMMax is 0x56c.
 
I open the kext binary in a hex editor then search for the platform data by searching for the ig-platform-id.
So for 0x191b0000, search for 00 00 1b 19.
You find this:
Code:
00 00 1B 19 00 00 00 00 FF 08 08 00 00 00 00 00 01 03 03 03 00 00 20 02 00 00 50 01 00 00 00 60
6C 05 00 00 6C 05 00 00 00 00 00 00 00 00 00 00
00 00 08 00 02 00 00 00 98 00 00 00
01 05 09 00 00 04 00 00 87 01 00 00
02 04 0A 00 00 04 00 00 87 01 00 00
FF 00 00 00 01 00 00 00 20 00 00 00
0F 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 23 1B 00 00 00 00 00 20 24 1B 00 00 00 00 00 70 24 1B 00 00 00 00 00 01 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00

So, for 0x191b0000, the PWMMax is 0x56c.
i already thought of that, but which kext do you read? AppleBacklight.kext? I only found an entry in AppleIntelSKLGraphics, but this was different from what you posted. Additional question: from this, how do you get the corresponding ApplePanel entry for the correct AppleBacklightInjector?
 
i already thought of that, but which kext do you read?

That is from AppleIntelSKLGraphicsFramebuffer.

Additional question: from this, how do you get the corresponding ApplePanel entry for the correct AppleBacklightInjector?

The ApplePanel entry is determined from SMBIOS, PNLF._UID, and display-id (from EDID).
 
That is from AppleIntelSKLGraphicsFramebuffer.



The ApplePanel entry is determined from SMBIOS, PNLF._UID, and display-id (from EDID).
is there a tutorial how to calculate it?
 
Last edited:
is there a tutorial how to calculate it?

The patch_backlight.sh script assumes _UID=10, and assumes a pattern of F<uid>T<display-id>, which corresponds to format "F%uT%04x".

If you look at the code in AppleBacklight (or even 'strings' output), you will see several other possibilities...
Code:
F%uP%04x
F%uT%04xM
F%uT%04xL
F%uT%04xD
F%uT%04xLD
F%uT%04xDL
F%uT%04x
F%uS%04x

I'm pretty sure I wrote about all this stuff in my guides/posts from years ago...
 
Status
Not open for further replies.
Back
Top