Re: [PATCH] ACPI: Platform driver to support App Hot Startup (PNP0C32)

Matthew Garrett
2008-08-28T13:41:05Z

On Thu, Aug 28, 2008 at 02:37:08PM +0200, Ângelo Miguel Arrifano wrote:

> +/* There will be two events:
> + * 0x02 - A hot button was pressed while device was off/sleeping.
> + * 0x08 - A hot button was pressed while device was up. */

Are you sure? The spec seems to say 0x80, not 0x08.

> +#define QUICKSTART_EVENT_RUNTIME 0x80

As you have here :)

Could you add an input device for runtime button notification? Use the
GHID value as a scancode, then provide functions to do scancode->keycode
mappings (see wistron_btns.c or hp_wmi.c for examples of this). That
way, hal or whatever can be used to map them to machine-specific values.

--
Matthew Garrett | mjg59@srcf.ucam.org