IR Not Working After October Update

Yes, the 4.19 kernel does bring new IR drivers for Raspberry Pi.

Thanks for this information!
I had the same problem, transmit didnā€™t work anymore after update. With the latest update, I was able to load the tx module.
I was able to set up the new drivers better with the information from this page:
lirc_rpi got replaced by gpio-ir and gpio-ir-tx, how do I upgrade? Ā· Issue #2993 Ā· raspberrypi/linux Ā· GitHub

But now I suffer from the same problem, the transfer only works sporadically.
Any ideas on what the cause is and how to solve this?

Iā€™ve dug out a couple of old Pis and made up an extra IR receiver and blaster and been having a bit of a play to see if I can get anywhere. What Iā€™ve found so far is:

  1. The type of pi makes no difference, it was just coincidence that I was only having issues with my pi zero based media centre.
  2. Even when IR sending doesnā€™t work it IS still sending something with the IR LED, itā€™s just that the pulse/space timings are WAY off (e.g. a 7000us pulse when it should be a ~500us)
  3. From my limited testing it seems that the IR protocol being sent matters. For me, sending ā€˜necxā€™ codes works every time, ā€˜rc5ā€™ is flaky and only works about 30% of the time, ā€˜necā€™ doesnā€™t send successfully at all.
  4. The issues do seem to be specific to OSMC. I setup Raspbian and was able to successfully and consistently send (with gpio-ir-tx) all the IR codes that were causing issues with OSMC. Were there any changes to gpio-ir-tx between kernel versions 4.19.55 (OSMC) and 4.19.75 (Raspbian)?

Iā€™ll continue playing with it when I have spare time and see if I can find anything else.

1 Like

We can update the kernel if youā€™re happy to give it some testing

Sam

Certainly willing to give it a try.

Me too - Iā€™ve done similar tests and current Raspbian kernel works fine.

Iā€™m using lircd for the deciding - not using the kernels protocol support.

Hi,

are you using omxplayer?
If you do so, switch to mmal instead - this should solve your problemā€¦

Regards
Markus

Mmal has nothing to do with ir function. I suspect spam here. Failure to respond will result in account termination and thread cleanup.

Hello,

first of all, even if you are a moderator, I find it very sad to hear such a replyā€¦

Well, to ā€œjustifyā€ my statement regarding omxplayer/mmal:
After the last update I was facing exactly the same problem: loss of ir functionality while using osmc. In my case I wasnā€™t able any longer to switch programs watching Live TV.
AFTER disabling the omxplayer my IR started working again. Thatā€™s just it.
Still suspecting spam?

Regards
Markus

No, but Iā€™d be quite surprised if changing the player could make any difference in remote function. As a moderator, Iā€™m here to respond when a new account makes a post in a thread that seems too be wildly out of context. Our automated filters are quite good but not perfect. So maybe op decides to test your theoryā€¦

To be more precise:
After the update I did, for what reason ever, change the settings for the player and experienced problems with
a) the ir
b) stuttering

Searching for a solution regarding the stuttering I stumbled across this and so I just reverted this change and voilĆ : The stuttering was gone AND the ir issue was also solvedā€¦
What maybe of interest as well: Both players were selected in the settings at the same time before I finally switched off omxplayerā€¦

As ActionA has said, it would be surprising if the player was affecting IR function and, given that the problems persist when nothing is playing, I really donā€™t expect the choice between OMX and MMAL to make any difference but I have tried anyway and, as expected, the player selection doesnā€™t make any difference.

Hi Quonith,

obviously I have experienced a similar symptom caused by some other technical reasonā€¦
Anyway, I just wanted to help.

Regards
Markus

1 Like

Thanks for trying to help @deomaki! Unfortunately, thereā€™s no connection to the used player as the problem also persists when no video is played.

Since multiple people say that itā€™s working for them in Raspbian, I suspect thereā€™s an issue with the used kernel version in combination with the LIRC version in OSMC. I donā€™t have a Raspbian available. Can someone say which LIRC version is used there? And is it possible to install that one in OSMC?

I heavily rely on the IR transmission for my automations, so I decided to install the OSMC version from July on another RPi 1 thatā€™s doing the actual IR transmission until the problem is fixed. So my RPi 2 with OSMC October tells my RPi 1 to transmitā€¦

Originally within our config.txt - /boot/config.txt - we had:

dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=22

This was set years ago from an old guide for setting up LIRC on a Raspberry Pi.

Assigning this to dtoverlay might no longer work with the update of OSMC. But weā€™ve also read from another thread that OSMC updates do not have any control over changing transmission for LIRC, but a moderator could probably better address that.

We poked around on this thread and also at this thread:

and after we followed the advice of going to the OSMC Setting:

On OSMC, with your keyboard, go through My OSMC ā†’ Pi Config ā†’ Hardware Support ā†’

We set:
gpio_pin(0 for disabled) - to 22 - Might be different verbiage depending on the version of OSMC.

We then restarted.

Later we found that after explicitly setting dtoverlay=gpio-ir-tx,gpio_pin=22 in /boot/config.txt , the transmitter worked once again. - This was also after rebooting.

We are assuming that the more import part of this assignment is the gpio-ir-tx.
We donā€™t need the receiver, so we donā€™t know the correct assignment for rx.

Also, we donā€™t know if it matters (we were trying just about anything at this point) , we replaced /etc/lirc/tv.conf with our config with known working remote codes and chose this as the default remote by simply selecting it in the Remotes section of My OSMC.

Hope this helps somebody else!!

So the settings are fixed now, but I still have the issue where the sending only works sometimes, very randomly (apparently as Iā€™ve read due to timing). Is there any way I can do to help to solve this issue?

I have the same issue.
Tried the above solution to change /boot/config.txt slightly and the first command I sent worked, but subsequent commands donā€™t seem to work reliably.
Has there been any further progress in fixing this?

btw, if you donā€™t have an IR blaster for testing, itā€™s very easy to make one. Remove an LED from an any old IR remote and wire it to pin 17 and GND.

Wow.

Long time no see @nadnerb. Hope youā€™re doing well.
Iā€™ll bump the kernel shortly and post some instructions on how to update. Iā€™m hoping that will do the trick; otherwise weā€™ll need to investigate further.

Sam

haha, cheers for the welcome back Sam, Iā€™m good thanks.
Ok cheers, Iā€™ll look out for the updates.

I noticed that the kernel version has been bumped in the latest update so have had a quick test with my kitchen TVā€¦ Unfortunately it still doesnā€™t seem to be working. Itā€™s been a while since I last tried IR sending on that Pi/TV so I might just be doing something silly wrong. Iā€™ll try to do some more thorough testing over the weekend.