[T3] 2.4GHz and IR Air Mouse Remote Control
Ok, bit of an update that may possibly help to contribute to getting the unrecognised keys on the T3 remote recognised in Linux.

Firstly, so far this has all been on my Openelec RPi2...

From reading on t'internet, I found I could use a tool called evtest to find out the scancodes for the buttons, but couldn't get this working on Openelec, so I migrated over to Libreelec and installed their system tools addon, which gave me evtest, and found me some more info on the buttons:

Code:
4 rectangles:
Event: time 1484862141.061309, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7008a
Event: time 1484862141.061309, type 1 (EV_KEY), code 92 (KEY_HENKAN), value 1
Internet Explorer
Event: time 1484862204.261669, type 4 (EV_MSC), code 4 (MSC_SCAN), value c008a
Event: time 1484862204.261669, type 1 (EV_KEY), code 150 (KEY_WWW), value 1
Zoom in:
Event: time 1484862205.813901, type 4 (EV_MSC), code 4 (MSC_SCAN), value c022d
Event: time 1484862205.813901, type 1 (EV_KEY), code 418 (KEY_ZOOMIN), value 1
Zoom out:
Event: time 1484862206.245953, type 4 (EV_MSC), code 4 (MSC_SCAN), value c022e
Event: time 1484862206.245953, type 1 (EV_KEY), code 419 (KEY_ZOOMOUT), value 1
Recent/2 rectangles:
Event: time 1484862247.603470, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700bb
Event: time 1484862247.603470, type 1 (EV_KEY), code 240 (KEY_UNKNOWN), value 1

A bit more reading suggested I could drop a customer hwdb file so after finding (I think) the usb kernel modalias for the remote using:

Code:
udevadm info /dev/input/event0

..I created a hwdb file called "99-t3remote.hwdb" in ~/.config/hwdb.d/ directory:

Code:
# T3 Remote
keyboard:usb:v25A7p2402*
KEYBOARD_KEY_07008a=f8                                  # 4 Rectangles
KEYBOARD_KEY_0c008a=f9                                  # Internet Explorer
KEYBOARD_KEY_0c022d=f10                                 # Zoom In
KEYBOARD_KEY_0c022e=f11                                 # Zoom Out
KEYBOARD_KEY_0700bb=f12                                 # Recent

...which was an attempt to map the keys to something that I hoped Kodi would see - i.e. the F8 to F12 keys.

Unfortunately this doesn't seem to have worked and Kodi log still reports the same thing:

Code:
DEBUG: CLinuxInputDevice::KeyEvent: TranslateKey returned XBMCK_UNKNOWN from code(92)

Anyone got any more experience/knowledge in this area and can say if I'm getting close?
Reply


Messages In This Thread
RE: [T3] 2.4GHz and IR Air Mouse Remote Control - by julianmclean - 2017-01-20, 00:25
power button - by thenry - 2017-03-26, 14:43
Logout Mark Read Team Forum Stats Members Help
[T3] 2.4GHz and IR Air Mouse Remote Control3