Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backlight Patching Bug #581

Closed
1Revenger1 opened this issue Nov 18, 2019 · 2 comments
Closed

Backlight Patching Bug #581

1Revenger1 opened this issue Nov 18, 2019 · 2 comments

Comments

@1Revenger1
Copy link

1Revenger1 commented Nov 18, 2019

Some laptops, like my Dell Precision M4700, have multiple options for GPU outputs. They can rely on the iGPU, or directly output to the internal display with a dGPU (AMD or Nvidia). While using the dGPU, backlight patches for laptops that use the Intel iGPU still do work, though can have different backlight ranges.

Using the latest build of WhateverGreen (through git clone/building in xcode) + SSDT_PNLF.aml from WEG, backlight control does work but the range is left a bit wanting - it's hard to use at night as 0 is too dark, and the next step up is too much is too bright to use at night. Under AppleIntelPanelA, it is shown that a default profile is being used for brightness:
image

If I want to use the ranges that WEG provides, all I needed to do was comment out line ~240 which disables the backlight patches if it detects we are not using the iGPU
image

Now it uses the ranges that WEG provides, but if you look at the first screenshot, the max value of 0x0710 provided by WEG is way above the max value of 0x0FF of before. What happens is that as you increase the brightness, the brightness will go up and roll over, making the display go dark again, before it continues increasing in brightness again. Limiting the range as shown below fixes this.
image

The two edits above give the full range of brightness, including at the low end, making the display usable at night. I don't know of anyway to get around the check to disable backlight patching - but maybe a way to force it to be enabled would be appreciated, either through a device property and/or boot arg. All I would question is whether the check is needed in the first place as the kext shouldn't load unless it's relevant for the needed system. Another feature that would be nice too is to set a custom backlight range for laptops like mine, rather than it being hardcoded within in WEG itself.

Specs for my specific laptop:
Dell Precision M4700
I7 3740QM
4x4GB DDR3 1600MHz
AMD Firepro mobility M4000

Edit: Just realized this is really more like two issues - If you all would like this split, I don't mind splitting it

@vit9696
Copy link
Contributor

vit9696 commented Nov 19, 2019

The check is needed, as many discrete GPUs do not like this. I will add a force option.

Custom properties make good sense to me, I will also add an option to customise this.

Thanks for the report.

@vit9696
Copy link
Contributor

vit9696 commented Nov 20, 2019

Resolved. Please reopen in case there are issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants