Jump to content
EMlyDinEsH

Fn HotKey and ALS sensor driver for Asus Notebooks

Recommended Posts

 

 

You need some dsdt edits for my kext to work and i've attached the patch files as well in the first post. Your attached dsdt is corrupted so try to send me your dump based on DSDT/SSDT patching thread so I can patch it properly for this and everything else to work.

 

Fixed dsdt.

dsdt.dsl.zip

Share this post


Link to post
Share on other sites

Has anyone gotten this driver to work on an ASUS VivoBook S200E, X202E or Q200E?

 

I tried installing it, but none of the functions work. This laptop doesn't have backlit keys, so I didn't worry about the DSDT edits.

Share this post


Link to post
Share on other sites

 

For Brightness keys to work, you have to patch the dsdt and i've included this patch in the first post. Did you try that?

 

 

 

But of course.  Still nothing.  It's the damn Optimus card. 

Share this post


Link to post
Share on other sites

Here's my DSDT http://cl.ly/3z0a0r0i2D3r

 

My System Information:

Screen%20Shot%202013-08-27%20at%208.38.0

Loaded Kexts:

 

Screen%20Shot%202013-08-27%20at%208.38.2

 

I have an Asus K52F with OS 10.8.4 and the bootloader is Chameleon.

 

I can't figure out how to get the FN keys going using the DSDT edits and the kexts. Plus I'm having issues with sleep, display brightness, and battery. I wonder if it's possible to add sound using DSDT instead of using voodoohda? Not too sure so I need a bit of help. hehe Thanks in advance. :)

 

EDIT: I edited and fixed all the errors in the DSDT and added somethings to eliminate Natit.kext. Just the things I mentioned above needs fixing.

Share this post


Link to post
Share on other sites

I've attached the necessary DSDT edits in a form of a patch to get the ambient light sensor working:

# Patches for getting the Ambient Light Sensor (ALS) working, must be used with EMlyDinEsH's kext
# Kext link: https://osxlatitude.com/index.php?/topic/1968-fn-hotkey-driver-for-asus-notebooks/
# Credits: 68x and EMlyDinEsH

# Removes the code that doesn't execute 
into Method label _QCD replace_content begin
                
            Notify (ALS, 0x80)\n
            If (ATKP)\n
            {\n
                ^^^^ATKD.IANE (0xC7)\n
            }
            
 end;
 
# Removes the code that doesn't execute 
into Method label _QDD replace_content begin
                
            Notify (ALS, 0x80)\n
            If (ATKP)\n
            {\n
                ^^^^ATKD.IANE (0xC6)\n
            }
            
end;

# Modify RALS to return correct values
# Also change the keyboard backlight in DSDT
into Method label RALS replace_content begin
			If (ALAE)\n
            {\n
                Store (RRAM (0x04C9), Local0)\n
                And (Local0, 0x0F, Local0)\n
                If (LLessEqual (Local0, One))\n
                {\n
                    Store (0x32, Local1)\n
                    ^^^^ATKD.SKBL (0x03)\n
                    Store (One, Local2)\n
                }\n
                Else\n
                {\n
                    If (LLessEqual (Local0, 0x06))\n
                    {\n
                        Store (0xC8, Local1)\n
                        ^^^^ATKD.SKBL (0x02)\n
                        Store (0x02, Local2)\n
                    }\n
                    Else\n
                    {\n
                        If (LLessEqual (Local0, 0x0A))\n
                        {\n
                            Store (0x0190, Local1)\n
                            ^^^^ATKD.SKBL (One)\n
                            Store (0x03, Local2)\n
                        }\n
                        Else\n
                        {\n
                            If (LLessEqual (Local0, 0x0E))\n
                            {\n
                                Store (0x0258, Local1)\n
                            }\n
                            Else\n
                            {
                                Store (0x0320, Local1)\n
                            }\n
                            ^^^^ATKD.SKBL (Zero)\n
                            Store (0x04, Local2)\n
                        }\n
                    }\n
                }\n
                Return (Local2)\n
            }\n
            Else\n
            {\n
                Return (0xC8)\n
            }
end;
 
# Add ALSS so kext can get values
into Method label ALSS remove_entry; 
into Device label ATKD insert begin
            Method (ALSS, 0, NotSerialized)\n
            {\n
                Return (^^PCI0.LPCB.EC0.RALS ())\n
            }
end;

Share this post


Link to post
Share on other sites

Here's my DSDT http://cl.ly/3z0a0r0i2D3r

 

My System Information:

 

Loaded Kexts:

 

 

 

I have an Asus K52F with OS 10.8.4 and the bootloader is Chameleon.

 

I can't figure out how to get the FN keys going using the DSDT edits and the kexts. Plus I'm having issues with sleep, display brightness, and battery. I wonder if it's possible to add sound using DSDT instead of using voodoohda? Not too sure so I need a bit of help. hehe Thanks in advance. :)

 

EDIT: I edited and fixed all the errors in the DSDT and added somethings to eliminate Natit.kext. Just the things I mentioned above needs fixing.

 

Here is your fixed dsdt with all the things needed. Test it and let me know.

DSDT_Fixed_K52F.zip

Share this post


Link to post
Share on other sites

Hello. 

My model is Sony Vaio VPCF22, can I  modify my DSDT to apply this Fn keys. 

Thank in advance. 

My DSDT below:

 

Sorry this works only for Asus Notebooks which has the implementation at the bios level.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...