linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gyration remote - europe/QWERTZ version (GYAR3101CKDE)
@ 2010-08-09  6:39 Steffen Barszus
  0 siblings, 0 replies; 4+ messages in thread
From: Steffen Barszus @ 2010-08-09  6:39 UTC (permalink / raw)
  To: linux-input

Hi !

I have the european/german version of the gyration remote. The main
difference is that the keyboard is QWERTZ and the remote has a bit
different layout (4 Teletext color keys and a key to enable the
teletext, but no "My Media" Keys which i suppose are there on the US
version). 

The 5 Keys i could get working by adding them like that:

diff -Nru linux-2.6.32.y-d4e0f47/hid-gyration.c
linux-2.6.32.y-d4e0f47.new/hid-gyration.c ---
linux-2.6.32.y-d4e0f47/hid-gyration.c	2010-07-16
12:26:28.000000000 +0200 +++
linux-2.6.32.y-d4e0f47.new/hid-gyration.c	2010-07-16
12:39:24.154398189 +0200 @@ -43,6 +43,11 @@ case 0x048:
gy_map_key_clear(KEY_MEDIA);	break; case 0x049:
gy_map_key_clear(KEY_CAMERA);	break; case 0x04a:
gy_map_key_clear(KEY_VIDEO);	break;
+	case 0x05a: gy_map_key_clear(KEY_TEXT);		break;
+	case 0x05b: gy_map_key_clear(KEY_RED);		break;
+	case 0x05c: gy_map_key_clear(KEY_GREEN);	break;
+	case 0x05d: gy_map_key_clear(KEY_YELLOW);	break;
+	case 0x05e: gy_map_key_clear(KEY_BLUE);		break;
 
 	default:
 		return 0;


Please note, that i'm by no means a driver developer, and this is done
by copy&paste. Please let me know if i should verify something. Please
add the missing keys to the driver. 

lsusb -vv Output of the device:

Bus 003 Device 002: ID 0c16:0002 Gyration, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0c16 Gyration, Inc.
  idProduct          0x0002
  bcdDevice            2.20
  iManufacturer           1 Gyration
  iProduct                2 Gyration RF Technology Receiver
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 USB Receiver
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     149
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.20
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     154
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gyration remote - europe/QWERTZ version (GYAR3101CKDE)
       [not found] ` <AANLkTin4bsd4SAfy35SzaEMR-S+moALGcNMfzttmJQ6U@mail.gmail.com>
@ 2010-08-20  9:12   ` Jiri Kosina
  2010-09-13  6:22     ` Steffen Barszus
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2010-08-20  9:12 UTC (permalink / raw)
  To: Steffen Barszus; +Cc: linux-input

On Thu, 19 Aug 2010, Steffen Barszus wrote:

> Any chance someone can have a look or is something missing ? Is this the wrong place ? Or just bad timing because of the
> merge window ? Would love to see this incorporated.

Hi,

I haven't been CCed on your original mail, was I?

Anyway, would you be able to send the patch properly to me, so that I 
could apply it? (i.e. not line-wrapped and whitespace damaged, with proper 
Signed-off-by line, etc -- see Documentation/SubmittingPatches if in 
doubt).

Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gyration remote - europe/QWERTZ version (GYAR3101CKDE)
  2010-08-20  9:12   ` Jiri Kosina
