Jump to content

Fn HotKey and ALS sensor driver for Asus Notebooks


EMlyDinEsH

Recommended Posts

What do we do for the WiFi/BT toggle if we don't have  "IANE"

3. Modify/Replace the methods _Q0B to the below code in dsdt for getting WIFI and bluetooth to work with F2 key
NOTE: There are four toggles in F2 key by Asus:
First press turns off both
Second press turns off bluetooth and turns on Wifi
Third press turns on bluetooth and turns off Wifi
Fourth press turns off both
Method (_Q0B, 0, NotSerialized)
        {
            Store (WRST, Local0)
            Or (ShiftLeft (BRST, One), Local0, Local0)
            Increment (Local0)
            If (LGreater (Local0, 0x03))
            {
                Store (Zero, Local0)
            }
            Store (DerefOf (Index (WBTL, Local0)), Local1)
            If (LEqual (Local1, Zero))
            {
                OWLD (One)
                ^^^^ATKD.IANE (0x5F)
                Sleep (0x0DAC)
                OBTD (One)
                ^^^^ATKD.IANE (0x7E)
            }
            If (LEqual (Local1, One))
            {
                OWLD (One)
                ^^^^ATKD.IANE (0x5E)
                Sleep (0x0DAC)
                OBTD (Zero)
                ^^^^ATKD.IANE (0x7E)
            }
            If (LEqual (Local1, 0x02))
            {
                OWLD (Zero)
                ^^^^ATKD.IANE (0x5F)
                Sleep (0x0DAC)
                OBTD (One)
                ^^^^ATKD.IANE (0x7D)
            }
            If (LEqual (Local1, 0x03))
            {
                OWLD (Zero)
                ^^^^ATKD.IANE (0x5E)
                Sleep (0x0DAC)
                OBTD (Zero)
                ^^^^ATKD.IANE (0x7D)
            }
        } 
Link to comment
Share on other sites

Can anybody help me getting to work this kext on Asus K501n? All I have working is Fn + F1/F2/F5/F6 (without animation). These shortcuts are working OOTB, driver doesn't change anything, I haven't even any entry in system logs. Here's my IOReg + DSDT.
ʉ۬

 

Thanks in advance

 

attachicon.gifdsdt.aml.zip attachicon.gifMacBook Pro (PdR).zip

 

You have need to change the _UID to "ATK" from the below DSDT code and use the attached kext then let me know.

Device (ATKD)
        {
            Name (_HID, "ATK0100")  // _HID: Hardware ID
            Name (_UID, 0x01010100)  // _UID: Unique ID

2.1beta2.zip

Link to comment
Share on other sites

 

What do we do for the WiFi/BT toggle if we don't have  "IANE"


 

Already i've explained that in my first post. Here it is:

For some dsdt files, you need to replace "^^^^ATKD.IANE (0xXX)" with "Notify (ATKD, 0xXX)".

If you still have issues then send me your dsdt.

Link to comment
Share on other sites

 

You have need to change the _UID to "ATK" from the below DSDT code and use the attached kext then let me know.

Device (ATKD)
        {
            Name (_HID, "ATK0100")  // _HID: Hardware ID
            Name (_UID, 0x01010100)  // _UID: Unique ID

 

 

Now I have some output in system log, but still not working (only OOTB combinations):

localhost kernel[0]: Asus Notebooks Fn Keys v2.1 Copyright (c) 2012-2014 EMlyDinEsH (OSXLatitude).
localhost kernel[0]: AsusNBFnKeys: Found Asus WMI Device ATKD
localhost kernel[0]: AsusNBFnKeys: No object of method _WDG
localhost kernel[0]: AsusNBFnKeys: Fn Hotkey events Enabled
localhost kernel[0]: AsusNBFnKeys: IGPU device not found

//EDIT

 

I've added _WDG code section to ATKD and now in output it says there's "No object of method WQBA". Then I found WQBA and added to ATKD, now I have only 3 lines of output like this:

localhost kernel[0]: Asus Notebooks Fn Keys v2.1 Copyright (c) 2012-2014 EMlyDinEsH (OSXLatitude).
localhost kernel[0]: AsusNBFnKeys: Found Asus WMI Device ATKD
localhost kernel[0]: AsusNBFnKeys: Fn Hotkey events Enabled
localhost kernel[0]: AsusNBFnKeys: IGPU device not found
Link to comment
Share on other sites

 

Now I have some output in system log, but still not working (only OOTB combinations):

localhost kernel[0]: Asus Notebooks Fn Keys v2.1 Copyright (c) 2012-2014 EMlyDinEsH (OSXLatitude).
localhost kernel[0]: AsusNBFnKeys: Found Asus WMI Device ATKD
localhost kernel[0]: AsusNBFnKeys: No object of method _WDG
localhost kernel[0]: AsusNBFnKeys: Fn Hotkey events Enabled
localhost kernel[0]: AsusNBFnKeys: IGPU device not found

//EDIT

 

I've added _WDG code section to ATKD and now in output it says there's "No object of method WQBA". Then I found WQBA and added to ATKD, now I have only 3 lines of output like this:

localhost kernel[0]: Asus Notebooks Fn Keys v2.1 Copyright (c) 2012-2014 EMlyDinEsH (OSXLatitude).
localhost kernel[0]: AsusNBFnKeys: Found Asus WMI Device ATKD
localhost kernel[0]: AsusNBFnKeys: Fn Hotkey events Enabled
localhost kernel[0]: AsusNBFnKeys: IGPU device not found

 

My driver loaded and your keys should be working fine. Still no keys are working?

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...