Hello, I've attached the patch that makes all keys on the Logitech UltraX Media Remote work nicely. I will verify that the previous patch correctly assigns the channel keys in the consumer page, however, I cannot give props to the mapping of props (sorry). 0x209 on this remote says "Info/EPG", but it has been assigned to KEY_PROPS. Maybe I'm just not understanding the meaning of "props." This patch does reassign KEY_INFO to 0x209 in the consumer page; it that was the wrong thing to do, I'll resubmit.
I used my best judgement when assigning keys, since the text on the device does not always match up with a key defined in input.h. Here is a list of the potentially ambiguous or incorrect mappings: Start->KEY_RED Pictures->KEY_MEDIA DVD Menu->KEY_MENU SAP->KEY_AUDIO Repeat->KEY_AGAIN CC/Teletext->KEY_SUBTITLE Music->KEY_MP3 Allow me to justify the silly ones. The start key is big and red, Google told me SAP stands for "Secondary Audio Program", and there is no key close to pictures/graphics/image. On Tue, 2005-05-07 at 11:04 +0200, Vojtech Pavlik wrote: [really big snip] > > Please try with this patch: > [another snip] The patch failed on account of HID_UP_LOGIVENDOR not being defined. I fixed two hunks manually, so it should work fine with your tree, Vojtech. Thanks again for all your help. Please keep me posted if something is wrong. -- Micah F. Galizia [EMAIL PROTECTED] "The mark of an immature man is that he wants to die nobly for a cause, while the mark of the mature man is that he wants to live humbly for one." --W. Stekel
--- gitandhidpatches/drivers/usb/input/hid-input.c 2005-07-05 18:29:32.726219000 -0400
+++ micah/drivers/usb/input/hid-input.c 2005-07-05 18:42:15.489888750 -0400
@@ -237,6 +237,7 @@
case 0x000: goto ignore;
case 0x034: map_key_clear(KEY_SLEEP); break;
case 0x036: map_key_clear(BTN_MISC); break;
+ case 0x045: map_key_clear(KEY_RADIO); break;
case 0x08a: map_key_clear(KEY_WWW); break;
case 0x08d: map_key_clear(KEY_PROGRAM); break;
case 0x095: map_key_clear(KEY_HELP); break;
@@ -265,7 +266,7 @@
case 0x201: map_key_clear(KEY_NEW); break;
case 0x207: map_key_clear(KEY_SAVE); break;
case 0x208: map_key_clear(KEY_PRINT); break;
- case 0x209: map_key_clear(KEY_PROPS); break;
+ case 0x209: map_key_clear(KEY_INFO); break;
case 0x21a: map_key_clear(KEY_UNDO); break;
case 0x21b: map_key_clear(KEY_COPY); break;
case 0x21c: map_key_clear(KEY_CUT); break;
@@ -309,9 +310,27 @@
case HID_UP_MSVENDOR:
case HID_UP_LOGIVENDOR:
case HID_UP_LOGIVENDOR2:
-
- goto ignore;
-
+ switch(usage->hid & HID_USAGE) {
+ case 0x004: map_key_clear(KEY_AGAIN); break;
+ case 0x00d: map_key_clear(KEY_HOME); break;
+ case 0x024: map_key_clear(KEY_SHUFFLE); break;
+ case 0x025: map_key_clear(KEY_TV); break;
+ case 0x026: map_key_clear(KEY_MENU); break;
+ case 0x031: map_key_clear(KEY_AUDIO); break;
+ case 0x032: map_key_clear(KEY_SUBTITLE); break;
+ case 0x033: map_key_clear(KEY_LAST); break;
+ case 0x047: map_key_clear(KEY_MP3); break;
+ case 0x048: map_key_clear(KEY_DVD); break;
+ case 0x049: map_key_clear(KEY_MEDIA); break;
+ case 0x04a: map_key_clear(KEY_VIDEO); break;
+ case 0x04b: map_key_clear(KEY_ANGLE); break;
+ case 0x04c: map_key_clear(KEY_LANGUAGE); break;
+ case 0x04d: map_key_clear(KEY_SUBTITLE); break;
+ case 0x051: map_key_clear(KEY_RED); break;
+ case 0x052: map_key_clear(KEY_CLOSE); break;
+ default: goto ignore;
+ }
+ break;
case HID_UP_PID:
set_bit(EV_FF, input->evbit);
signature.asc
Description: This is a digitally signed message part
