fidele007 / Asus-ROG-GL552VW-Hackintosh

Guide to hackintoshing the ASUS ROG GL552VW
54 stars 19 forks source link

Keyboard backlight not working #3

Closed baobaoit closed 5 years ago

baobaoit commented 5 years ago

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

fidele007 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 👍

rbc33 commented 5 years ago

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 commented 5 years ago

Did you mean keyboard backlight or display backlight?

baobaoit commented 5 years ago

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 commented 5 years ago

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

rbc33 commented 5 years ago

@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 commented 5 years ago

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

rbc33 commented 5 years ago

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

rbc33 commented 5 years ago

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

baobaoit commented 5 years ago

Did you set DVMT from 32 to 64?

rbc33 commented 5 years ago

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

baobaoit commented 5 years ago

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

rbc33 commented 5 years ago

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

rbc33 commented 5 years ago

@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 commented 5 years ago

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

rbc33 commented 5 years ago

It's all thanks to you

El mar., 19 feb. 2019 1:16, Bao Le notifications@github.com escribió:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fidele007/Asus-ROG-GL552VW-Hackintosh/issues/3#issuecomment-464929374, or mute the thread https://github.com/notifications/unsubscribe-auth/AbmoKSTp6Zv37WdJSofTuleac_AxOlSXks5vO0JSgaJpZM4ZgGa_ .

ramandika commented 3 years ago

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

Any ideas on it?