On Thu, Feb 09, 2012 at 01:24:02PM +0800, Daniel Toussaint wrote: > Thanks very much for the very helpful info. > I have added the GPE to my DSDT and now I can see the GPE counter in > /sys/firmware/acpi/interrupts increasing whenever I send an SCI. > Further more, I found the function acpi_install_gpe_handler in the > kernel, and used it successfully to install a handler in a temporary > driver I created. > My custom device is an I2C device that I will read input from , > whenever my gpe event occurs. Now my question is : this seems to work > without declaring a new device in the DSDT , with an HID - as you > mentioned - so can I get away with doing things this way , or would it > be bad practice ? Well, if it works, you can obviously do it without any further modification :) It would arguably be more "correct" to define it as a full ACPI device - that way you can have module autoloading and automatic resource discovery. But if you're happy with a static configuration then just go with what you have now. -- Matthew Garrett | mjg59@xxxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html