From: John Belmonte <john-wanGne27zNesTnJN9+BGXg@public.gmane.org>
To: "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: generic hotkey driver
Date: Tue, 07 Sep 2004 09:13:33 -0400 [thread overview]
Message-ID: <413DB3FD.80209@neggie.net> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F84056B5783@pdsmsx403>
Yu, Luming wrote:
>>> a. Configure interface:
>>> 1. register mapping of event number to internal hotkey number.
>>> 2. register expected acpi_handle which is needed to install
>>>notify handler, which will generate event for acpid.
>>> 3. register the AML methods that should be executed , with
>>>respect to the hotkey get pressed.
>>
>>As far as I know, there is no hotkey event available in
>>Toshiba's case.
>> The only way to monitor the keys is by polling.
>
> Hmm. It's not efficient way for hotkey.
> I'm curious what's the polling frequency.
I don't poll within the kernel-- I leave that issue to userspace. The
hotkeys are queued, and I've found a period of .2s to be more than adequate.
> I guess I can slightly modify the configure interface to
> add a polling register interface. To keep other parts of
> interfaces unchanged, just need to generate corresponding
> pseudo event for each active event found by polling.
>
> Does it make sense?
If you want to provide hotkey events to userspace, I guess there is no
other choice.
-John
--
http://giftfile.org/ :: giftfile project
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
next prev parent reply other threads:[~2004-09-07 13:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 7:54 generic hotkey driver Yu, Luming
2004-09-07 13:13 ` John Belmonte [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-09-08 15:42 Yu, Luming
2004-09-07 8:14 Yu, Luming
2004-09-07 8:49 ` Karol Kozimor
2004-09-14 20:42 ` Pavel Machek
2004-09-01 10:32 Yu, Luming
2004-09-03 11:16 ` Hiroshi Miura
2004-09-04 8:45 ` John Belmonte
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=413DB3FD.80209@neggie.net \
--to=john-wangne27znestnjn9+bgxg@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/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