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

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

  1. philip_petev

    philip_petev

    Joined:
    Nov 10, 2011
    Messages:
    1,480
    Mobo:
    GA-H77N-WIFI F4
    CPU:
    i7-3770 @ 3.4 GHz
    Graphics:
    Intel HD 4000
    Mobile Phone:
    Android
    Jan 5, 2014 at 5:52 PM #21
    philip_petev

    philip_petev

    Joined:
    Nov 10, 2011
    Messages:
    1,480
    Mobo:
    GA-H77N-WIFI F4
    CPU:
    i7-3770 @ 3.4 GHz
    Graphics:
    Intel HD 4000
    Mobile Phone:
    Android
    No, still around 30 seconds from power button to login screen (including 3 second Clover menu delay) on HDD. I'm running the system this way for already two days and haven't encountered any problems so far. It seems the Clover's kernel cache injection works fine. My presumption is that it works pretty much like the on-the-fly kext patch function. The catch is only kexts that don't exist in /S/L/E as kext names and/or identifiers can be injected this way.
     
  2. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 5, 2014 at 6:09 PM #22
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    It ends oddly because I changed the top value originally 0x79d to 0x710 since the display driver is setting the cap to 0x710 (verified using ACPIDebug.kext/ACPIPoller.kext and some debug output in DSDT). You can put a larger value than 0x710 but it will be capped to 0x710 by the hardware.

    What is the data you have now?

    Eventually, I think I'll modify nguyenmac's script to generate data for AppleBacklight.kext.

    But for now, I really want to figure out Haswell brightness. Many Haswell laptops use eDP and for eDP the backlight level is controlled via PCH i/o registers not IGPU system memory. Trying to find the details is next to impossible. I may fire off an email to Intel and see what happens.
     
  3. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 5, 2014 at 6:21 PM #23
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Yes, you can inject any kext not already present and that do not attempt to 'override' iokit data (eg. most injector kexts should work, provided they are adding additional, not conflicting data). But the only effect is that /S/L/E is "cleaner" and boot times slower, although probably not noticeably so.

    If you have Info.plists in cache providing conflicting information, you'll get the warnings of "already have XXX"... Quite frankly, I'm surprised it works in a predictable way at all, since Apple's own iokit/kernel documentation states the results are not determinate in this situation. That is, Apple does not state they use version# or anything else to determine which data actually gets used and the results are therefore unpredictable.

    But hey, give it a try and experiment...
     
  4. philip_petev

    philip_petev

    Joined:
    Nov 10, 2011
    Messages:
    1,480
    Mobo:
    GA-H77N-WIFI F4
    CPU:
    i7-3770 @ 3.4 GHz
    Graphics:
    Intel HD 4000
    Mobile Phone:
    Android
    Jan 5, 2014 at 6:36 PM #24
    philip_petev

    philip_petev

    Joined:
    Nov 10, 2011
    Messages:
    1,480
    Mobo:
    GA-H77N-WIFI F4
    CPU:
    i7-3770 @ 3.4 GHz
    Graphics:
    Intel HD 4000
    Mobile Phone:
    Android
    If there is some boot delay, I haven't noticed it. My system boots up just like before. My friend tried the same technique on his desktop (Z77N-WiFi) and told me that his system boots up even a little faster. I've also noticed a little reduction in the boot time on my desktop (I've migrated it to Clover and this technique too).

    I've just checked the log and the only ...already have prelinked... message is about AppleHDA, caused by the nguyenmac's injector which seems to be not loadable via the EFI partition and that's why it's still in /S/L/E.
    There are no other messages like that and all support kexts from the Installer are on the EFI partition, even those that I don't need/use.
     
  5. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 5, 2014 at 6:41 PM #25
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Yes, it is only a problem with duplicate/conflicting information, such as the case with AppleHDA...
     
  6. kpkp

    kpkp

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

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    Yeah I was thinking about modifying that script too, but wanted to test the data a bit first, so I just did it by hand, it's just 16 values...

    Code (Text):
    hex:
    00110000 00340052 00730094 00BE00FA 01360172 01C5022F 02B90360 041A050A 060E0710
    dec:
    0, 52, 82, 115, 148, 190, 250, 310, 370, 453, 559, 697, 864, 1050, 1290, 1550, 1808
     
     
  7. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Jan 5, 2014 at 8:00 PM #27
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    That data works reasonably well on both my 4540s and 4530s in the daylight. I'll find out later in a dark room. Do you find 0x34 (52) is the lower limit for your display?
     
  8. kpkp

    kpkp

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

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    Do you find the lowest brightness to bright?
    Maybe my display could go a little lower, but since it doesn't have a glossy finish but matte, I have the feeling it needs a little more brightness because of the lower transparency of the glass finish.
    I can try to get lower but only for didactic purposes because it is not really usable... I tried the lowest brightness lever in pitch-dark and it still looked a bit darker then ideal.
     
  9. RehabMan

    RehabMan Moderator

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

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    164,946
    Mobo:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    It is brighter than the lowest possible setting, too dark for day time use, but... And probably a bit brighter than my MBA. I'll find out more at night time in a dark room.
     
  10. kpkp

    kpkp

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

    kpkp

    Joined:
    Nov 24, 2012
    Messages:
    639
    Mobo:
    HP Probook 6470b
    CPU:
    Intel Core i5-3320M
    Graphics:
    Intel HD 4000, 1600x900
    OK. I would suggest you do it to fit you eyes... Then post the lower value here (or the whole scale) and I will give it a try and let you know if my display can handle it.
     

Share This Page