2017-11-14, 20:48
(2017-10-13, 23:24)tylla Wrote: Finally I got hold of a T3-M remote.
Fun fact: it was ordered trough eBay from China, but after the first two orders both ended up arriving as an MX3 (so refunded), and the 3rd gave up the order after I double checked with them whether it is really a T3, the 4th order was finally a T3.
As I use it with Linux (Debian Jessie, Gnome3) I thought I will share my findings, maybe somebody will get some use of it.
First the functions:
The remote is a T3-M model, it has the audio feature.
It gets recognized on the USB as a composit HID device with vendor ID 0x1d57 (Xenta) product ID 0xad03 version 0x101.
Manufacturer name (Input device name in evtest device list): "FREEWAY TECHNOLOGY"
It has some subdevices: audio control, audio streaming, keyboard, mouse.
The state of the mouse gets memorized until battery changing.
The remote has 3 state changing buttons: TV, MOUSE DISABLE, Fn (on the backside), all other keys are sending valid, recognizable keycodes.
Now the keycode/value layout map. The position of each entry is matched with the physical position of the corresponding button on the remote. This is the air mouse/D-pad side, the keyboard side is pretty straightforward.
Code:Keycode layout for the T3-M RF Remote and Air Mouse:
Normally all keycodes come through the keyboard device (the first in the evtest listing).
Keys marked with asterisk (*) change function according to the air mouse enable/disable function:
- if mouse is disabled the normal keycodes are used.
- if mouse is enabled, the normal keycodes are not sent for these two keys, instead alternative codes are sent through the second input device (mouse):
KEY_ENTER(70028) -> BTN_LEFT(90001)
KEY_ESC(70029) -> BTN_RIGHT(90002)
The microphone key sends the keycode KEY_F16 right before starting the transmission of audio. It does not send anything at the end of transmission.
KEY_POWER (10081)
KEY_REWIND(c00b4) KEY_FASTFORWARD(c00b3) KEY_PREVIOUSSONG(c00b6) KEY_NEXTSONG(c00b5)
KEY_F3(7003c) KEY_PLAYPAUSE(c00cd) KEY_ZOOMIN(c022d) KEY_ZOOMOUT(c022e)
KEY_COMPOSE(70065) KEY_HOMEPAGE (c0223) KEY_UNKNOWN(700bb)
KEY_UP (70052)
KEY_LEFT(70050) *KEY_ENTER(70028) KEY_RIGHT(7004f)
KEY_DOWN(70051)
KEY_VOLUMEUP(c00e9) *KEY_ESC(70029) KEY_ENTER(70028) KEY_PAGEUP(7004b)
KEY_VOLUMEDOWN(c00ea) KEY_MUTE(c00e2) MOUSE_ON_OFF(N/A) KEY_PAGEDOWN(7004e)
KEY_1(7001e) KEY_2(7001f) KEY_3(70020) KEY_CONFIG(c0183)
KEY_4(70021) KEY_5(70022) KEY_6(70023) KEY_MAIL(c018a)
KEY_7(70024) KEY_8(70025) KEY_9(70026) KEY_WWW(c008a)
TV_RF_IR_SWITCH(N/A) KEY_0(70027) KEY_BACKSPACE(7002a) KEY_F16(7006b)
KEY_F4(7003d) KEY_F5(7003e) KEY_F6(7003f) KEY_F7(70040)
These values can be used to create a map using udev:
Important: the forum engine eats the first (and single) space character in front of KEYBOARD_KEY_xxxx but it is a must.Code:#Keymap file for the T3-M RF Remote and Air Mouse devices
#This file goes as 60-keyboard.hwdb symlink into the /etc/udev/hwdb.d/ directory
#after changing this file, these commands should be run:
#udevadm hwdb --update
#udevadm trigger
#udevadm control --reload
keyboard:usb:v1D57pAD03*
KEYBOARD_KEY_10081=f24 #KEY_POWER - Power Button
KEYBOARD_KEY_700bb=tab #KEY_UNKNOWN - Recent Button (double rectangles on each other)
The above code changes the Recent button to send a TAB code (aka. Fullscreen), and the Power button to send an F24 code.
The last is a hack for me to be able to make a custom script work, which will turn off the display on my machine (actually rather send the display to sleep) when I press Power.
Ps: as I currently own both MX3 (2 of them :-) and a T3-M remote I must say the T3-M is way more thought out than the MX3. The T3 only sends keypresses through that device where they belong while the MX3 was more of a mumble-jumble, sending some keys using the mouse some keys using the keyboard device. And btw. they changed the key codes for the PrevSong/NextSong - Rew/FF keypairs to better match the symbol on the key. Now I only miss the Win button...
Ps2: now I see that the forum engine messes up my carefully layed out tables.... pfff.
Hi. Where can I find the key codes please (tab;f24;stop...)? Thank you.... I have a T3-M v1D57pAD03 ....