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;