Reasonable way to set up IR remote?

On my most recent install, I used Debian and installed the kodi package. Then, according to my notes, the IR remote wasn't immediately working so I tried Kodibuntu (this would be 16.0/.1) and It Just Worked.

This week, my HD crashed. On a fresh install of Debian I installed kodi and again the IR remote didn't work out of the box. However now there's no Kodibuntu, so I'm forced to figure out how to set up LIRC or whatever. I've seen the videos and they seem extremely tedious at best. Press button, type code of best guess, move on. Iterate until remote does reasonable things.

But that Kodibuntu on the dead disk must have been doing something that came with the install. Is there a way to get that config?

Posted Aug 9, 2018, 10:56 PM UTC

922
ramdaskm•

I'm using Flirc with Windows and the Harmony remote. Works flawlessly.

6
DaysBeforeSpringOP•

I already have a remote that the entire family is trained on. I just want it to work again, like it did a week ago on a previous version of Kodi.

2
tigershadowclaw•

I second this. The Flirc is an IR receiver that acts like a keyboard in response to commands from a IR remote. You plug it in to a computer (the config is saved to the device so it doesn't matter what machine is used for setup), you than spend about 20 minutes telling it what each remote button should do and then your good to go and the remote should be able to work the same as previously.

4
oldepharte•

That's actually the problem with Flirc - it does not act like a remote, it acts like a keyboard, and there are some remote commands that do not have exactly equivalent keyboard commands. But also, my understanding is that it does not allow you to do things like use a .lircrc file to define your own key mappings, so AFAIK there is no way to use a Flirc remote to launch Kodi or any other program from the desktop (however you can do this if you have a working version of lirc, but note that irexec needs to be running as a background process for this to work, which be accomplished by running irexec -d. And you need to know what to put in the .lircrc file in your user home directory. But my point is that lirc can do something like this, whereas Flirc cannot to the best of my knowledge).

3
tigershadowclaw•

I do agree with the points you make but the OP stated that he is using linux which means that if he wanted, you can define custom keyboard shortcuts that can call arbitrary commands. So if you wanted to you could define something like Ctrl-Alt-K to launch kodi and then configure a key on the remote to trigger this key combo. (this is what I did on one of my media center machines). Also someone mentioned LibreElec, which boots directly to kodi and makes this how thing a mute point. (also I haven't used Lirc much so I'm not really familiar with it)

1
nug21•

3rd

1
DaysBeforeSpringOP•

In case anyone in the future is reading this: Flirc is complete shit from beginning to end.

  1. Installation. The instructions to install on Debian don't work for any hardware platform. The script to do the install also fails. Downloading the tarball works, but fails to note that you need a bunch of bullshit libraries (QT xml garbage). Install all that and it fails again. Oh, you need to be root! Doesn't say that either in the instructions (which don't exist) or in the error message.

  2. OK neat, I click on the botton on-screen and then on the remote and it records! That's cool. Oops, I did a button wrong. Try it again. "This button already exists." Sometimes you can reprogram it, sometimes you can't. No error messages! Wonderful engineering.

  3. Also, even if you program it, it Just Doesn't Work. None of the programmed buttons do the things they were programmed to do.

  4. Huh, I wonder if it will Suddenly Work if I do the firmware upgrade. Let's try it, it shouldn't take more than a couple minutes. An hour later, the screen still says "Waiting......." and the GUI says "Disconnected". Kill it. The thing is bricked. Tossed in the garbage, where it belongs.

Don't waste your money.

2
ramdaskm•

Sorry about the experience. Flirc on Windows is very well executed. Very flexible, lots of support.

1
NotTobyFromHR•

I have a LibreElec install with a IR receiver. Look for a Windows MCE IR receiver. Mine works with a harmony remote.

3
DaysBeforeSpringOP•

I already have a remote that the entire family is trained on. I just want it to work again, like it did a week ago on a previous version of Kodi.

1
NotTobyFromHR•

If you don't need the other functions of the Linux computer, try LibreElec

2
DaysBeforeSpringOP•

I looked into that but it seemed to be a RPi only. Will it go on regular hardware? I feel like the RPi is underpowered for this.

And what about plugins? I need to support HDHomeRun and/or IPTV as well. Does LibreELEC have those plugins and if they are binary will they run on the Pi?

EDIT: NM, I guess I'm dumb. LibreELEC is Kodi, so the plugins should work. And it does come for normal hardware. Link. I'll definitely give that a try.

2
Treas0n•

Osmc may be more up your alley. It comes with more freedom to install binaries

0
oldepharte•

The type of user that would install Debian is almost certainly not going to be happy with the limitations of LibreElec or OpenElec.

1
NotTobyFromHR•

Unless they just wanted something not Windows. If the sole purpose of the device is Kodi, then go with LE. Otherwise, no.

1
member_oneTeam-Kodi•

Flirc will use an existing remote. That's the beauty of it. That and keyboard emulation for better control of Kodi.

2

As others have said, install LibreELEC. Also look at the addon Keymap Editor to tweak the commands based on your remote keypresses.

2
DaysBeforeSpringOP•

I'm glad I came back to this thread to complain, because Keymap Editor is The Answer. Took about 5 minutes to install and configure and now my buttons work.

(Actually, there's some other problem where the keys stutter and repeat sometimes, but I think that's unrelated to Kodi. I've had it happen even at the OS level from a plain keyboard.)

2
oldepharte•

I used the instructions in Make LIRC work in Ubuntu 18.04, so that you can use your infrared remote in Kodi to install LIRC in Ubuntu 18.04 but I don't know if you could do something similar in Debian or not. Probably would need to use a Debian Jessie repo to find the old (still working) version of LIRC, or maybe it would not hurt to install it from the Ubuntu repo mentioned in the article. Either way, it appears the problem is that the latest version of LIRC is buggy but if you can go back to an older version it works great. Well, at least it did for me, and for the user that originally posted that link in the Kodi forums.

2
hindumagic•

If you really need to use that remote then be prepared to do some work. I did it from scratch for my receiver's remote and it was well worth it. One remote for the whole entertainment centre was awesome.

Try going to the lirc website. IIRC, they have a collection of configs for quite a few remotes there. Perhaps someone uploaded yours?

Also, have you confirmed that lirc is working properly under debian for your IR receiver? Again, go to the lirc website and read some of the docs. There is a process to follow to confirm that your IR receiver is registering a signal with lirc. Also confirm what is going on at system initialization. Which lirc module is being used? Check output of dmesg.

It's been 10+ yrs since I've messed around with that, so the details are foggy. The hints I gave you should get you started though. Good luck!

Also (sorry, gotta say it), but consider making a backup of mission critical configuration files. It's a pain in the ass but it can save you from a lot more pain in the future!

1
oldepharte•

Not much work at all if you can find and install an older working version of lirc - see the link in my other post.

1
drunkenreplies•

Buy a new TV and use the remote it comes with. Turn CEC on, boom, done.

0†
[deleted]•

[deleted]

-1