Hi I am on CuBox-i4 running the image from the latest master (0848005fbf0dedb148df71ed1b137ab2ab2d497e) but tv remote (samsung) is not working...
I was using an old OpenELEC built by SolidRun on my CuBox-i4P (quad core) and my remote was working fine but when I decided to move on to the latest LiebreELEC master, remote stopped working. So, I followed along the official wiki (Infrared Remotes) and this post (LE9.0 remote configs ir-keytable Amlogic devices) and configured a custom keymap but even with that, irw is not seeing anything...
I am quite new to all this and spent 3 days to learn up to here. I would love to see LibreELEC 10 working on my CuBox-i...
When it is working on OpenELEC, the output of ir-keytable and lsmod look like this:
OpenELEC:~ # ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event4) with:
Driver gpio-rc-recv, table rc-rc6-mce
Supported protocols: unknown other rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp
Enabled protocols: nec rc-6
Name: gpio_ir_recv
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms
OpenELEC:~ # lsmod
Module Size Used by
ir_rc5_decoder 1891 0
8021q 17090 0
ir_rc6_decoder 2556 0
ir_nec_decoder 2211 0
brcmfmac 177537 0
brcmutil 4813 1 brcmfmac
snd_soc_imx_spdif 1736 0
cfg80211 220104 1 brcmfmac
snd_soc_fsl_spdif 10660 2
rc_rc6_mce 1146 0
gpio_ir_recv 2878 0
rc_core 15882 6 ir_rc6_decoder,ir_nec_decoder,rc_rc6_mce,gpio_ir_recv,ir_rc5_decoder
fuse 79676 1
sch_fq_codel 8397 2
Display More
I also see run/lirc/lircd running as service along with eventlircd.service and CEC adaptor was on (Kodi UI System setting -> input).
In the LibreELEC, the output of ir-keytable look like this:
LibreELEC:~ # ir-keytable
Found /sys/class/rc/rc0/ with:
Name: gpio_ir_recv
Driver: gpio_ir_recv
Default keymap: rc-empty
Input device: /dev/input/event0
LIRC device: /dev/lirc0
Attached BPF protocols: Function not implemented
Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp imon rc-mm
Enabled kernel protocols: lirc
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms
Display More
And the output of lsmod is like this:
LibreELEC:~ # lsmod
Module Size Used by
coda_vpu 98304 0
imx_vdoa 16384 1 coda_vpu
videobuf2_dma_contig 20480 1 coda_vpu
v4l2_mem2mem 28672 1 coda_vpu
dw_hdmi_ahb_audio 16384 0
So, I don't see ir_nec_decoder any more... (CEC adaptor is also not there in Kodi UI)
But I assume this should be ok now that in kernel decoder is doing the work?
At the beggining, ir-keytable -t was not detecting anything. So, I switch to nec protocol (samsung uses that I believe) and test it by ir-keytable -p nec -t.
Then I could see scancodes and so I could create my_custom_remote in /storage/.config/rc_keymaps/my_custom_remote and set this up in /storage/.config/rc_maps.cfg as
After this, I could see EV_MSC and EV_KEY correctly by ir-keytable -t like below:
LibreELEC:~ # ir-keytable -t
Testing events. Please, press CTRL-C to abort.
3240.680218: lirc protocol(necx): scancode = 0x70762
3240.680400: event type EV_MSC(0x04): scancode = 0x70762
3240.680400: event type EV_KEY(0x01) key_down: KEY_RIGHT(0x006a)
3240.680400: event type EV_SYN(0x00).
3240.810115: event type EV_KEY(0x01) key_up: KEY_RIGHT(0x006a)
3240.810115: event type EV_SYN(0x00).
3244.870207: lirc protocol(necx): scancode = 0x70765
3244.870491: event type EV_MSC(0x04): scancode = 0x70765
3244.870491: event type EV_KEY(0x01) key_down: KEY_LEFT(0x0069)
3244.870491: event type EV_SYN(0x00).
3245.000141: event type EV_KEY(0x01) key_up: KEY_LEFT(0x0069)
3245.000141: event type EV_SYN(0x00).
Display More
Now that ir-keytable -t is working properly. I should see output from irw command but I see nothing.
Strangely, I get the response from ir-keytable -t whether or not I stop kodi and eventlircd from systemcntl. So, it looks like kodi is not intercepting remote signals at all, and this explains why irw command show no response at all.