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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux