Contribute
Register

[solved] ASUS UX430UA keyboard backlighting

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,063
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
any ideas how to fix keyboard backlight ?

- brightness works on FN+F5/6(16 levels)
- keyboard backlight does not working

backlight
FN+F3 down -> ACPIDebug: "EC _Q0C enter" and "exit"
FN+F4 up -> ACPIDebug: "EC _Q0D enter" and "exit"

brightness
FN+F5 down -> ACPIDebug: "EC _Q0E enter" and "exit"
FN+F6 up -> ACPIDebug: "EC _Q0F enter" and "exit"

FN press:
default 14:03:37.805566 +0200 kernel ACPIDebug: "EC _QD3 enter"
default 14:03:37.805780 +0200 kernel ACPIDebug: "EC _QD3 exit"
default 14:03:37.944475 +0200 kernel ACPIDebug: "EC _QD4 enter"
default 14:03:37.944693 +0200 kernel ACPIDebug: "EC _QD4 exit"

there is latest DSDT with PNLF, AppleBacklightInjector.kext, config.plist patch

Thank you
Patch the methods that correspond to your brightness keys as per guide:
https://www.tonymacx86.com/threads/guide-patching-dsdt-ssdt-for-laptop-backlight-control.152659/
 
Joined
Apr 21, 2012
Messages
289
Motherboard
Asus UX430UA (Clover)
CPU
i7-7500U
Graphics
HD 620
Mac
iMac, MacBook Air, MacBook Pro
Mobile Phone
iOS

I red guide and used:
SSDT-PNLF.aml+clover+patches+AppleBacklightInjector.kext

Code:
[13:03:51] gulios :: Gulioss-ZenBook-Pro  ➜  /Users/gulios » sudo kextcache -i /
Password:
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext VoodooI2C.kext
kext-dev-mode allowing invalid signature -67013 0xFFFFFFFFFFFEFA3B for kext AppleMobileDevice.kext
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
kext-dev-mode allowing invalid signature -67062 0xFFFFFFFFFFFEFA0A for kext AppleBacklightInjector.kext
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
AppleHPM.kext - dependency 'com.apple.driver.AppleIntelLpssI2CController' not found.
Prelink failed for com.apple.driver.AppleHPM; omitting from prelinked kernel.
KernelCache ID: AD1C4B9B65EAD9E422D6730CD8A7E9BF
in DSDT for display brightness changed:
Code:
Method (_Q0E, 0, NotSerialized)  // _Qxx: EC Query
        {
            Notify (PS2K, 0x0365)
        }

        Method (_Q0F, 0, NotSerialized)  // _Qxx: EC Query
        {
            Notify (PS2K, 0x0366)
        }
so brightness now works 100% with 16 levels.

but still cant fix keyboard light ;(
Tried all methods from guide without success.

these method are responsible(from ACPIDebug) for FN+F3(down) and FN+F4(up) for keyboard light:
Code:
Method (_Q0C, 0, NotSerialized)  // _Qxx: EC Query
        {
            If (ATKP)
            {
                And (KBLC, 0x80, Local1)
                If (Local1)
                {
                    ^^^^ATKD.IANE (0xC5)
                }
            }
        }

        Method (_Q0D, 0, NotSerialized)  // _Qxx: EC Query
        {
            If (ATKP)
            {
                And (KBLC, 0x80, Local1)
                If (Local1)
                {
                    ^^^^ATKD.IANE (0xC4)
                }
            }
        }
 

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,063
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
but still cant fix keyboard light ;(
Tried all methods from guide without success.

these method are responsible(from ACPIDebug) for FN+F3(down) and FN+F4(up) for keyboard light:
Code:
Method (_Q0C, 0, NotSerialized)  // _Qxx: EC Query
        {
            If (ATKP)
            {
                And (KBLC, 0x80, Local1)
                If (Local1)
                {
                    ^^^^ATKD.IANE (0xC5)
                }
            }
        }

        Method (_Q0D, 0, NotSerialized)  // _Qxx: EC Query
        {
            If (ATKP)
            {
                And (KBLC, 0x80, Local1)
                If (Local1)
                {
                    ^^^^ATKD.IANE (0xC4)
                }
            }
        }
You will need to determine how your keyboard backlight is controlled and patch the EC queries appropriately...
 
Joined
Apr 21, 2012
Messages
289
Motherboard
Asus UX430UA (Clover)
CPU
i7-7500U
Graphics
HD 620
Mac
iMac, MacBook Air, MacBook Pro
Mobile Phone
iOS
You will need to determine how your keyboard backlight is controlled and patch the EC queries appropriately...
I think i have to take some break with that because can;t fix that ;(
In Linux keyboard lights works fine(3 levels).
After reboot from Linux to OSX lights working(without controll, so probably some tmp memory state...)

In console there is problem when pressing FN+F3/4 keys:
Code:
AsusNBFnKeys: Failed to set Keyboard backlight to level 0x5.
....
anyway thank you !
 
Joined
Apr 21, 2012
Messages
289
Motherboard
Asus UX430UA (Clover)
CPU
i7-7500U
Graphics
HD 620
Mac
iMac, MacBook Air, MacBook Pro
Mobile Phone
iOS
@RehabMan maybe you can help my with this?

I was able to fix only brightness on F5 -> _Q0E and F6 -> _Q0F and still can't fix keyboard lights ;((

This is full mapping of FN+F*
Code:
FN:
ACPIDebug: "EC _QD3 enter"
ACPIDebug: "EC _QD3 exit"

ACPIDebug: "EC _QD4 enter"
ACPIDebug: "EC _QD4 exit"
----------------------------------------------------
----------------------------------------------------
----------------------------------------------------
FN+F1:  sleep/hibernate?
ACPIDebug: "EC _Q0A enter"
ACPIDebug: "EC _Q0A exit"
----------------------------------------------------
FN+F2: airplane mode
ACPIDebug: "EC _Q0B enter"
ACPIDebug: "EC _Q0B exit"
----------------------------------------------------
FN+F3: keyboard light down
ACPIDebug: "EC _Q0C enter"
ACPIDebug: "EC _Q0C exit"
----------------------------------------------------
FN+F4: keyboard light up
ACPIDebug: "EC _Q0D enter"
ACPIDebug: "EC _Q0D exit"
----------------------------------------------------
FN+F5: brightness down
ACPIDebug: "EC _Q0E enter"
ACPIDebug: "EC _Q0E exit"
----------------------------------------------------
FN+F6: brightness up
ACPIDebug: "EC _Q0F enter"
ACPIDebug: "EC _Q0F exit"
----------------------------------------------------
FN+F7: disable display
ACPIDebug: "EC _Q10 enter"
ACPIDebug: "EC _Q10 exit"
----------------------------------------------------
FN+F8: toggles displays
ACPIDebug: "EC _Q11 enter"
----------------------------------------------------
FN+F9: enable/disable touchpad
ACPIDebug: "EC _Q12 enter"
ACPIDebug: "EC _Q12 exit"
----------------------------------------------------
FN+F10:
No output - mute audio
----------------------------------------------------
FN+F11:
No output - decrease audio
----------------------------------------------------
FN+F12:
No output - increase audio
----------------------------------------------------
FN+A: toggles ALS Sensor on/off
ACPIDebug: "EC _Q76 enter"
ACPIDebug: "EC _Q76 exit"
----------------------------------------------------
FN+space:
ACPIDebug: "EC _Q71 enter"
ACPIDebug: "EC _Q71 exit"
----------------------------------------------------
can you look into DSDT and help me with keyboard lights on Q0C/Q0D?

Thx
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,063
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
@RehabMan maybe you can help my with this?

I was able to fix only brightness on F5 -> _Q0E and F6 -> _Q0F and still can't fix keyboard lights ;((

This is full mapping of FN+F*
Code:
FN:
ACPIDebug: "EC _QD3 enter"
ACPIDebug: "EC _QD3 exit"

ACPIDebug: "EC _QD4 enter"
ACPIDebug: "EC _QD4 exit"
----------------------------------------------------
----------------------------------------------------
----------------------------------------------------
FN+F1:  sleep/hibernate?
ACPIDebug: "EC _Q0A enter"
ACPIDebug: "EC _Q0A exit"
----------------------------------------------------
FN+F2: airplane mode
ACPIDebug: "EC _Q0B enter"
ACPIDebug: "EC _Q0B exit"
----------------------------------------------------
FN+F3: keyboard light down
ACPIDebug: "EC _Q0C enter"
ACPIDebug: "EC _Q0C exit"
----------------------------------------------------
FN+F4: keyboard light up
ACPIDebug: "EC _Q0D enter"
ACPIDebug: "EC _Q0D exit"
----------------------------------------------------
FN+F5: brightness down
ACPIDebug: "EC _Q0E enter"
ACPIDebug: "EC _Q0E exit"
----------------------------------------------------
FN+F6: brightness up
ACPIDebug: "EC _Q0F enter"
ACPIDebug: "EC _Q0F exit"
----------------------------------------------------
FN+F7: disable display
ACPIDebug: "EC _Q10 enter"
ACPIDebug: "EC _Q10 exit"
----------------------------------------------------
FN+F8: toggles displays
ACPIDebug: "EC _Q11 enter"
----------------------------------------------------
FN+F9: enable/disable touchpad
ACPIDebug: "EC _Q12 enter"
ACPIDebug: "EC _Q12 exit"
----------------------------------------------------
FN+F10:
No output - mute audio
----------------------------------------------------
FN+F11:
No output - decrease audio
----------------------------------------------------
FN+F12:
No output - increase audio
----------------------------------------------------
FN+A: toggles ALS Sensor on/off
ACPIDebug: "EC _Q76 enter"
ACPIDebug: "EC _Q76 exit"
----------------------------------------------------
FN+space:
ACPIDebug: "EC _Q71 enter"
ACPIDebug: "EC _Q71 exit"
----------------------------------------------------
can you look into DSDT and help me with keyboard lights on Q0C/Q0D?

Thx
You will need to reverse engineer the DSDT code yourself.
ACPIDebug.kext can be useful.
You also might look into any ASUS specific WMI kext that might help... (use google).
 
Joined
Apr 21, 2012
Messages
289
Motherboard
Asus UX430UA (Clover)
CPU
i7-7500U
Graphics
HD 620
Mac
iMac, MacBook Air, MacBook Pro
Mobile Phone
iOS
You will need to reverse engineer the DSDT code yourself.
ACPIDebug.kext can be useful.
You also might look into any ASUS specific WMI kext that might help... (use google).
Thx, still trying

I;m getting ACPI error for FN+F3/4 keyboard lights

Code:
default    20:06:22.148557 +0200    kernel    ACPIDebug: "EC _QD3 enter"

default    20:06:22.148780 +0200    kernel    ACPIDebug: "EC _QD3 exit"

default    20:06:22.481433 +0200    kernel    ACPIDebug: "EC _Q0C enter"

default    20:06:22.481644 +0200    kernel    ACPIDebug: "EC _Q0C exit"

default    20:06:22.481902 +0200    kernel    ACPI Exception: AE_AML_BUFFER_LIMIT,

default    20:06:22.481926 +0200    kernel    Index (0x00000000B) is beyond end of object (length 0x4)

default    20:06:22.481932 +0200    kernel     (20160930/exoparg2-531)

default    20:06:22.481935 +0200    kernel     (20160930/exoparg2-531)

default    20:06:22.481943 +0200    kernel    [SKBL] @0006D #0088:

default    20:06:22.481946 +0200    kernel    [SKBL] @0006D #0088:

default    20:06:22.481951 +0200    kernel    P

default    20:06:22.481952 +0200    kernel    P

default    20:06:22.481955 +0200    kernel    W

default    20:06:22.481956 +0200    kernel    W

default    20:06:22.481958 +0200    kernel    K

default    20:06:22.481959 +0200    kernel    K

default    20:06:22.481961 +0200    kernel    B

default    20:06:22.481962 +0200    kernel    B

default    20:06:22.481966 +0200    kernel     [

default    20:06:22.481967 +0200    kernel     [

default    20:06:22.481970 +0200    kernel    Local0

default    20:06:22.481972 +0200    kernel    Local0

default    20:06:22.481974 +0200    kernel    ]

default    20:06:22.481976 +0200    kernel    ]

default    20:06:22.481978 +0200    kernel  

default    20:06:22.481980 +0200    kernel  

default    20:06:22.481984 +0200    kernel  

Initialized Local Variables for method [SKBL]:

default    20:06:22.481986 +0200    kernel  

Initialized Local Variables for method [SKBL]:

default    20:06:22.481991 +0200    kernel       Local0:

default    20:06:22.481993 +0200    kernel       Local0:

default    20:06:22.481998 +0200    kernel    ffffff801e709000

default    20:06:22.482000 +0200    kernel    ffffff801e709000

default    20:06:22.482003 +0200    kernel    <Obj>

default    20:06:22.482004 +0200    kernel    <Obj>

default    20:06:22.482008 +0200    kernel     Integer

default    20:06:22.482009 +0200    kernel     Integer

default    20:06:22.482011 +0200    kernel     000000000000000B

default    20:06:22.482014 +0200    kernel     000000000000000B

default    20:06:22.482016 +0200    kernel  

default    20:06:22.482018 +0200    kernel  

default    20:06:22.482020 +0200    kernel  

default    20:06:22.482021 +0200    kernel  

default    20:06:22.482027 +0200    kernel    Initialized Arguments for Method [SKBL]:  (0 arguments defined for method invocation)

default    20:06:22.482030 +0200    kernel    Initialized Arguments for Method [SKBL]:  (0 arguments defined for method invocation)

default    20:06:22.482037 +0200    kernel       Arg0:

default    20:06:22.482038 +0200    kernel       Arg0:

default    20:06:22.482043 +0200    kernel    ffffff801ea950f0

default    20:06:22.482044 +0200    kernel    ffffff801ea950f0

default    20:06:22.482047 +0200    kernel    <Obj>

default    20:06:22.482048 +0200    kernel    <Obj>

default    20:06:22.482051 +0200    kernel     Integer

default    20:06:22.482053 +0200    kernel     Integer

default    20:06:22.482056 +0200    kernel     000000000000000B

default    20:06:22.482058 +0200    kernel     000000000000000B

default    20:06:22.482060 +0200    kernel  

default    20:06:22.482061 +0200    kernel  

default    20:06:22.482064 +0200    kernel  

default    20:06:22.482065 +0200    kernel  

default    20:06:22.482073 +0200    kernel    ACPI Error:

default    20:06:22.482107 +0200    kernel    ACPI Error:

default    20:06:22.482111 +0200    kernel    Method parse/execution failed

default    20:06:22.482113 +0200    kernel    Method parse/execution failed

default    20:06:22.482117 +0200    kernel    [\_SB.ATKD.SKBL] (Node ffffff801c8b2060)

default    20:06:22.482120 +0200    kernel    [\_SB.ATKD.SKBL] (Node ffffff801c8b2060)

default    20:06:22.482123 +0200    kernel    , AE_AML_BUFFER_LIMIT

default    20:06:22.482125 +0200    kernel    , AE_AML_BUFFER_LIMIT

default    20:06:22.482128 +0200    kernel     (20160930/psparse-632)

default    20:06:22.482129 +0200    kernel     (20160930/psparse-632)

default    20:06:22.688511 +0200    kernel    ACPIDebug: "EC _QD4 enter"

default    20:06:22.688722 +0200    kernel    ACPIDebug: "EC _QD4 exit"
 

Attachments

RehabMan

Moderator
Joined
May 3, 2012
Messages
191,063
Motherboard
Intel DH67BL
CPU
Core i7-2600K
Graphics
Intel HD 3000
Mac
MacBook Air
Mobile Phone
iOS
Thx, still trying

I;m getting ACPI error for FN+F3/4 keyboard lights

Code:
default    20:06:22.148557 +0200    kernel    ACPIDebug: "EC _QD3 enter"

default    20:06:22.148780 +0200    kernel    ACPIDebug: "EC _QD3 exit"

default    20:06:22.481433 +0200    kernel    ACPIDebug: "EC _Q0C enter"

default    20:06:22.481644 +0200    kernel    ACPIDebug: "EC _Q0C exit"

default    20:06:22.481902 +0200    kernel    ACPI Exception: AE_AML_BUFFER_LIMIT,

default    20:06:22.481926 +0200    kernel    Index (0x00000000B) is beyond end of object (length 0x4)

default    20:06:22.481932 +0200    kernel     (20160930/exoparg2-531)

default    20:06:22.481935 +0200    kernel     (20160930/exoparg2-531)

default    20:06:22.481943 +0200    kernel    [SKBL] @0006D #0088:

default    20:06:22.481946 +0200    kernel    [SKBL] @0006D #0088:

default    20:06:22.481951 +0200    kernel    P

default    20:06:22.481952 +0200    kernel    P

default    20:06:22.481955 +0200    kernel    W

default    20:06:22.481956 +0200    kernel    W

default    20:06:22.481958 +0200    kernel    K

default    20:06:22.481959 +0200    kernel    K

default    20:06:22.481961 +0200    kernel    B

default    20:06:22.481962 +0200    kernel    B

default    20:06:22.481966 +0200    kernel     [

default    20:06:22.481967 +0200    kernel     [

default    20:06:22.481970 +0200    kernel    Local0

default    20:06:22.481972 +0200    kernel    Local0

default    20:06:22.481974 +0200    kernel    ]

default    20:06:22.481976 +0200    kernel    ]

default    20:06:22.481978 +0200    kernel 

default    20:06:22.481980 +0200    kernel 

default    20:06:22.481984 +0200    kernel 

Initialized Local Variables for method [SKBL]:

default    20:06:22.481986 +0200    kernel 

Initialized Local Variables for method [SKBL]:

default    20:06:22.481991 +0200    kernel       Local0:

default    20:06:22.481993 +0200    kernel       Local0:

default    20:06:22.481998 +0200    kernel    ffffff801e709000

default    20:06:22.482000 +0200    kernel    ffffff801e709000

default    20:06:22.482003 +0200    kernel    <Obj>

default    20:06:22.482004 +0200    kernel    <Obj>

default    20:06:22.482008 +0200    kernel     Integer

default    20:06:22.482009 +0200    kernel     Integer

default    20:06:22.482011 +0200    kernel     000000000000000B

default    20:06:22.482014 +0200    kernel     000000000000000B

default    20:06:22.482016 +0200    kernel 

default    20:06:22.482018 +0200    kernel 

default    20:06:22.482020 +0200    kernel 

default    20:06:22.482021 +0200    kernel 

default    20:06:22.482027 +0200    kernel    Initialized Arguments for Method [SKBL]:  (0 arguments defined for method invocation)

default    20:06:22.482030 +0200    kernel    Initialized Arguments for Method [SKBL]:  (0 arguments defined for method invocation)

default    20:06:22.482037 +0200    kernel       Arg0:

default    20:06:22.482038 +0200    kernel       Arg0:

default    20:06:22.482043 +0200    kernel    ffffff801ea950f0

default    20:06:22.482044 +0200    kernel    ffffff801ea950f0

default    20:06:22.482047 +0200    kernel    <Obj>

default    20:06:22.482048 +0200    kernel    <Obj>

default    20:06:22.482051 +0200    kernel     Integer

default    20:06:22.482053 +0200    kernel     Integer

default    20:06:22.482056 +0200    kernel     000000000000000B

default    20:06:22.482058 +0200    kernel     000000000000000B

default    20:06:22.482060 +0200    kernel 

default    20:06:22.482061 +0200    kernel 

default    20:06:22.482064 +0200    kernel 

default    20:06:22.482065 +0200    kernel 

default    20:06:22.482073 +0200    kernel    ACPI Error:

default    20:06:22.482107 +0200    kernel    ACPI Error:

default    20:06:22.482111 +0200    kernel    Method parse/execution failed

default    20:06:22.482113 +0200    kernel    Method parse/execution failed

default    20:06:22.482117 +0200    kernel    [\_SB.ATKD.SKBL] (Node ffffff801c8b2060)

default    20:06:22.482120 +0200    kernel    [\_SB.ATKD.SKBL] (Node ffffff801c8b2060)

default    20:06:22.482123 +0200    kernel    , AE_AML_BUFFER_LIMIT

default    20:06:22.482125 +0200    kernel    , AE_AML_BUFFER_LIMIT

default    20:06:22.482128 +0200    kernel     (20160930/psparse-632)

default    20:06:22.482129 +0200    kernel     (20160930/psparse-632)

default    20:06:22.688511 +0200    kernel    ACPIDebug: "EC _QD4 enter"

default    20:06:22.688722 +0200    kernel    ACPIDebug: "EC _QD4 exit"
You will need to instrument with ACPIDebug.kext the suspected problem code to determine the source of the problem.
 
Joined
Apr 21, 2012
Messages
289
Motherboard
Asus UX430UA (Clover)
CPU
i7-7500U
Graphics
HD 620
Mac
iMac, MacBook Air, MacBook Pro
Mobile Phone
iOS
Joined
Apr 21, 2012
Messages
289
Motherboard
Asus UX430UA (Clover)
CPU
i7-7500U
Graphics
HD 620
Mac
iMac, MacBook Air, MacBook Pro
Mobile Phone
iOS
ok, we can mark it as [SOLVED]
I've been working with EMlyDinEsh AsusNBFnKeys.kext to prepare kext for keyboard backlights and now it's working 100% with 3 levels.

Thx
 
Top