schadha
Posts: 7
Joined: Sun Dec 14, 2014 8:23 am

CEC: RPI 4: No key press received

Wed Oct 09, 2019 1:55 pm

We do not receive any key presses on RPI 4/Buster with HDMI cable connected to LG TV and HDMI1 (port close to USB). We are using latest cec-client from CEC code https://github.com/Pulse-Eight/libcec/t ... cec-client.

> cec-client -i
libCEC version: 4.0.4, compiled on Linux-4.15.0-48-generic ... , features: P8_USB, DRM, P8_detect, randr, RPi, Exynos, AOCEC

All these command WORK:
echo "on 0" | cec-client RPI -s -d 2 // Turned LG TV ON
echo 'standby 0' | cec-client -s -d 2 // Turned LG TV OFF
echo 'as' | cec-client -s -d 2 // Made LG as Active source
echo 'scan' | cec-client -s -d 2

Buster Image: Linux 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux

Same buster load on RPI 3 and 3B+ work - we can turn OFF/ON TV and we receive key presses.

We have changed several HDMI cables to make sure that HDMI cable is not an issue. We tried HDMI0 (port close to USB-C). That port does not display anything on TV and does work for us.

Has anybody successfully received key presses on RPI 4 using CEC lib, please point us to what we may be doing wrong.

Kendek
Posts: 145
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: CEC: RPI 4: No key press received

Wed Oct 09, 2019 2:18 pm

Set the

Code: Select all

hdmi_preferred=1
in /boot/config.txt to shift audio and CEC to HDMI1.

schadha
Posts: 7
Joined: Sun Dec 14, 2014 8:23 am

Re: CEC: RPI 4: No key press received

Wed Oct 09, 2019 3:09 pm

We had HDMI cable in HDMI 1 (close to USB) connected to source 1 on LG TV. We added

Code: Select all

hdmi_preferred=1 
in file /boot/config.txt (as a last line), rebooted.

Still we do not receive key presses. Our sound which used to come on TV stopped to come.

Kendek
Posts: 145
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: CEC: RPI 4: No key press received

Wed Oct 09, 2019 3:17 pm

Then I don't know, but I'm sure that the CEC (libCEC 4.0.4) works well with LibreELEC.

Return to “Advanced users”