RehabMan / OS-X-ACPI-Backlight

Updated ACPIBacklight.kext for OS X. Uses ACPI methods to control laptop backlight.
Other
49 stars 12 forks source link

ACPIBacklight by RehabMan

How to Install:

Install the kext using your favorite kext installer utility, such as Kext Wizard. The Debug directory is for troubleshooting only, in normal "working" installs, you should install the Release version.

Downloads:

Downloads are available on bitbucket:

https://bitbucket.org/RehabMan/os-x-acpi-backlight/downloads/

Build Environment

My build environment is currently Xcode 6.1, using SDK 10.8, targeting OS X 10.6.

No other build environment is supported.

32-bit Builds

Currently, builds are provided only for 64-bit systems. 32-bit/64-bit FAT binaries are not provided. But you may be able build your own should you need them. I do not test 32-bit, and there may be times when the repo is broken with respect to 32-bit builds.

Here's how to build 32-bit (universal):

probably not necessary, but a good idea to check that the targets don't have overrides:

Or, if you have the command line tools installed, just run:

Source Code:

The source code is maintained at the following sites:

https://github.com/RehabMan/OS-X-ACPI-Backlight

https://bitbucket.org/RehabMan/os-x-acpi-backlight

Feedback:

Please use this thread on tonymacx86.com for feedback, questions, and help:

http://www.tonymacx86.com/hp-probook-mavericks/118805-full-range-brightness-using-acpibacklight.html

Known issues:

Change Log:

2014-10-16 v2.0.3

2013-12-27 v2.0.2

2013-12-24 v2.0.1

2013-12-21 v2.0

History

See original post at: http://www.insanelymac.com/forum/topic/268219-acpi-backlight-driver/

This version is enhanced by RehabMan for various features called out in the Change log, above.

Originally, we had little reason to use this kext on the HP ProBook, because the ACPI methods are broken on the ProBook series (they attempt to call back into Windows). the combination of native brightness with PNLF patch and 'blinkscreen' was imperfect, but good enough. But eventually, a method was discovered where by the hardware registers that control brightness on the HD3000/HD4000 can be manipulated directly from DSDT code. For more information on these patches, see: https://github.com/RehabMan/HP-ProBook-4x30s-DSDT-Patch

Some of the details are covered in this thread: http://www.tonymacx86.com/hp-probook-mavericks/118805-full-range-brightness-using-acpibacklight.html

Original Credits

The original driver was written by 'hotKoffy' and posted as an attachment to insanelymac. There was a couple of different versions, including one posted by 'fxtentacle' where the values used by the driver were correctly scaled from the 0-0x400 range used by OS X. I have incorporated those changes into the git history.

hotKoffy - original version fxtentacle - 0-0x400 scaling fix RehabMan - further enhancements