Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control - Kernel

This is a discussion on Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control - Kernel ; Jiri & all, What's the status on this bug? I used this patch for 2.6.24: diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 0b27da7..fc6e77e 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -802,6 +802,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case HID_UP_LOGIVENDOR: set_bit(EV_REP, ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

  1. Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    Jiri & all,

    What's the status on this bug?

    I used this patch for 2.6.24:

    diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
    index 0b27da7..fc6e77e 100644
    --- a/drivers/hid/hid-input.c
    +++ b/drivers/hid/hid-input.c
    @@ -802,6 +802,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
    case HID_UP_LOGIVENDOR:
    set_bit(EV_REP, input->evbit);
    switch(usage->hid & HID_USAGE) {
    + case 0x000: map_key_clear(KEY_TV);
    /* Reported on Logitech Ultra X Media Remote */
    case 0x004: map_key_clear(KEY_AGAIN); break;
    case 0x00d: map_key_clear(KEY_HOME); break;
    @@ -1039,6 +1040,28 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
    return;
    }

    + /* "Sleep" key */
    + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    + ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK) &&
    + ((usage->hid & 0xf0) == 0x80) &&
    + ((usage->hid & 0xf) == 0x2)) {
    + input_event(input, usage->type, usage->code, 1);
    + input_sync(input);
    + input_event(input, usage->type, usage->code, 0);
    + input_sync(input);
    + return;
    + }
    + /* "TV" key */
    + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    + ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) &&
    + ((usage->hid & HID_USAGE) == 0x0000)) {
    + input_event(input, usage->type, usage->code, 1);
    + input_sync(input);
    + input_event(input, usage->type, usage->code, 0);
    + input_sync(input);
    + return;
    + }
    +
    /* Handling MS keyboards special buttons */
    if (IS_MS_KB(hid) && usage->hid == (HID_UP_MSVENDOR | 0xff05)) {
    int key = 0;


    It was working fine.

    With 2.6.25.6, I've been trying to use the following patch. It's a
    slight modification of a patch posted previously by Jiri.

    diff -ru vanilla.orig/drivers/hid/hid-input-quirks.c vanilla/drivers/hid/hid-input-quirks.c
    --- vanilla.orig/drivers/hid/hid-input-quirks.c 2008-04-16 19:49:44.000000000 -0700
    +++ vanilla/drivers/hid/hid-input-quirks.c 2008-06-09 14:47:01.000000000 -0700
    @@ -418,6 +418,27 @@
    input_event(input, usage->type, REL_WHEEL, -value);
    return 1;
    }
    + /* "Sleep" key */
    + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    + (usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK &&
    + (usage->hid & 0xf0) == 0x80 &&
    + (usage->hid & 0xf) == 0x2) {
    + input_event(input, usage->type, usage->code, 1);
    + input_sync(input);
    + input_event(input, usage->type, usage->code, 0);
    + input_sync(input);
    + return 0;
    + }
    + /* "TV" key */
    + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    + (usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR &&
    + (usage->hid & HID_USAGE) == 0x0000) {
    + input_event(input, usage->type, usage->code, 1);
    + input_sync(input);
    + input_event(input, usage->type, usage->code, 0);
    + input_sync(input);
    + return 0;
    + }
    return 0;
    }

    diff -ru vanilla.orig/drivers/hid/hid-input.c vanilla/drivers/hid/hid-input.c
    --- vanilla.orig/drivers/hid/hid-input.c 2008-04-16 19:49:44.000000000 -0700
    +++ vanilla/drivers/hid/hid-input.c 2008-06-09 14:49:43.000000000 -0700
    @@ -724,7 +724,12 @@

    case HID_UP_LOGIVENDOR:

    - goto ignore;
    + set_bit(EV_REP, input->evbit);
    + switch(usage->hid & HID_USAGE) {
    + case 0x027: map_key_clear(KEY_TV); break;
    + default: goto ignore;
    + };
    + break;

    case HID_UP_PID:


    However this patch does not seem to work at all:

    * the Power button keeps repeating the power key once pressed

    * the home (windows MCE green button) and the four keys below it
    (shortcuts to movies, music, photos, tv) do not work.

    Is there anything I can help with to get a working patch?

    Thanks,
    Phil.
    --
    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: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    On Mon, 16 Jun 2008, Philippe Troin wrote:

    > Jiri & all,
    > What's the status on this bug?
    > I used this patch for 2.6.24:
    > diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
    > index 0b27da7..fc6e77e 100644
    > --- a/drivers/hid/hid-input.c
    > +++ b/drivers/hid/hid-input.c
    > @@ -802,6 +802,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
    > case HID_UP_LOGIVENDOR:
    > set_bit(EV_REP, input->evbit);
    > switch(usage->hid & HID_USAGE) {
    > + case 0x000: map_key_clear(KEY_TV);
    > /* Reported on Logitech Ultra X Media Remote */
    > case 0x004: map_key_clear(KEY_AGAIN); break;
    > case 0x00d: map_key_clear(KEY_HOME); break;
    > @@ -1039,6 +1040,28 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
    > return;
    > }
    >
    > + /* "Sleep" key */
    > + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    > + ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK) &&
    > + ((usage->hid & 0xf0) == 0x80) &&
    > + ((usage->hid & 0xf) == 0x2)) {
    > + input_event(input, usage->type, usage->code, 1);
    > + input_sync(input);
    > + input_event(input, usage->type, usage->code, 0);
    > + input_sync(input);
    > + return;
    > + }
    > + /* "TV" key */
    > + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    > + ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) &&
    > + ((usage->hid & HID_USAGE) == 0x0000)) {
    > + input_event(input, usage->type, usage->code, 1);
    > + input_sync(input);
    > + input_event(input, usage->type, usage->code, 0);
    > + input_sync(input);
    > + return;
    > + }
    > +
    > /* Handling MS keyboards special buttons */
    > if (IS_MS_KB(hid) && usage->hid == (HID_UP_MSVENDOR | 0xff05)) {
    > int key = 0;
    > It was working fine.


    Hi,

    The patch didn't add complete support for this device, there still has
    been problem with "TV" key, and I have asked Adolfo to perform a test with
    debugging patch, but there seems to be no response so far [1]

    Adolfo (added to CC), has there been any progress, so that we could
    proceed with merging the patch adding proper support for this HW?

    Thanks,

    [1]

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

  3. Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    Jiri Kosina writes:

    > On Mon, 16 Jun 2008, Philippe Troin wrote:
    >
    > > Jiri & all,
    > > What's the status on this bug?
    > > I used this patch for 2.6.24:
    > > diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
    > > index 0b27da7..fc6e77e 100644
    > > --- a/drivers/hid/hid-input.c
    > > +++ b/drivers/hid/hid-input.c
    > > @@ -802,6 +802,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
    > > case HID_UP_LOGIVENDOR:
    > > set_bit(EV_REP, input->evbit);
    > > switch(usage->hid & HID_USAGE) {
    > > + case 0x000: map_key_clear(KEY_TV);
    > > /* Reported on Logitech Ultra X Media Remote */
    > > case 0x004: map_key_clear(KEY_AGAIN); break;
    > > case 0x00d: map_key_clear(KEY_HOME); break;
    > > @@ -1039,6 +1040,28 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
    > > return;
    > > }
    > >
    > > + /* "Sleep" key */
    > > + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    > > + ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK) &&
    > > + ((usage->hid & 0xf0) == 0x80) &&
    > > + ((usage->hid & 0xf) == 0x2)) {
    > > + input_event(input, usage->type, usage->code, 1);
    > > + input_sync(input);
    > > + input_event(input, usage->type, usage->code, 0);
    > > + input_sync(input);
    > > + return;
    > > + }
    > > + /* "TV" key */
    > > + if (hid->vendor == 0x0c16 && hid->product == 0x0002 &&
    > > + ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR) &&
    > > + ((usage->hid & HID_USAGE) == 0x0000)) {
    > > + input_event(input, usage->type, usage->code, 1);
    > > + input_sync(input);
    > > + input_event(input, usage->type, usage->code, 0);
    > > + input_sync(input);
    > > + return;
    > > + }
    > > +
    > > /* Handling MS keyboards special buttons */
    > > if (IS_MS_KB(hid) && usage->hid == (HID_UP_MSVENDOR | 0xff05)) {
    > > int key = 0;
    > > It was working fine.

    >
    > Hi,
    >
    > The patch didn't add complete support for this device, there still has
    > been problem with "TV" key, and I have asked Adolfo to perform a test with
    > debugging patch, but there seems to be no response so far [1]


    For me, as I mentionned, there are 6 keys not working with or without
    the patch (home, tv, photo, movies, music, and another key for which I
    do not have a description), in addition to the power key repeating for
    ever once pressed.

    > Adolfo (added to CC), has there been any progress, so that we could
    > proceed with merging the patch adding proper support for this HW?


    I could also help debugging/testing.

    Phil.
    --
    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/

  4. Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    On Mon, 16 Jun 2008, Philippe Troin wrote:

    > However this patch does not seem to work at all:
    > * the Power button keeps repeating the power key once pressed
    >
    > * the home (windows MCE green button) and the four keys below it
    > (shortcuts to movies, music, photos, tv) do not work.
    >
    > Is there anything I can help with to get a working patch?


    Please compile your kernel with 'CONFIG_HID_DEBUG', modprobe the 'hid'
    module with 'debug=2' parameter, and send me the output that appears is
    dmesg output when you press the non-working keys.

    Thanks,

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

  5. Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    Jiri Kosina writes:

    > Please compile your kernel with 'CONFIG_HID_DEBUG', modprobe the 'hid'
    > module with 'debug=2' parameter, and send me the output that appears is
    > dmesg output when you press the non-working keys.


    debug=2 didn't work. dmesg said:

    hid: `2' invalid for parameter debug.

    With debug=1, I get the following output.

    But first, info:

    kernel 2.6.25.6 - no extra patches

    /proc/bus/usb/devices

    T: Bus=05 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
    D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
    P: Vendor=0c16 ProdID=0002 Rev= 2.20
    S: Manufacturer=Gyration
    S: Product=Gyration RF Technology Receiver
    C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
    I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=(none)
    E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
    I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=(none)
    E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms

    There are 6 six keys which do not work at all:

    * "MCE Home key - green button"

    First time pressed:

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00

    Second and subsequent times pressed:

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 0d 00
    hid-debug: input ffbc.000d = 1
    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00
    hid-debug: input ffbc.000d = 0

    * "Pictures" shortcut button

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 49 00
    hid-debug: input ffbc.0049 = 1
    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00
    hid-debug: input ffbc.0049 = 0

    * "TV" shortcut button

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 46 00
    hid-debug: input ffbc.0046 = 1
    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00
    hid-debug: input ffbc.0046 = 0

    * "Music" shortcut button

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 47 00
    hid-debug: input ffbc.0047 = 1
    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00
    hid-debug: input ffbc.0047 = 0

    * "Movies" shortcut button

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 4a 00
    hid-debug: input ffbc.004a = 1
    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00
    hid-debug: input ffbc.004a = 0

    * "Live TV" button

    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 25 00
    hid-debug: input ffbc.0025 = 1
    drivers/hid/hid-core.c: report (size 3) (numbered)
    drivers/hid/hid-core.c: report 6 (size 2) = 00 00
    hid-debug: input ffbc.0025 = 0


    Also, the "Power" button keeps repeating once pressed:

    drivers/hid/hid-core.c: report (size 2) (numbered)
    drivers/hid/hid-core.c: report 3 (size 1) = 82
    hid-debug: input GenericDesktop.SystemPowerDown = 0
    hid-debug: input GenericDesktop.SystemSleep = 1
    hid-debug: input GenericDesktop.SystemWakeUp = 0


    There you are.
    Let me know if there is anything else I can do.

    Phil.
    --
    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/

  6. Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    For the record, the enclosed patch makes the remote work for me.

    Phil.

    X-From-Line: dwalker@dwalker1.mvista.com Tue Jul 1 09:24:49 2008
    Return-Path:
    Received: from dwalker1.mvista.com (gateway-1237.mvista.com [63.81.120.158])
    by old-tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id JAA14827
    for ; Tue, 1 Jul 2008 09:24:48 -0700
    X-Authentication-Warning: old-tantale.fifi.org: Host gateway-1237.mvista.com [63.81.120.158] claimed to be dwalker1.mvista.com
    Received: from dwalker1.mvista.com (localhost.localdomain [127.0.0.1])
    by dwalker1.mvista.com (8.14.1/8.14.1) with ESMTP id m61GOC0O014533;
    Tue, 1 Jul 2008 09:24:12 -0700
    Received: (from dwalker@localhost)
    by dwalker1.mvista.com (8.14.1/8.14.1/Submit) id m61GOBx4014532;
    Tue, 1 Jul 2008 09:24:11 -0700
    From: Daniel Walker
    To: Jiri Kosina
    Cc: Philippe Troin , "Adolfo R. Brandes" ,
    linux-input@vger.kernel.org
    Subject: [PATCH] hid: gyration remote support
    Date: Tue, 1 Jul 2008 09:24:11 -0700
    X-Gnus-Mail-Source: directory:~/priv/gnus/procmail
    Message-Id: <1214929451-14515-1-git-send-email-dwalker@mvista.com>
    X-Mailer: git-send-email 1.5.5.1.1.g0dfaf8
    Lines: 67

    This adds in a quirk for the additional un-mapped buttons on the
    gyration MCE remote.

    Defines are now alphabetical.

    Signed-off-by: Daniel Walker
    ---
    drivers/hid/hid-input-quirks.c | 28 ++++++++++++++++++++++++++++
    1 files changed, 28 insertions(+), 0 deletions(-)

    diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
    index 4c2052c..e6a937a 100644
    --- a/drivers/hid/hid-input-quirks.c
    +++ b/drivers/hid/hid-input-quirks.c
    @@ -89,6 +89,29 @@ static int quirk_logitech_ultrax_remote(struct hid_usage *usage, struct input_de
    return 1;
    }

    +static int quirk_gyration_remote(struct hid_usage *usage, struct input_dev *input,
    + unsigned long **bit, int *max)
    +{
    + if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR)
    + return 0;
    +
    + set_bit(EV_REP, input->evbit);
    + switch(usage->hid & HID_USAGE) {
    + /* Reported on Gyration MCE Remote */
    + case 0x00d: map_key_clear(KEY_HOME); break;
    + case 0x024: map_key_clear(KEY_DVD); break;
    + case 0x025: map_key_clear(KEY_PVR); break;
    + case 0x046: map_key_clear(KEY_MEDIA); break;
    + case 0x047: map_key_clear(KEY_MP3); break;
    + case 0x049: map_key_clear(KEY_CAMERA); break;
    + case 0x04a: map_key_clear(KEY_VIDEO); break;
    +
    + default:
    + return 0;
    + }
    + return 1;
    +}
    +
    static int quirk_chicony_tactical_pad(struct hid_usage *usage, struct input_dev *input,
    unsigned long **bit, int *max)
    {
    @@ -303,6 +326,9 @@ static int quirk_sunplus_wdesktop(struct hid_usage *usage, struct input_dev *inp
    #define VENDOR_ID_EZKEY 0x0518
    #define DEVICE_ID_BTC_8193 0x0002

    +#define VENDOR_ID_GYRATION 0x0c16
    +#define DEVICE_ID_GYRATION_REMOTE 0x0002
    +
    #define VENDOR_ID_LOGITECH 0x046d
    #define DEVICE_ID_LOGITECH_RECEIVER 0xc101
    #define DEVICE_ID_S510_RECEIVER 0xc50c
    @@ -337,6 +363,8 @@ static const struct hid_input_blacklist {

    { VENDOR_ID_EZKEY, DEVICE_ID_BTC_8193, quirk_btc_8193 },

    + { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote },
    +
    { VENDOR_ID_LOGITECH, DEVICE_ID_LOGITECH_RECEIVER, quirk_logitech_ultrax_remote },
    { VENDOR_ID_LOGITECH, DEVICE_ID_S510_RECEIVER, quirk_logitech_wireless },
    { VENDOR_ID_LOGITECH, DEVICE_ID_S510_RECEIVER_2, quirk_logitech_wireless },
    --
    1.5.5.1.1.g0dfaf8



    X-From-Line: dwalker@dwalker1.mvista.com Tue Jul 1 09:24:49 2008
    Return-Path:
    Received: from dwalker1.mvista.com (gateway-1237.mvista.com [63.81.120.158])
    by old-tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id JAA14828
    for ; Tue, 1 Jul 2008 09:24:48 -0700
    X-Authentication-Warning: old-tantale.fifi.org: Host gateway-1237.mvista.com [63.81.120.158] claimed to be dwalker1.mvista.com
    Received: from dwalker1.mvista.com (localhost.localdomain [127.0.0.1])
    by dwalker1.mvista.com (8.14.1/8.14.1) with ESMTP id m61GOCIU014537;
    Tue, 1 Jul 2008 09:24:12 -0700
    Received: (from dwalker@localhost)
    by dwalker1.mvista.com (8.14.1/8.14.1/Submit) id m61GOCEg014536;
    Tue, 1 Jul 2008 09:24:12 -0700
    From: Daniel Walker
    To: Jiri Kosina
    Cc: Philippe Troin , "Adolfo R. Brandes" ,
    linux-input@vger.kernel.org
    Subject: [PATCH] hid: gyration sleep button quirk
    Date: Tue, 1 Jul 2008 09:24:12 -0700
    X-Gnus-Mail-Source: directory:~/priv/gnus/procmail
    Message-Id: <1214929451-14515-2-git-send-email-dwalker@mvista.com>
    X-Mailer: git-send-email 1.5.5.1.1.g0dfaf8
    In-Reply-To: <1214929451-14515-1-git-send-email-dwalker@mvista.com>
    References: <1214929451-14515-1-git-send-email-dwalker@mvista.com>
    Lines: 34

    This patch is based on one provided by Jiri Kosina to handle the sleep
    button. I just added some cleanup and integrated it into my series.

    Signed-off-by: Daniel Walker
    ---
    drivers/hid/hid-input-quirks.c | 12 ++++++++++++
    1 files changed, 12 insertions(+), 0 deletions(-)

    diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
    index e6a937a..16feea0 100644
    --- a/drivers/hid/hid-input-quirks.c
    +++ b/drivers/hid/hid-input-quirks.c
    @@ -466,6 +466,18 @@ int hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struc
    input_event(input, usage->type, REL_WHEEL, -value);
    return 1;
    }
    +
    + /* Gyration MCE remote "Sleep" key */
    + if (hid->vendor == VENDOR_ID_GYRATION &&
    + hid->product == DEVICE_ID_GYRATION_REMOTE &&
    + (usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK &&
    + (usage->hid & 0xff) == 0x82) {
    + input_event(input, usage->type, usage->code, 1);
    + input_sync(input);
    + input_event(input, usage->type, usage->code, 0);
    + input_sync(input);
    + return 1;
    + }
    return 0;
    }

    --
    1.5.5.1.1.g0dfaf8


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

  7. Re: USB HID: Missing keys on Gyration Media Center Universal Remote Control

    On Thu, 31 Jul 2008, Philippe Troin wrote:

    > For the record, the enclosed patch makes the remote work for me.


    Hi Philippe,

    all the code needed to support this remote control should already be
    merged in Linus' tree.

    Thanks,

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