Skip to contentSkip to conversation

hid: apple_fn_keys F5 and F6

PATCH Applied Henrik Rydberg 2 participants 2 messages Jul 13, 2008 – Jul 22, 2008 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hid: apple_fn_keys F5 and F6

From: Henrik Rydberg <[email protected]>

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.

---

This patch is against the linux-next tree: v2.6.26-rc9-7639-g60392c2

drivers/hid/hid-input.c +2 -0
index 0ef778a..1b2e8dc 100644
@@ -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 },
Applied
#1 lore raw
Quoted 1 line · Henrik Rydberg

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.

Signature · 2 lines
Jiri Kosina
SUSE Labs