IR keys repeated when Kodi is running and LG TV connected

#18

Hi Sam,

I managed to circumvent the “repeated keys” issue by disabling eventlircd and connecting a LIRC instance to Kodi. No repeated events anymore! Yeah! I don’t know what going wrong with the eventlircd method…

Edit: Now I’m having the following issues:

  • sometimes IR remote key presses are not recognized (irw)
  • most of the times, (fast) repeated button are registered as a single event. I have to wait +/- 500ms before pressing a button again
  • performance is fluctuating very much. Sometimes, all presses are recognised. Sometimes, presses are not recognised for +/- 20 seconds.

When I close Kodi, the issue is gone and irw registers all presses. When I unplug the HDMI cable from TV, issue is also gone.
Monitor + Samsung TV at work don’t have the issue at all.

To summarise: Kodi running + LG OLED TV connected -> weird IR issues :frowning:
RF remote is not affected.

Is there something I can do to fix/debug this?

Nick

0 Likes

#19

I would recommend keeping eventlircd; as it functions as a uinput aggregator.
Do you still experience these issues if you use the LIRC socket directly with Kodi on the display at work?

Sam

0 Likes

#20

Thanks for your input. I do prefer the eventlircd setup, but that setup is currently unusable (commands repeated 20+ times - impossible to navigate menus). For the direct LIRC socket, presses are missed, but provides are “workable” situation.

Both methods don’t have issues when using the displays at work. At home, the issue is only present when Kodi is starting. I don’t understand how Kodi can interfere with IR. It’s only reading the LIRC socket right?

0 Likes

#21

Try editing /lib/systemd/system/eventlircd.service.

Change:

ExecStart = /usr/sbin/eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --repeat-filter --release=_UP -f

to:

ExecStart = /usr/sbin/eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd

0 Likes

#22

Hi Sam,

I’ve changed the systemd (I kept the -f flag) file and rebooted. The result is the same as with the repeat filter on and release setting: IR keys are repeated many times:

6c 0 KEY_DOWN linux-input-layer
6c 1 KEY_DOWN linux-input-layer
6c 2 KEY_DOWN linux-input-layer
6c 3 KEY_DOWN linux-input-layer
6c 4 KEY_DOWN linux-input-layer
6c 5 KEY_DOWN linux-input-layer
6c 6 KEY_DOWN linux-input-layer
6c 7 KEY_DOWN linux-input-layer
6c 8 KEY_DOWN linux-input-layer
6c 9 KEY_DOWN linux-input-layer
6c a KEY_DOWN linux-input-layer
6c b KEY_DOWN linux-input-layer
6c c KEY_DOWN linux-input-layer
6c d KEY_DOWN linux-input-layer
6c e KEY_DOWN linux-input-layer
6c f KEY_DOWN linux-input-layer
6c 10 KEY_DOWN linux-input-layer
6c 11 KEY_DOWN linux-input-layer
6c 12 KEY_DOWN linux-input-layer
6c 13 KEY_DOWN linux-input-layer
6c 14 KEY_DOWN linux-input-layer
6c 15 KEY_DOWN linux-input-layer
6c 16 KEY_DOWN linux-input-layer
6c 17 KEY_DOWN linux-input-layer
6c 18 KEY_DOWN linux-input-layer
[…]

At the bottom, there no _UP key anymore, as expected.

0 Likes

#23

I’m stumped.

There was a fix for eventlircd to stop Kodi grabbing events incorrectly which I’ve prepared for the next update. It may be tricky for you to test as the staging repository currently contains Kodi v18 builds.

Sam

0 Likes

#24

Hi Sam,

Do you refer to this commit: https://github.com/osmc/osmc/commit/3b3123cc6d39d5caebe074c4ca3a9a337eeaa560#diff-3fa35519df81cdeefc49c5958d8cf968 ?

I’ll try to diff dmesg for LG TV and work displays. I will also try nightly build.

Nick

0 Likes

#25

That’s the one.

0 Likes

#26

I tried that fix, but didnt help. Installed nightly build yesterday, but repeated keys are still present. When connected to display at work, everything works fine…

Sometimes the keys are repeated infinitely. Restarting Kodi stopped the “loop” immediately (messages in irw stopped)

I really want my (all-in-one) remote to work, because Kodi will be used as settop box for watching live tv. I dont want to go back to multiple remotes :sleepy:

Tonight I will test my newest Lirc remote config at the RPI to make sure it not causing problemens. Will also test IR behavior when Kodi is off, but system is under load.

Do you have other ideas about what might be causing the weird IR behavior when my LG TV is connected?

0 Likes

#27

Are any other devices connected to the TV?
Can you remove them (unplug HDMI) temporarily?

0 Likes

#28

Hi Sam,

Nothing else is connected to my TV.
lirc & eventlircd setup is exactly the same on both the Vero and RPI. Only difference is that RPI uses TSOP IR sensor, which is connected to GPIO pins.

I’ve swapped HDMI cable from Vero to RPI and the remote is working without issues at the RPI.

Nick

0 Likes

#29

Unfortunately I am out of ideas.
We could swap the hardware over – but I can’t think of why it would work well in one environment and not another.

Sam

0 Likes

#30

Hi Sam,

I discovered something very interesting. My IR remote works most of the time when I place the Vero on top of the dark Vero packaging. As soon as I place the Vero back on the wood of the TV cabinet, the issue returns.

When the Vero is placed on my black wooden center speaker, issue is present. When I place the packaging between the speaker and the Vero, issue is gone.

Weird…

0 Likes

#31

Can you take a photo of the living room setup?

0 Likes

#32

No problem. Let me know if you need additional photos.


0 Likes

#33

Not sure still unfortunately

0 Likes

#34

Ok thanks for checking. Never had IR issues with other devices and my all-in-one remote.

Can we swap the hardware? Let’s hope that fixes the issue.

Nick

0 Likes

#35

Sure, ping support@osmc.tv.

Sam

0 Likes

#36

Is that the Vero 4K IR extension in front of the speaker and behind the cable, or is that for another device (like the Pi)?

If so, have you tried unplugging the IR extension from the Vero? If not, have you tried using the IR extension for the Vero?
ZoomIn

0 Likes

#38

That’s the Vero IR extension. It’s not connected at the moment, because the Vero is currently in line of sight.

I’ve tested both internal IR receiver and the extender. When I tested the extender, I placed the Vero inside the TV cabinet with door closed and internal IR sensor masked with electrical tape. Issue is still present, but when I place the Vero on top op the packaging box, there’s an improvement. That’s very weird, because the IR light should not reach the internal sensor. I’ve double checked that the IR light cannot reach the internal sensor, by unplugging the IR extender.

0 Likes