Configuring my TV IR remote for Kodi

  • Hi.

    I just received some IR receivers (VS838) and would like to use it to control LibreElec 9.0.1 on RPi 3B+ with my TV remote.


    I'm reading the wiki but not sure I understand well...

    First I add in my config.txt the line

    Code
    dtoverlay=gpio-ir

    (I didn't found the dtoverlay=lirc-rpi)

    To control that it works, i did with ssh

    Code
    rc-ctl -r

    and I could see lots of "pulse" and "space" lines. So I hinks my remote and receiver could work.


    But it don't ontrol my Kodi... As the wiki says

    Quote

    The option to enable / disable Lirc in LibreELEC settings has been removed
    as well, lircd will now be started automatically if the
    /storage/.config/lircd.conf file is present.

    I tried to add a lircd.conf file in /storage/.config/ (which is empty) with no results.

    I tried to "the easy way", but the list of configurations in /usr/lib/udev/rc_maps is very long and I gave up after a dozen unsuccessful tries.

    After what I tried in the "hard way" every available protocols. No one works...

    When I searcch on the web, I see that everybody connect their ir receiver between "3.3v/GND and GPIO18", for example

    These receivers are commonly poower with 5V Vcc, am I wrong ?

    Thanks for your help, I don't understand how to use my tv remote and if I can do it...

    PS : please excuse my "fr"english...

  • As the RPi is a 3.3V-only device you have to connect the IR receiver's VCC pin to 3.3V (the receivers typically work between somewhere below 3V and somewhat above 5V).

    What TV remote are you using? Some TVs use rather odd IR protocols that may not be supported by in-kernel decoding.

    If your TV has been built in the last ~10 years chances are very good that it support's CEC. If that's the case it's a lot easier to just use that (you don't need an IR receiver as well).

    If you don't have CEC support in your TV then you may need to create a lircd.conf file with irrecord - which can be tricky.

    It may be easier to just use a different remote then, eg an MCE remote, which is supported by in-kernel decoding.

    so long,

    Hias

  • Hi and thanks for your answer.


    My TV is a Panasonic plasma screen (TH-42PX71EA) which HDMI inputs are down. So my RPi is connected by composite output. If I understood well, CEC works with the HDMI port. So I can't use it... On boot, Kodi said me that it couln't connect to CEC adapter, after what I finally disabled it.

    I think there is anything I don't understand well in the configuration of ir-keytable / lircd.

    I tried irrecord reading this but generated file was strange...

    So I searched for a preconfigured file. My remote is named EUR_7737Z50. I found this link which list various Panasonic remotes, but couln't find mine. I have downloaded the closest named file (EUR7724KF0.lircd.conf) and think that at least one of them could work with my remote (I need only left/right/top/bottom, OK, return, Home, Play and Stop keys), but I don't understand how to test these files on Kodi : I can't load them with [code]

    Code
    ir-keytable -c -w /storage/.config/rc_keymaps/my_custom_remote[/code]

    Indeed, irrecord file have not the same syntax as ir-keytable.

    As you say, the simpler way could be to buy a well known remote, but if I could avoid buying...

    Thanks so much for your help...

  • Forget everything you have read about Lirc and uninstall it. It is no longer valid.

    I have found that virtually everything outdated.

    Read this: Infrared Remotes [LibreELEC.wiki]

    I don't think Panasonic protocol is supported by the kernel, I can't find it.

    The old lircd.conf format has changed.

    In theory, a RC-6 (MCE) remote will work without doing anything. NOT a Vista MCE.