Configuring ir remote control
#1
Hi,

I've installed Kodi 16.1 ubuntu package. I'd like to use an ite 9135 receiver with its own remote control.

When I type:
Code:
sudo ir-keytable
in a terminal, I get:
Code:
Found /sys/class/rc/rc0/ (/dev/input/event13) with:
   Driver dvb_usb_af9035, table rc-it913x-v1
   Supported protocols: NEC
   Enabled protocols:
   Name: ITE 9135 Generic
   bus: 3, vendor/product: 048d:9135, version: 0x0200
   Repeat delay = 500 ms, repeat period = 125 ms

If I type 
Code:
sudo ir-keytable -t

or:

Code:
sudo evtest

key presses on remote control are successfully detected by Kodi.

I've installed Keymap Editor add-on in Kodi, but it doesn't detect key presses on remote control when I try to edit shortcuts.

How should I configure remote control in Kodi? Any ideas?
Reply
#2
X.org might use remote as keyboard.
Reply
#3
(2017-10-22, 16:05)P.Kosunen Wrote: X.org might use remote as keyboard.

Ok, but how could I solve that issue?
Reply
#4
Many ways possible, keymapping might be easiest.

http://kodi.wiki/view/HOW-TO:Modify_keymaps

Also you can blacklist remote device from xorg.conf and use lirc. IIRC some ir keytable way is also possible, but i don't know more about it.
Reply
#5
I've connected ite 9135 receiver to a pc running Archlinux and
Code:
sudo ir-keytable
output is a bit different:
Code:
Found /sys/class/rc/rc0/ (/dev/input/event14) with:
Name: ITE 9135 Generic
Driver: dvb_usb_af9035, table: rc-it913x-v1
Supported protocols: nec
Enabled protocols: nec
bus: 3, vendor/product: 048d:9135, version: 0x0200
Repeat delay = 500 ms, repeat period = 125 ms

So, I copied /lib/udev/rc_keymaps/it913x_v1 table to /etc/rc_keymaps directory. Then, I tested all the remote control keys, via the following command:
Code:
sudo ir-keytable -t -s rc0
looking at 'scancode' value for each pressed key on the remote control and substituting existing hex values in the table, accordingly For example, if I press 'Zoom' key, I'll see:
Code:
scancode = 0x08
in the terminal. so, its new value is 0x0008 in the table. Finally, /etc/rc_keymaps/it913x_v1 will look like as the following:
Code:
# table it913x_v1, type: NEC
0x0045 KEY_POWER
0x0007 KEY_1
0x0015 KEY_2
0x0009 KEY_3
0x0016 KEY_4
0x0019 KEY_5
0x000d KEY_6
0x000c KEY_7
0x0018 KEY_8
0x005e KEY_9
0x001c KEY_0
0x0047 KEY_PAGEUP
0x0043 KEY_PAGEDOWN
0x0046 KEY_VOLUMEUP
0x0040 KEY_VOLUMEDOWN
0x005a KEY_BACKSPACE
0x0042 KEY_S
0x0044 KEY_ENTER
0x0008 KEY_F
0x004a KEY_ESC

Well, after saving the file, I need to update mapping for the device writing the new values included in the file. So, I've to type:
Code:
sudo ir-keytable -s rc0 -c
in order to clear the old mapping, and then:
Code:
sudo ir-keytable -s rc0 -w /etc/rc_keymaps/it913x_v1
in order to load the new table.

After a reboot, I've started Kodi and Keymap Editor add-on has detected keypresses coming from the remote control.
Reply

Logout Mark Read Team Forum Stats Members Help
Configuring ir remote control0