[PATCH] hid: apple_fn_keys F5 and F6 - Kernel

This is a discussion on [PATCH] hid: apple_fn_keys F5 and F6 - Kernel ; From: Henrik Rydberg 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. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] hid: apple_fn_keys F5 and F6

  1. [PATCH] hid: apple_fn_keys F5 and F6

    From: Henrik Rydberg

    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
    ---

    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 */
    { 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 },

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] hid: apple_fn_keys F5 and F6

    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
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread