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:
- The type of pi makes no difference, it was just coincidence that I was only having issues with my pi zero based media centre.
- 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)
- 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.
- 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.
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
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.