Contribute
Register

[Guide] Patching DSDT/SSDT for LAPTOP backlight control

I didn't request any verbose output.
Code:
Last login: Sat Jul 30 10:18:11 on console
Daniels-MacBook-Pro:~ daniel$ kextstat|grep -y acpiplat
  13  2 0xffffff7f823c7000 0x65000  0x65000  com.apple.driver.AppleACPIPlatform (3.1) <12 11 7 6 5 4 3 1>
Daniels-MacBook-Pro:~ daniel$ kextstat|grep -y appleintelcpu
  21  0 0xffffff7f82264000 0x2b000  0x2b000  com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) <7 6 5 4 3 1>
  30  0 0xffffff7f8225f000 0x3000  0x3000  com.apple.driver.AppleIntelCPUPowerManagementClient (218.0.0) <7 6 5 4 3 1>
Daniels-MacBook-Pro:~ daniel$ kextstat|grep -y applelpc
  75  0 0xffffff7f82106000 0x3000  0x3000  com.apple.driver.AppleLPC (1.7.3) <74 12 5 4 3>
Daniels-MacBook-Pro:~ daniel$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
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 IntelMausiEthernet.kext
kext file:///System/Library/Extensions/FakeSMC.kext/Contents/PlugIns/CPUSensors.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/FakeSMC.kext/Contents/PlugIns/ACPISensors.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/FakeSMC.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/DisableTurboBoostBattery.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleIntelSNBGraphicsFB.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleIntelCPUPowerManagement.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AHCIPortInjector.kext
kext-dev-mode allowing invalid signature -67023 0xFFFFFFFFFFFEFA31 for kext aDummyHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
Daniels-MacBook-Pro:~ daniel$
here output
i can replace vesbose output as system.log ?
here is dsdt.aml apply patch PNLF (attach files)
 

Attachments

  • dsdt.aml
    36.2 KB · Views: 82
Last edited:
Code:
Last login: Sat Jul 30 10:18:11 on console
Daniels-MacBook-Pro:~ daniel$ kextstat|grep -y acpiplat
  13  2 0xffffff7f823c7000 0x65000  0x65000  com.apple.driver.AppleACPIPlatform (3.1) <12 11 7 6 5 4 3 1>
Daniels-MacBook-Pro:~ daniel$ kextstat|grep -y appleintelcpu
  21  0 0xffffff7f82264000 0x2b000  0x2b000  com.apple.driver.AppleIntelCPUPowerManagement (218.0.0) <7 6 5 4 3 1>
  30  0 0xffffff7f8225f000 0x3000  0x3000  com.apple.driver.AppleIntelCPUPowerManagementClient (218.0.0) <7 6 5 4 3 1>
Daniels-MacBook-Pro:~ daniel$ kextstat|grep -y applelpc
  75  0 0xffffff7f82106000 0x3000  0x3000  com.apple.driver.AppleLPC (1.7.3) <74 12 5 4 3>
Daniels-MacBook-Pro:~ daniel$ sudo touch /System/Library/Extensions && sudo kextcache -u /
Password:
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 IntelMausiEthernet.kext
kext file:///System/Library/Extensions/FakeSMC.kext/Contents/PlugIns/CPUSensors.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/FakeSMC.kext/Contents/PlugIns/ACPISensors.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/FakeSMC.kext/ is in hash exception list, allowing to load
kext file:///System/Library/Extensions/DisableTurboBoostBattery.kext/ is in hash exception list, allowing to load
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleIntelSNBGraphicsFB.kext
kext-dev-mode allowing invalid signature -67061 0xFFFFFFFFFFFEFA0B for kext AppleIntelCPUPowerManagement.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AHCIPortInjector.kext
kext-dev-mode allowing invalid signature -67023 0xFFFFFFFFFFFEFA31 for kext aDummyHDA.kext
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext ACPIBatteryManager.kext
Daniels-MacBook-Pro:~ daniel$

Why do you have so many system kexts patched? Restore all Apple kexts to vanilla (run the OS X installer).

here is dsdt.aml apply patch PNLF (attach files)

Use "Brightness Fix" patch, not the other patches.
Your kextcache output shows no IntelBacklight.kext installed.
(read post #1 carefully).
 
Why do you have so many system kexts patched? Restore all Apple kexts to vanilla (run the OS X installer).



Use "Brightness Fix" patch, not the other patches.
Your kextcache output shows no IntelBacklight.kext installed.
(read post #1 carefully).
i was restore vanilla kext but speedstep only 4, after fix speedstep is seventh,
why unload intelBacklight kext although i was installed it
 
On my Skylake Asus, the brightness intensity keeps resetting after every reboot.

When I do nvram -p, I get:
Code:
intel-backlight-level    %80%02%00%00
security-mode    none
platform-uuid    %00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
backlight-level    %80%02
SystemAudioVolume    /
SystemAudioVolumeDB    %12
LocationServicesEnabled    %01
csr-active-config    g%00%00%00
bluetoothActiveControllerInfo    o!\%0a%00%00%00%00%90%14%c4%8e%8f%fd0%12


The Method (RMCF) to retain brightness level doesn't seem to work. At least, not on Skylake.

Code:
        Device (PNLF)
            Name (_ADR, Zero)
            Name (_HID, EisaId ("APP0002"))
            Name (_CID, "backlight")
            Name (_UID, 10)
            Name (_STA, 0x0B)
            Method (RMCF)
            {
                Return(Package()
                {
                    "PWMMax", 0, // PWMMax of Zero uses BIOS PWM Max instead of OS X values
                    "Options", 0x01, // setting bit0 turns off smooth transitions
                })
            }
        }
 
On my Skylake Asus, the brightness intensity keeps resetting after every reboot.

When I do nvram -p, I get:
Code:
intel-backlight-level    %80%02%00%00
security-mode    none
platform-uuid    %00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
backlight-level    %80%02
SystemAudioVolume    /
SystemAudioVolumeDB    %12
LocationServicesEnabled    %01
csr-active-config    g%00%00%00
bluetoothActiveControllerInfo    o!\%0a%00%00%00%00%90%14%c4%8e%8f%fd0%12


The Method (RMCF) to retain brightness level doesn't seem to work. At least, not on Skylake.

Code:
        Device (PNLF)
            Name (_ADR, Zero)
            Name (_HID, EisaId ("APP0002"))
            Name (_CID, "backlight")
            Name (_UID, 10)
            Name (_STA, 0x0B)
            Method (RMCF)
            {
                Return(Package()
                {
                    "PWMMax", 0, // PWMMax of Zero uses BIOS PWM Max instead of OS X values
                    "Options", 0x01, // setting bit0 turns off smooth transitions
                })
            }
        }

RMCF has nothing to do with saving brightness level.

Test your NVRAM. You can set a variable with:
Code:
sudo nvram Test=This_is_a_test

Then reboot, and see if it is still there:
Code:
nvram Test

For most Sklyake computers, native UEFI NVRAM does not work so you must use EmuVariable+RC Scripts.
 
Unfortunately, the nvram test is not persistent after reboot.

Code:
nvram Test
nvram: Error getting variable - 'Test': (iokit/common) data was not found

Since the nvram test is not persistent, using EMUVariable + RC Scripts might not help.
 
Unfortunately, the nvram test is not persistent after reboot.

Code:
nvram Test
nvram: Error getting variable - 'Test': (iokit/common) data was not found

Since the nvram test is not persistent, using EMUVariable + RC Scripts might not help.

EmuVariable + RC scripts is the fix.
 
Back
Top