Jump to content

Fn HotKey and ALS sensor driver for Asus Notebooks


EMlyDinEsH

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

Link to comment
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.

Link to comment
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.

Link to comment
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;
Link to comment
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

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...