* [PATCH] hid: apple_fn_keys F5 and F6
@ 2008-07-13 16:12 Henrik Rydberg
2008-07-22 13:18 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Henrik Rydberg @ 2008-07-13 16:12 UTC (permalink / raw)
To: linux-input, linux-kernel, dmitry.torokhov, robfitz, akpm, jikos,
vojtech, dmonakhov
From: Henrik Rydberg <rydberg@euromail.se>
In drivers/hid/hid-input.c, the apple_fn_keys translation table
contains no entries for the F5 and F6 keys. This patch maps the F5 and
F6 keys to KBDILLUMDOWN and KBDILLUMUP, respektively, which make them
work as keyboard backlight control keys.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
---
This patch is against the linux-next tree: v2.6.26-rc9-7639-g60392c2
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 0ef778a..1b2e8dc 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -100,6 +100,8 @@ static struct hidinput_key_translation apple_fn_keys[] = {
{ KEY_F2, KEY_BRIGHTNESSUP, APPLE_FLAG_FKEY },
{ KEY_F3, KEY_FN_F5, APPLE_FLAG_FKEY }, /* Expos<E9> */
{ KEY_F4, KEY_FN_F4, APPLE_FLAG_FKEY }, /* Dashboard */
+ { KEY_F5, KEY_KBDILLUMDOWN, APPLE_FLAG_FKEY },
+ { KEY_F6, KEY_KBDILLUMUP, APPLE_FLAG_FKEY },
{ KEY_F7, KEY_PREVIOUSSONG, APPLE_FLAG_FKEY },
{ KEY_F8, KEY_PLAYPAUSE, APPLE_FLAG_FKEY },
{ KEY_F9, KEY_NEXTSONG, APPLE_FLAG_FKEY },
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] hid: apple_fn_keys F5 and F6
2008-07-13 16:12 [PATCH] hid: apple_fn_keys F5 and F6 Henrik Rydberg
@ 2008-07-22 13:18 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2008-07-22 13:18 UTC (permalink / raw)
To: Henrik Rydberg
Cc: linux-input, linux-kernel, Dmitry Torokhov, robfitz, akpm,
Vojtech Pavlik, dmonakhov
On Sun, 13 Jul 2008, Henrik Rydberg wrote:
> This patch maps the F5 and F6 keys to KBDILLUMDOWN and KBDILLUMUP,
> respektively, which make them work as keyboard backlight control keys.
Applied, thanks a lot Henrik.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-22 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-13 16:12 [PATCH] hid: apple_fn_keys F5 and F6 Henrik Rydberg
2008-07-22 13:18 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox