fedoraproject@6speed.de / rpms / kernel

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