|
|
a8a466 |
CentOS-7 patch: Allow non-LogiTech remote to work with a generic wireless
|
|
|
a8a466 |
keyboard reciever that sends LogiTech scancodes.
|
|
|
a8a466 |
|
|
|
a8a466 |
CentOSplus bug: 0005780
|
|
|
a8a466 |
Submitted by: Alex Timm <alextimm@msn.com>
|
|
|
a8a466 |
|
|
|
a8a466 |
LIRCD and devinput driver connected to the HOLTEK USB Keyboard remote reciever,
|
|
|
a8a466 |
connected on /dev/input/eventx, was not reading the scancodes that should be
|
|
|
a8a466 |
found in drivers/hid/lg.c. The following patch adds the scan codes to
|
|
|
a8a466 |
hid-input.c as they were in centos/centosplus 5.
|
|
|
a8a466 |
|
|
|
a8a466 |
Applied by: Akemi Yagi <toracat@centos.org>
|
|
|
a8a466 |
|
|
|
a8a466 |
--- a/drivers/hid/hid-input.c 2009-12-02 21:51:21.000000000 -0600
|
|
|
a8a466 |
+++ b/drivers/hid/hid-input.c 2012-06-20 15:20:04.000000000 -0500
|
|
|
a8a466 |
@@ -886,7 +886,28 @@ static void hidinput_configure_usage(str
|
|
|
a8a466 |
goto ignore;
|
|
|
a8a466 |
|
|
|
a8a466 |
case HID_UP_LOGIVENDOR:
|
|
|
a8a466 |
- goto ignore;
|
|
|
a8a466 |
+ set_bit(EV_REP, input->evbit);
|
|
|
a8a466 |
+ switch(usage->hid & HID_USAGE) {
|
|
|
a8a466 |
+ case 0x004: map_key_clear(KEY_AGAIN); break;
|
|
|
a8a466 |
+ case 0x00d: map_key_clear(KEY_HOME); break;
|
|
|
a8a466 |
+ case 0x024: map_key_clear(KEY_SHUFFLE); break;
|
|
|
a8a466 |
+ case 0x025: map_key_clear(KEY_TV); break;
|
|
|
a8a466 |
+ case 0x026: map_key_clear(KEY_MENU); break;
|
|
|
a8a466 |
+ case 0x031: map_key_clear(KEY_AUDIO); break;
|
|
|
a8a466 |
+ case 0x032: map_key_clear(KEY_TEXT); break;
|
|
|
a8a466 |
+ case 0x033: map_key_clear(KEY_LAST); break;
|
|
|
a8a466 |
+ case 0x047: map_key_clear(KEY_MP3); break;
|
|
|
a8a466 |
+ case 0x048: map_key_clear(KEY_DVD); break;
|
|
|
a8a466 |
+ case 0x049: map_key_clear(KEY_MEDIA); break;
|
|
|
a8a466 |
+ case 0x04a: map_key_clear(KEY_VIDEO); break;
|
|
|
a8a466 |
+ case 0x04b: map_key_clear(KEY_ANGLE); break;
|
|
|
a8a466 |
+ case 0x04c: map_key_clear(KEY_LANGUAGE); break;
|
|
|
a8a466 |
+ case 0x04d: map_key_clear(KEY_SUBTITLE); break;
|
|
|
a8a466 |
+ case 0x051: map_key_clear(KEY_RED); break;
|
|
|
a8a466 |
+ case 0x052: map_key_clear(KEY_CLOSE); break;
|
|
|
a8a466 |
+ default: goto ignore;
|
|
|
a8a466 |
+ }
|
|
|
a8a466 |
+ break;
|
|
|
a8a466 |
|
|
|
a8a466 |
case HID_UP_PID:
|
|
|
a8a466 |
switch (usage->hid & HID_USAGE) {
|