View Single Post
Old 01-19-2009, 07:18 AM
pentiumpc pentiumpc is offline
Join Date: Jan 2009
Posts: 12
activating the ASUS Hotkey.

if you look at your IOreg tree and you can see "ASUS010" or "ATKD" that mean you have a Asus hotkey device, you FN+Fx buttons will work.

you will have to find out what keys send what ACPI notifications, I made a KEXt to log and analyze the Notification code, then I look at the _GPE scope to find the corresponding interrupt. once all that is mapped out, I added codes to to toggle functions to turn on and off.

now I can turn on and off , Backlight, WIFI, Bluetooth, Card reader, Webcam, adjust brightness etc. Still figuring out some functions, key switching to ext monitor, setting FSB etc.

Sample code..
Method (CAMS, 1, Serialized) //Camera Set
Return (OCMS (Arg0))

Method (CAMR, 0, Serialized) //Camera toggle : added
Store (OCMG (), Local0)
XOr (Local0, One, Local0)
Return (OCMS (Local0))

Method (CAMG, 0, Serialized) //Camera Set
Return (OCMG ())

The code above is very tell tale, it is for switching the Camera on and off.

Method (_Q2A, 0, NotSerialized) //Camera
^^^^ATKD.CAMR() //Toggle Camera
ATKN (0x1D) //notify ATKD

the interrupt handler to service the event.

ASUS EEEPC 1000H - Atom N270 - 2GB RAM, 500GD HD.
OSX 10.5.6 (vanilla)

Gigabyte P35-DS3L, E2180, 2 GB RAM, 2 1 TB HD, GT8800 512M.
OSX 10.5.6 (vanilla)
Reply With Quote