8
« on: December 30, 2017, 15:36:01 »
Sorry das ich altes Thema hoch hole.
Leider funktioniert der Hama MCE Empfänger seit MLD5.3 nicht mehr richtig auf x86 Systemen (bei Tastenkombinationen von alt+meta+KEY_ENTER usw.. kommt nur die letzte Taste bei IRW raus), auf RPI 2 Systemen funktioniert es aber normal.
Im Anhang vergleiche von x86 und RPI bei beiden System wurde jeweils nur die "grüne" Menü Taste gedrückt und müsste alt+meta+KEY_ENTER ergeben.
Beide Systeme sind auf MLD5.4 unstable
x86
MLD> udevadm monitor --kernel --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[485.166625] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6 (usb)
KERNEL[485.167343] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0 (usb)
UDEV [485.167438] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6 (usb)
UDEV [485.167855] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0 (usb)
KERNEL[485.174827] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005 (hid)
KERNEL[485.174936] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15 (input)
UDEV [485.175516] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005 (hid)
UDEV [485.176181] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15 (input)
KERNEL[485.226130] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::numlock (leds)
KERNEL[485.226160] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::numlock (leds)
KERNEL[485.226174] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::capslock (leds)
KERNEL[485.226188] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::capslock (leds)
KERNEL[485.226197] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::scrolllock (leds)
KERNEL[485.226208] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::scrolllock (leds)
KERNEL[485.226405] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/event2 (input)
KERNEL[485.226427] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/hidraw/hidraw0 (hidraw)
KERNEL[485.226448] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005 (hid)
KERNEL[485.226467] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0 (usb)
KERNEL[485.226485] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1 (usb)
UDEV [485.227117] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::numlock (leds)
UDEV [485.227583] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::numlock (leds)
UDEV [485.228034] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/hidraw/hidraw0 (hidraw)
UDEV [485.228506] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::scrolllock (leds)
UDEV [485.228888] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::scrolllock (leds)
UDEV [485.229445] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::capslock (leds)
UDEV [485.229562] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1 (usb)
UDEV [485.229856] change /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/input15::capslock (leds)
UDEV [485.243658] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005/input/input15/event2 (input)
UDEV [485.244344] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/0003:05A4:9881.0005 (hid)
UDEV [485.244660] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0 (usb)
KERNEL[485.248415] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006 (hid)
KERNEL[485.248744] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/input/input17 (input)
UDEV [485.249097] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006 (hid)
UDEV [485.249758] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/input/input17 (input)
KERNEL[485.300203] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/input/input17/mouse0 (input)
KERNEL[485.300231] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/input/input17/event3 (input)
KERNEL[485.300948] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/hidraw/hidraw1 (hidraw)
KERNEL[485.300976] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006 (hid)
KERNEL[485.300995] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1 (usb)
KERNEL[485.301021] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6 (usb)
UDEV [485.301475] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/input/input17/mouse0 (input)
UDEV [485.302030] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/hidraw/hidraw1 (hidraw)
UDEV [485.317142] add /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006/input/input17/event3 (input)
KERNEL[485.317590] add /devices/virtual/input/input18 (input)
KERNEL[485.317691] add /devices/virtual/input/input18/mouse1 (input)
KERNEL[485.317803] add /devices/virtual/input/input18/event6 (input)
UDEV [485.318438] add /devices/virtual/input/input18 (input)
UDEV [485.318466] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1/0003:05A4:9881.0006 (hid)
UDEV [485.318481] add /devices/virtual/input/input18/event6 (input)
UDEV [485.318494] add /devices/virtual/input/input18/mouse1 (input)
UDEV [485.318882] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.1 (usb)
UDEV [485.319208] bind /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6 (usb)
MLD> mode2 -H devinput -d /dev/input/ira
Using driver devinput on device /dev/input/ira
Trying device: /dev/input/ira
Using device: /dev/input/ira
Warning: Running as root.
code: 0xe888475a00000000765b04000000000004000400e3000700
code: 0xe888475a00000000765b04000000000001007d0001000000
code: 0xe888475a00000000765b0400000000000000000000000000
code: 0xe888475a00000000ab7a04000000000004000400e2000700
code: 0xe888475a00000000ab7a0400000000000100380001000000
code: 0xe888475a00000000ab7a0400000000000000000000000000
code: 0xe888475a00000000ec990400000000000400040028000700
code: 0xe888475a00000000ec9904000000000001001c0001000000
code: 0xe888475a00000000ec990400000000000000000000000000
code: 0xe888475a00000000279405000000000004000400e2000700
code: 0xe888475a0000000027940500000000000100380000000000
code: 0xe888475a00000000279405000000000004000400e3000700
code: 0xe888475a00000000279405000000000001007d0000000000
code: 0xe888475a0000000027940500000000000400040028000700
code: 0xe888475a00000000279405000000000001001c0000000000
code: 0xe888475a0000000027940500000000000000000000000000
MLD> evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Power Button
/dev/input/event1: Power Button
/dev/input/event2: HID 05a4:9881
/dev/input/event3: HID 05a4:9881
/dev/input/event4: HDA NVidia HDMI/DP,pcm=3
/dev/input/event5: HDA NVidia HDMI/DP,pcm=7
Select the device event number [0-5]: 2
Input driver version is 1.0.1
Input device ID: bus 0x3 vendor 0x5a4 product 0x9881 version 0x110
Input device name: "HID 05a4:9881"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 2 (KEY_1)
Event code 3 (KEY_2)
Event code 4 (KEY_3)
Event code 5 (KEY_4)
Event code 6 (KEY_5)
Event code 7 (KEY_6)
Event code 8 (KEY_7)
Event code 9 (KEY_8)
Event code 10 (KEY_9)
Event code 11 (KEY_0)
Event code 12 (KEY_MINUS)
Event code 13 (KEY_EQUAL)
Event code 14 (KEY_BACKSPACE)
Event code 15 (KEY_TAB)
Event code 16 (KEY_Q)
Event code 17 (KEY_W)
Event code 18 (KEY_E)
Event code 19 (KEY_R)
Event code 20 (KEY_T)
Event code 21 (KEY_Y)
Event code 22 (KEY_U)
Event code 23 (KEY_I)
Event code 24 (KEY_O)
Event code 25 (KEY_P)
Event code 26 (KEY_LEFTBRACE)
Event code 27 (KEY_RIGHTBRACE)
Event code 28 (KEY_ENTER)
Event code 29 (KEY_LEFTCTRL)
Event code 30 (KEY_A)
Event code 31 (KEY_S)
Event code 32 (KEY_D)
Event code 33 (KEY_F)
Event code 34 (KEY_G)
Event code 35 (KEY_H)
Event code 36 (KEY_J)
Event code 37 (KEY_K)
Event code 38 (KEY_L)
Event code 39 (KEY_SEMICOLON)
Event code 40 (KEY_APOSTROPHE)
Event code 41 (KEY_GRAVE)
Event code 42 (KEY_LEFTSHIFT)
Event code 43 (KEY_BACKSLASH)
Event code 44 (KEY_Z)
Event code 45 (KEY_X)
Event code 46 (KEY_C)
Event code 47 (KEY_V)
Event code 48 (KEY_B)
Event code 49 (KEY_N)
Event code 50 (KEY_M)
Event code 51 (KEY_COMMA)
Event code 52 (KEY_DOT)
Event code 53 (KEY_SLASH)
Event code 54 (KEY_RIGHTSHIFT)
Event code 55 (KEY_KPASTERISK)
Event code 56 (KEY_LEFTALT)
Event code 57 (KEY_SPACE)
Event code 58 (KEY_CAPSLOCK)
Event code 59 (KEY_F1)
Event code 60 (KEY_F2)
Event code 61 (KEY_F3)
Event code 62 (KEY_F4)
Event code 63 (KEY_F5)
Event code 64 (KEY_F6)
Event code 65 (KEY_F7)
Event code 66 (KEY_F8)
Event code 67 (KEY_F9)
Event code 68 (KEY_F10)
Event code 69 (KEY_NUMLOCK)
Event code 70 (KEY_SCROLLLOCK)
Event code 71 (KEY_KP7)
Event code 72 (KEY_KP8)
Event code 73 (KEY_KP9)
Event code 74 (KEY_KPMINUS)
Event code 75 (KEY_KP4)
Event code 76 (KEY_KP5)
Event code 77 (KEY_KP6)
Event code 78 (KEY_KPPLUS)
Event code 79 (KEY_KP1)
Event code 80 (KEY_KP2)
Event code 81 (KEY_KP3)
Event code 82 (KEY_KP0)
Event code 83 (KEY_KPDOT)
Event code 86 (KEY_102ND)
Event code 87 (KEY_F11)
Event code 88 (KEY_F12)
Event code 96 (KEY_KPENTER)
Event code 97 (KEY_RIGHTCTRL)
Event code 98 (KEY_KPSLASH)
Event code 99 (KEY_SYSRQ)
Event code 100 (KEY_RIGHTALT)
Event code 102 (KEY_HOME)
Event code 103 (KEY_UP)
Event code 104 (KEY_PAGEUP)
Event code 105 (KEY_LEFT)
Event code 106 (KEY_RIGHT)
Event code 107 (KEY_END)
Event code 108 (KEY_DOWN)
Event code 109 (KEY_PAGEDOWN)
Event code 110 (KEY_INSERT)
Event code 111 (KEY_DELETE)
Event code 119 (KEY_PAUSE)
Event code 125 (KEY_LEFTMETA)
Event code 126 (KEY_RIGHTMETA)
Event code 127 (KEY_COMPOSE)
Event type 4 (EV_MSC)
Event code 4 (MSC_SCAN)
Event type 17 (EV_LED)
Event code 0 (LED_NUML) state 1
Event code 1 (LED_CAPSL) state 0
Event code 2 (LED_SCROLLL) state 0
Key repeat handling:
Repeat type 20 (EV_REP)
Repeat code 0 (REP_DELAY)
Value 250
Repeat code 1 (REP_PERIOD)
Value 33
Properties:
Testing ... (interrupt to exit)
Event: time 1514638001.616564, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1514638001.616564, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 1
Event: time 1514638001.616564, -------------- SYN_REPORT ------------
Event: time 1514638001.624557, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1514638001.624557, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1514638001.624557, -------------- SYN_REPORT ------------
Event: time 1514638001.632558, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70028
Event: time 1514638001.632558, type 1 (EV_KEY), code 28 (KEY_ENTER), value 1
Event: time 1514638001.632558, -------------- SYN_REPORT ------------
Event: time 1514638001.688497, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1514638001.688497, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0
Event: time 1514638001.688497, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e3
Event: time 1514638001.688497, type 1 (EV_KEY), code 125 (KEY_LEFTMETA), value 0
Event: time 1514638001.688497, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70028
Event: time 1514638001.688497, type 1 (EV_KEY), code 28 (KEY_ENTER), value 0
Event: time 1514638001.688497, -------------- SYN_REPORT ------------
MLD> eventlircd -f -vvv
eventlircd[28409]: /etc/eventlircd.d/hama-mce.evmap: using 42 valid keyboard shortcut mappings
eventlircd[28409]: input device /dev/input/event2: events of unsupported event type EV_MSC will be discarded
eventlircd[28409]: input device /dev/input/event2: event code 0x04 of unsupported event type EV_MSC will be discarded
eventlircd[28409]: input device /dev/input/event2: events of unsupported event type EV_REP will be discarded
eventlircd[28409]: input device /dev/input/event2: grabbed
eventlircd[28409]: /etc/eventlircd.d/hama-mce.evmap: using 42 valid keyboard shortcut mappings
eventlircd[28409]: input device /dev/input/event3: events of unsupported event type EV_MSC will be discarded
eventlircd[28409]: input device /dev/input/event3: event code 0x04 of unsupported event type EV_MSC will be discarded
eventlircd[28409]: input device /dev/input/event3: grabbed
eventlircd[28409]: input device /dev/input/event3: created output event device
MLD> irw
1c 0 KEY_ENTER devinput