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

Keyboard backlight not working #3

Closed
baobaoit opened this issue Dec 24, 2018 · 21 comments
Closed

Keyboard backlight not working #3

baobaoit opened this issue Dec 24, 2018 · 21 comments

Comments

@baobaoit
Copy link

Dear @fidele007 , I has patched DSDT with KeyboardBacklight16, but my backlight was not working.
Is there any settings else that you not write?

@fidele007
Copy link
Owner

Make sure that you also have AsusNBFnKeys kext installed. The latest version as of now is v2.6 (https://osxlatitude.com/forums/topic/1968-fn-hotkey-and-als-sensor-driver-for-asus-notebooks/).

@baobaoit
Copy link
Author

I used the AsusNBFnKeys in your CKO folder. I'll try download from your link. Also, I need installe it to LE or CKO? Thank you!

@baobaoit
Copy link
Author

Hello @fidele007 , I had installed the lastest AsusNBFnKeys + Lilu kext, and patched DSDT with your patch suggest. Then I reboot my laptop. When it boot up, the keyboard backlight still not working. I have try using Fn+F3/4 but nothing happend. I'm using Asus GL552VW like this tutorial with macOS Mojave installed. Can you suggest for me any idea?

@baobaoit
Copy link
Author

baobaoit commented Dec 26, 2018

I had solved via a hard research! With those code below was made my keyboard backlight to worked. Can you update to your wiki? And modified the KeyboardBacklight16 patch.

UPDATE 1: this is patch 4 level, if you want to use patch 16 level just replace Store (DerefOf (Index (PWKB, Local0)), Local1) With Store (DerefOf (Index (KBPW, Local0)), Local1) or if you don’t have Name (KBPW... so you can change the content of Name (PWKB... from 0x00, 0x55, 0xAA, 0xFF to 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF

            Name (PWKB, Buffer (0x04)
            {
                 0x00, 0x55, 0xAA, 0xFF                         
            })
            Name (BOFF, Zero)
            Method (SKBL, 1, NotSerialized)
            {
                If (Or (LEqual (Arg0, 0xED), LEqual (Arg0, 0xFD)))
                {
                    If (And (LEqual (Arg0, 0xED), LEqual (BOFF, 0xEA)))
                    {
                        Store (Zero, Local0)
                        Store (Arg0, BOFF)
                    }
                    ElseIf (And (LEqual (Arg0, 0xFD), LEqual (BOFF, 0xFA)))
                    {
                        Store (Zero, Local0)
                        Store (Arg0, BOFF)
                    }
                    Else
                    {
                        Return (BOFF)
                    }
                }
                ElseIf (Or (LEqual (Arg0, 0xEA), LEqual (Arg0, 0xFA)))
                {
                    Store (KBLV, Local0)
                    Store (Arg0, BOFF)
                }
                Else
                {
                    Store (Arg0, Local0)
                    Store (Arg0, KBLV)
                }

                Store (DerefOf (Index (PWKB, Local0)), Local1)
                ^^PCI0.LPCB.EC0.WRAM (0x04B1, Local1)
                ^^PCI0.LPCB.EC0.WRAM (0x044B, Local1)
                Return (Local0)
            }

            Method (GKBL, 1, NotSerialized)
            {
                If (LEqual (Arg0, 0xFF))
                {
                    Return (BOFF)
                }

                Return (KBLV)
            }

@fidele007
Copy link
Owner

Updated the guide. After double checking, it seems like I used a different patch and not the KeyboardBacklight16 one. I didn't include the following patch since it's already included in the original DSDT:

Name (PWKB, Buffer (0x04)
            {
                 0x00, 0x55, 0xAA, 0xFF                         
            })

Thanks for your contribution 👍

@baobaoit baobaoit changed the title Keyboard backlight not working Keyboard backlight not working Dec 27, 2018
@rbc33
Copy link

rbc33 commented Jan 30, 2019

hi, i installed all the kext but I cat get my backlight working, also I can't find the parameters SBFB and SBFI for patching my touchpad
DSDT.aml.zip

@baobaoit
Copy link
Author

Did you mean keyboard backlight or display backlight?

@baobaoit
Copy link
Author

SSDT-PNLF.aml and AppleBacklightFixup.kext for brightness patch according to RehabMan's guide.

If about display backlight, you should put AppleBacklightFixup in /Library/Extensions and SSDT-PNLF in /EFI/CLOVER/ACPI/patches then you put the name SSDT-PNLF.aml in config.plist by Clover Configurations at SortedOrder

@baobaoit
Copy link
Author

By the way, when you put kext in /Library/Extensions, you must remember run
sudo kextcache -i /
on Terminal.

@rbc33
Copy link

rbc33 commented Feb 14, 2019

@baobaoit my system crushed and the acpi you patched for mi doesn't works anymore, would you mind to repatch it?it would be a huge favor

pd: im working to learn how to do it by myself

CLOVER.zip

@baobaoit
Copy link
Author

Are you re-extract your DSDT via press F4 before you boot up Mac?

@rbc33
Copy link

rbc33 commented Feb 15, 2019

yes I did anyway I did it again to be sure
CLOVER.zip

@rbc33
Copy link

rbc33 commented Feb 15, 2019

this its what I get when I try to boot with the clover you patched
img_20190215_214051

@baobaoit
Copy link
Author

Did you set DVMT from 32 to 64?

@rbc33
Copy link

rbc33 commented Feb 16, 2019

Yes, I did everything but the boot crushed and I can't use that ACPI/patched no longer,

@baobaoit
Copy link
Author

I think you should re-install macOS then put my patched again.

@rbc33
Copy link

rbc33 commented Feb 17, 2019

That is what I did but it doesn't works the boot crushes with the message I took the picture

@rbc33
Copy link

rbc33 commented Feb 18, 2019

@baobaoit so I finally resolved it, I didn't save my bios configuration when I changed DVMT...(facepalm)
right click still doesn't work but at this point it's not so important and I learn how to modify my DSDT in the meanwhile

thank you very much for your support

@baobaoit
Copy link
Author

So this is a good news. I’m feeling great when heard you say that. It’s my pleasure.

@rbc33
Copy link

rbc33 commented Feb 19, 2019 via email

@ramandika
Copy link

I try to patch keyboard back light but this errors show up when trying to patch @baobaoit
image

Any ideas on it?

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

No branches or pull requests

4 participants