During some unrelated testing I figured out why using Lilu to hook AppleIntelFramebufferController::WriteRegister32 fails (causes seemingly-random kernel panics).
When Lilu routes a function, it writes an absolute jmp to the start of the original function body. This instruction takes (iirc) 9...
Sorry, I've been busy working on fixing other stuff on my machine, haven't had the time to swing back to this.
I did remember one other piece of information that I found while researching this bug -- a Linux kernel patch for Coffee Lake graphics + Cannon Point PCH to fix the backlight turning...
I would be worried that disabling the DPCD brightness writes would kill brightness control on external DisplayPort-connected monitors that support it, like the Apple Cinema display. I have one, I guess I should plug it in and set a breakpoint in CamelliaBase::SetDPCDBacklight.
Yeah, the eDP panels in these laptops doesn't appear to use the DPCD brightness data that the Camellia call path can set.
Here's a stupid question: What is Camellia? I never did figure that out while constructing this patch.
I can't test it right now, but it does look safer -- no instruction patches, and you don't route any high-call-frequency functions. My only concern would be whether you'd get any backlight flicker from allowing the original hwSetBacklight to write an incorrect value to the register (truncated...
Yeah, the patch definitely isn't optimal from a maintenance perspective -- the instruction sequences could easily change in a future release.
The much simpler way to patch this that I tried first was just to hook AppleIntelFramebufferController::WriteRegister32, have it ignore the...
Well, that's certainly unexpected. Neither the WEG or SSDT patches touch anything related to the trackpad or sleep/wake.
If you have no brightness control, either something went wrong when you applied the SSDT patch, or maybe you have another SSDT that's adding more stuff into \_SB_.PCI0.GFX0...
No, I decompiled and patched my own DSDT/SSDTs. I've attached the entire patched SSDT-2-SaSsdt.dsl file for reference. I'm on BIOS 1.05. (There were basically no changes in this SSDT between 1.00 and 1.05, though, so it shouldn't matter).
Don't just compile this SSDT and drop it in, though --...
I don't know what Whatevername is for, the WEG build process includes it in the package and I didn't remove it. You can ignore it, I only changed the kext.
Did it break by having the panel stuck full-bright? or stuck turned off?
If you can, open a terminal on the machine after it boots with...
I've also been working on a Razer Blade 15 (2018), and I found a workaround for the backlight going dark at boot. I wrote a patch for WhateverGreen to fix it. You can try it out here: https://github.com/Fraxul/WhateverGreen/releases/tag/1.2.1-a9d24be3
There's more information about how the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.