diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2008-01-08 10:02:41 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-01 22:26:06 -0500 |
commit | 01e88f25985d8ea5866c9a73d56b3a9a9145066f (patch) | |
tree | db5869b85a28a0bf86e8427f54d4b2cd0a597126 /drivers/misc/Kconfig | |
parent | b7c8c200bfbf523ea0a72fd8a5e39089c74da371 (diff) |
ACPI: thinkpad-acpi: add CMOS NVRAM polling for hot keys (v9)
Older ThinkPad models do not export some of the hot keys over the
event-based ACPI hot key interface. For these models, one has to poll
the CMOS NVRAM to check the key state at a rate faster than the expected
rate at which the user might repeatedly press the same hot key.
This patch implements this functionality for many of the hotkeys in a
transparent way: hot keys will now Just Work, and the driver knows the
best approach (events or NVRAM polling) to employ, based on the
HKEY.MHKA ACPI method.
Also, the driver can turn off the polling when there are no users for
the hot keys that need such polling.
The NVRAM-based hot keys of the A3x series that have never been
implemented by later models are not supported, to avoid changes in the
keymap of the input devices that could cause headaches in the future.
There is a Kconfig option to avoid compiling the NVRAM polling code, as
it is not very small, and unlikely to be useful on any ThinkPad newer
than a T40, X31 or R52.
This feature is based on a previous effort by Richard Hughes.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Richard Hughes <hughsient@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r-- | drivers/misc/Kconfig | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index b5e67c0ff433..b1f9a405c822 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -219,6 +219,25 @@ config THINKPAD_ACPI_BAY | |||
219 | 219 | ||
220 | If you are not sure, say Y here. | 220 | If you are not sure, say Y here. |
221 | 221 | ||
222 | config THINKPAD_ACPI_HOTKEY_POLL | ||
223 | bool "Suport NVRAM polling for hot keys" | ||
224 | depends on THINKPAD_ACPI | ||
225 | default y | ||
226 | ---help--- | ||
227 | Some thinkpad models benefit from NVRAM polling to detect a few of | ||
228 | the hot key press events. If you know your ThinkPad model does not | ||
229 | need to do NVRAM polling to support any of the hot keys you use, | ||
230 | unselecting this option will save about 1kB of memory. | ||
231 | |||
232 | ThinkPads T40 and newer, R52 and newer, and X31 and newer are | ||
233 | unlikely to need NVRAM polling in their latest BIOS versions. | ||
234 | |||
235 | NVRAM polling can detect at most the following keys: ThinkPad/Access | ||
236 | IBM, Zoom, Switch Display (fn+F7), ThinkLight, Volume up/down/mute, | ||
237 | Brightness up/down, Display Expand (fn+F8), Hibernate (fn+F12). | ||
238 | |||
239 | If you are not sure, say Y here. The driver enables polling only if | ||
240 | it is strictly necessary to do so. | ||
222 | 241 | ||
223 | config ATMEL_SSC | 242 | config ATMEL_SSC |
224 | tristate "Device driver for Atmel SSC peripheral" | 243 | tristate "Device driver for Atmel SSC peripheral" |