@ 2010-09-13  6:22     ` Steffen Barszus
  2010-09-21 14:19       ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Steffen Barszus @ 2010-09-13  6:22 UTC (permalink / raw)
  To: linux-input; +Cc: Jiri Kosina

On Fri, 20 Aug 2010 11:12:18 +0200 (CEST)
Jiri Kosina <jkosina@suse.cz> wrote:

> On Thu, 19 Aug 2010, Steffen Barszus wrote:
> 
> > Any chance someone can have a look or is something missing ? Is
> > this the wrong place ? Or just bad timing because of the merge
> > window ? Would love to see this incorporated.
> 
> Hi,
> 
> I haven't been CCed on your original mail, was I?

No

> Anyway, would you be able to send the patch properly to me, so that I 
> could apply it? (i.e. not line-wrapped and whitespace damaged, with
> proper Signed-off-by line, etc -- see Documentation/SubmittingPatches
> if in doubt).

Hope this time its correct. Please let me know if you miss something.

> Thanks,
> 

Signed-off-by: Steffen Barszus <steffenbpunkt[AT]googlemail[DOT]com>
--- linux-2.6/drivers/hid/hid-gyration.c.orig	2010-09-13 08:16:36.353369149 +0200
+++ linux-2.6/drivers/hid/hid-gyration.c	2010-09-13 08:17:56.629965460 +0200
@@ -43,6 +43,11 @@ static int gyration_input_mapping(struct
 	case 0x048: gy_map_key_clear(KEY_MEDIA);	break;
 	case 0x049: gy_map_key_clear(KEY_CAMERA);	break;
 	case 0x04a: gy_map_key_clear(KEY_VIDEO);	break;
+	case 0x05a: gy_map_key_clear(KEY_TEXT);		break;
+	case 0x05b: gy_map_key_clear(KEY_RED);		break;
+	case 0x05c: gy_map_key_clear(KEY_GREEN);	break;
+	case 0x05d: gy_map_key_clear(KEY_YELLOW);	break;
+	case 0x05e: gy_map_key_clear(KEY_BLUE);		break;
 
 	default:
 		return 0;


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gyration remote - europe/QWERTZ version (GYAR3101CKDE)
  2010-09-13  6:22     ` Steffen Barszus
@ 2010-09-21 14:19       ` Jiri Kosina
  0 siblings, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2010-09-21 14:19 UTC (permalink / raw)
  To: Steffen Barszus; +Cc: linux-input

On Mon, 13 Sep 2010, Steffen Barszus wrote:

> > I haven't been CCed on your original mail, was I?
> 
> No
> 
> > Anyway, would you be able to send the patch properly to me, so that I 
> > could apply it? (i.e. not line-wrapped and whitespace damaged, with
> > proper Signed-off-by line, etc -- see Documentation/SubmittingPatches
> > if in doubt).
> 
> Hope this time its correct. Please let me know if you miss something.
> 
> > Thanks,
> > 
> 
> Signed-off-by: Steffen Barszus <steffenbpunkt[AT]googlemail[DOT]com>
> --- linux-2.6/drivers/hid/hid-gyration.c.orig	2010-09-13 08:16:36.353369149 +0200
> +++ linux-2.6/drivers/hid/hid-gyration.c	2010-09-13 08:17:56.629965460 +0200
> @@ -43,6 +43,11 @@ static int gyration_input_mapping(struct
>  	case 0x048: gy_map_key_clear(KEY_MEDIA);	break;
>  	case 0x049: gy_map_key_clear(KEY_CAMERA);	break;
>  	case 0x04a: gy_map_key_clear(KEY_VIDEO);	break;
> +	case 0x05a: gy_map_key_clear(KEY_TEXT);		break;
> +	case 0x05b: gy_map_key_clear(KEY_RED);		break;
> +	case 0x05c: gy_map_key_clear(KEY_GREEN);	break;
> +	case 0x05d: gy_map_key_clear(KEY_YELLOW);	break;
> +	case 0x05e: gy_map_key_clear(KEY_BLUE);		break;
>  
>  	default:
>  		return 0;

Almost there :) Please also include changelog (short description of what 
the patch does, which device contains these keys, etc) together with the 
actual patch, so that I could apply it.

Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-21 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09  6:39 gyration remote - europe/QWERTZ version (GYAR3101CKDE) Steffen Barszus
     [not found] <20100809083831.76426571@grobi>
     [not found] ` <AANLkTin4bsd4SAfy35SzaEMR-S+moALGcNMfzttmJQ6U@mail.gmail.com>
2010-08-20  9:12   ` Jiri Kosina
2010-09-13  6:22     ` Steffen Barszus
2010-09-21 14:19       ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).