Re: generic hotkey driver

John Belmonte
2004-09-07T13:13:33Z

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.