Contribute
Register

Full range of brightness using ACPIBacklight

Status
Not open for further replies.
Check the framebuffer in each. It has the setting for maximum PWM backlight clock.

In the event of something other than 0xad9, you'd have to modify the _BCL table (and other data) to match.

FYI: I'm working on some changes to this patch (and the HD3000/HD4000) where it will instead keep the max PWM clock at what BIOS sets (as an option), scaling the _BCL as required, and always setting the PWM registers (including max) to what the BIOS originally set. I think it is probably better to set it to what BIOS wants instead of what OS X wants. It will also have the side effect of fixing the problem you mention (not really a bug, but...) because the framebuffer's setting will always be short lived.

indeed, 000a max PWM is 5273Hz.
Is there a smart way to come up with the _BCL table? So far I've changed the initial store to LEVX to 0x14991499, and the upper XRGH range to 5273, but I do not know how to define the valid steps in _BCL.

(Sorry about the pesky questions while you're reworking the patch.. started changing this before I saw your edit :))

Edit: Made a linear table with the script below. Seems to be working ok, even though the one in your original patch doesn't look linear. Probably related to how brightness changes are perceived?
Code:
#! /bin/sh
i="0"
a="29"
while [ $i -lt 64 ]
do
	a=$[$a+82]
	i=$[$i+1]
	echo '            '$a',\\n'
done

Edit x2: I had to revert back to 0xa260006 since my backlight wouldn't turn back on after display sleep with 0xa26000a. Oh well, at least I learned something about how backlight dimming works :)
 
I have been reading this thread and have gotten a little confused. So far I have gathered a couple resources.

I downloaded MaciASL.

I found this repository: https://github.com/RehabMan/Laptop-DSDT-Patch

I planned to install the graphics_PNLF-ACPI100.txt patch.

However, MaciASL told me I had errors in my DTSD. I do not know how to fix them so I'm including it here.

Also, I'm not sure if I should be installing this in my DTSD because of the many comments of SSDT.

Could you please explain what is going wrong?

EDIT: I couldn't attatch the file because apparently its too big for the forums. I put it on dropbox here: https://www.dropbox.com/s/u6q1wh6mt1wca4n/System DSDT.dsl?dl=0

Also my system is:
i5-4210u Intel HD Graphics 4400 w. 1080p display
Dell Inspiron 15 5000 series
 
I have been reading this thread and have gotten a little confused. So far I have gathered a couple resources.

I downloaded MaciASL.

I found this repository: https://github.com/RehabMan/Laptop-DSDT-Patch

I planned to install the graphics_PNLF-ACPI100.txt patch.

However, MaciASL told me I had errors in my DTSD. I do not know how to fix them so I'm including it here.

Also, I'm not sure if I should be installing this in my DTSD because of the many comments of SSDT.

Could you please explain what is going wrong?

EDIT: I couldn't attatch the file because apparently its too big for the forums. I put it on dropbox here: https://www.dropbox.com/s/u6q1wh6mt1wca4n/System DSDT.dsl?dl=0

Also my system is:
i5-4210u Intel HD Graphics 4400 w. 1080p display
Dell Inspiron 15 5000 series

I wrote a full guide: http://www.tonymacx86.com/yosemite-...ching-dsdt-ssdt-laptop-backlight-control.html
 
RehabMan Hello. Use your patch SSDT + ASPIBacklight.kext but it is impossible. Can you help me? thank you in advance

Config
Laptop Asus r510la-rs71
MB x550la
Core i7 4500u
 

Attachments

  • Ssdt_Ioreg.zip
    3.3 MB · Views: 220
RehabMan Hello. Use your patch SSDT + ASPIBacklight.kext but it is impossible. Can you help me? thank you in advance

Config
Laptop Asus r510la-rs71
MB x550la
Core i7 4500u

IOreg is corrupt.

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
rm -Rf ~/Downloads/RehabMan
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu
 
IOreg is corrupt.

Download patchmatic: https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads/RehabMan-patchmatic-2015-0107.zip
Extract the 'patchmatic' binary from the ZIP. Copy it to /usr/bin, such that you have the binary at /usr/bin/patchmatic.

In terminal,
Code:
rm -Rf ~/Downloads/RehabMan
mkdir ~/Downloads/RehabMan
cd ~/Downloads/RehabMan
patchmatic -extract

Post contents of Downloads/RehabMan directory (as ZIP).

Also, post ioreg: http://www.tonymacx86.com/audio/58368-guide-how-make-copy-ioreg.html. Please, use the IORegistryExplorer v2.1 attached to the post! DO NOT reply with an ioreg from any other version of IORegistryExplorer.app.

And output from:
Code:
kextstat|grep -y acpiplat
kextstat|grep -y appleintelcpu

Thank you for your help
alс233 also could not start
 

Attachments

  • RehabMan.zip
    467.1 KB · Views: 238
Thank you for your help
alс233 also could not start

Your DSDT is not correctly patched for backlight control. See guide: http://www.tonymacx86.com/yosemite-...ching-dsdt-ssdt-laptop-backlight-control.html

You're using VoodooHDA for audio. I have not too much experience with VoodooHDA...

Audio: Best result with patched AppleHDA. Google 'patch AppleHDA guide'. Search for suitable AppleHDA or patch it yourself. Apply appropriate DSDT patches.

DSDT patches for patched AppleHDA are covered in the DSDT/SSDT patching guide: http://www.tonymacx86.com/yosemite-laptop-support/152573-guide-patching-laptop-dsdt-ssdts.html
 
LVDS backlight works without ACPIBacklight.kext but with Brightness fix patch.
Does it mean that backlight does use ACPI in my laptop?
 
Status
Not open for further replies.
Back
Top