Native Brightness working without 'blinkscreen' using patched AppleBacklight.kext

Discussion in 'HP ProBook - Mavericks' started by RehabMan, Jan 5, 2014.

  1. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 12:21 AM #51
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Interesting.

    Could be. I don't have that issue here at all with either laptop, so can't really say. It would require experimentation using ACPIBacklight.kext and ioio.
     
  2. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 1:47 AM #52
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    The brightness levels for this technique will generally be the same because of the way OS X expects the backlight control registers to be initialized (range of 0-0x710). I think it will even work on some Haswell systems, provided the laptop does not use eDP (eDP controls are somewhere in the PCH instead of the IGPU).

    And the general technique of patching DSDT is the same since the registers to control this hardware function are at the same offsets (they are at fixed offsets from BAR1, which is at fixed offset 0x10 from PCI_config).

    The details of your DSDT may be different and that is what might be causing the error. In particular the patches depend on the original PCI_Config being called IGDP, and they depend on the GFX0 device being named IGPU (we rename it other ProBook patches).

    What do you mean 'find anything like that in dword 32-bit mode?' . After you determine the address F0048250, you use Access -> Memory and type in that address as the address of memory to view. Then you should see the values change as you change the brightness.

    Yes... exact symptoms that we have. It is because of a difference in the way our laptop BIOS initializes the backlight controls and the way OS X expects them to be initialized (by Mac firmware). The DSDT patch takes care of this difference, initializing it when OS X boots, such that display sleep is not necessary.

    If you need help, post your DSDT...
     
  3. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 5:00 AM #53
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    If you apply the "Rename GFX0 to IGPU" from here: https://github.com/RehabMan/Laptop-DSDT-Patch, then follow the instructions in post #1, this technique should work for you.

    Eventually, I'll make these patches available in the main laptop repo as well as in the ProBook repo (as they are now). For now, use both repos.

    You don't really need to know this data for this method. The whole idea here is to use an OS X friendly range (0-0x710) instead of the laptop's native range. The values you have above are useful for the ACPIBacklight.kext+DSDT patch method as covered in the related thread. Although it is good to know that the values at BAR1+4824c are being used and correspond in Windows.
     
  4. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 5:19 PM #54
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Read the instructions in post #1. You must repair permissions & rebuild cache.

    Check your ioreg in IORegistryExplorer. What do you see under PNLF.AppleIntelPanelA.Apple Panel?

    See here: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html
     
  5. kpkp

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    Jan 7, 2014 at 5:46 PM #55
    kpkp

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    Where do you read that "11" value? It is "hardcoded" in the driver?

    I can conform that the dimmed screen isn't and darker then my lowest brightness... At-least nothing noticeable.
    I tested by putting the value to the 2nd lowest waited for the dimming to occur and then lowered to the lowest brightness level and the brightness doesn't change in a noticeable way.
     
  6. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 5:49 PM #56
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    First 16-bits of the data.

    Best to look at ioreg to see what ApplePanelRawBrightness is being set to...
     
  7. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 5:52 PM #57
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    FYI: I have discovered the secret to Haswell Intel Graphics backlight. At least on my Envy...

    Now to determine how to package this in some patches in the laptop repo...
     
  8. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 6:08 PM #58
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    According to your ioreg, everything is working.

    FYI: You should not expect AppleBacklightInjector.kext to show in kextstat. It is an injector (codeless kext in Apple's terms).
     
  9. kpkp

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    Jan 7, 2014 at 6:09 PM #59
    kpkp

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    I was doing that too, but the data doesn't refresh fast enough, am I missing something?
     
  10. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 7, 2014 at 6:11 PM #60
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    152,697
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Set IORegistryExplorer to update every second, instead of every 30.
     

Share This Page