summaryrefslogtreecommitdiff
path: root/kernel/latency.c
diff options
context:
space:
mode:
authorAndrew McNabb <amcnabb@mcnabbs.org>2007-10-11 00:49:43 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2007-10-11 00:49:43 -0400
commit9a402b649d9c4f5ac17c1368702c9f51219c484b (patch)
tree1bb2bb24b5999db44eb2e1ecd898f3f633a594fe /kernel/latency.c
parentf493018ebc3f94d64e12bc848db0906700bf73a2 (diff)
Input: adbhid - produce all CapsLock key events
The ADB keyboard, which is used for Apple PowerBooks, has strange behavior with regard to the capslock key. It keeps track of capslock state internally, and it sends a keycode when capslock is engaged and a keycode when capslock is disengaged. When the current adbhid driver sees that the capslock key is pressed or released, it creates both a keypress event and a keyrelease event simultaneously. This results in normal capslock behavior. While this works, it makes it impossible to remap the capslock key to be a control key. However, by translating the 0xff keycode into capslock keycodes, we can restore the missing capslock events and make it possible to remap the capslock key. With this patch, the adbhid driver will translate these 0xff keycodes into capslock keypresses and keyreleases if /sys/module/adbhid/parameters/restore_capslock_events is set to 1. Otherwise it will retain the current behavior. This option is off by default because occasionally the 0xff keycode is not a capslock event, and a mistake may require the user to tap the capslock key. [akpm@linux-foundation.org: cleanups] Signed-off-by: Andrew McNabb <amcnabb@mcnabbs.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'kernel/latency.c')
0 files changed, 0 insertions, 0 deletions