public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: "Ângelo Miguel Arrifano" <miknix@gmail.com>
Cc: andi@firstfloor.org, Zhang Rui <rui.zhang@intel.com>,
	Len Brown <lenb@kernel.org>, "Li, Shaohua" <shaohua.li@intel.com>,
	linux-acpi@vger.kernel.org
Subject: Re: [PATCH] ACPI: Platform driver to support App Hot Startup (PNP0C32)
Date: Thu, 28 Aug 2008 14:40:55 +0100	[thread overview]
Message-ID: <20080828134055.GA27158@srcf.ucam.org> (raw)
In-Reply-To: <20080828143708.25815142.miknix@gmail.com>

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
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-08-28 13:41 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 15:17 [PATCH] ACPI: Platform driver to support App Hot Startup (PNP0C32) Ângelo Miguel Arrifano
2008-03-25  6:59 ` Zhang, Rui
2008-03-26 17:51   ` Ângelo Miguel Arrifano
2008-03-27  2:30     ` Shaohua Li
2008-03-27 16:03       ` Ângelo Miguel Arrifano
2008-03-28  1:36         ` Shaohua Li
2008-03-28 19:39           ` Ângelo Miguel Arrifano
2008-08-24 16:39             ` Ângelo Miguel Arrifano
2008-08-25  1:29               ` Zhang Rui
2008-08-26 18:43                 ` Andi Kleen
2008-08-28 12:37                   ` Ângelo Miguel Arrifano
2008-08-28 13:08                     ` Andi Kleen
2008-08-28 13:47                       ` Ângelo Miguel Arrifano
2008-08-28 15:36                         ` Andi Kleen
2008-08-28 13:40                     ` Matthew Garrett [this message]
2008-08-31 22:38                       ` Ângelo Miguel Arrifano
2008-08-31 22:00                         ` Matthew Garrett
2008-08-31 23:21                           ` Ângelo Miguel Arrifano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080828134055.GA27158@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=andi@firstfloor.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=miknix@gmail.com \
    --cc=rui.zhang@intel.com \
    --cc=shaohua.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox