It looks the cec-client in lates nightly 9.8's is compiled without RPi feature so it does not work anymore on RPi 4B.
Please find the details below.
Hardware: RPI 4B / 1 GB
LG TV
LE version:
LibreELEC (community): nightly-20201024-636e32e (RPi4.arm)
(LibreELEC-RPi4.arm-9.80-nightly-20201024-636e32e.tar)
Upgraded from official 9.2.5 where the HDMI CEC was partially working, some comamnds did not work (maybe the TV issue), some working commands sometimes failed with Segmentation fault error
On 9.2.5:
LibreELEC (official): 9.2.5 (RPi4.arm)
LibreELEC:~ # echo 'scan' | cec-client -s -d 1
opening a connection to the CEC adapter...
requesting CEC bus information ...
CEC bus information
===================
device #0: TV
address: 0.0.0.0
active source: no
vendor: LG
osd string: TV
CEC version: 1.3a
power status: on
language: eng
device #1: Recorder 1
address: 1.0.0.0
active source: no
vendor: LG
osd string: CECTester
CEC version: 1.3a
power status: on
language: eng
on 9.80:
LibreELEC (community): nightly-20201024-636e32e (RPi4.arm)
RPi feature is missing...
LibreELEC:~/downloads # cec-client -l
libCEC version: 4.0.7, compiled on 2020-10-24 09:04:10 by jenkins@tsuboi on Linux 4.19.0-8-amd64 (x86_64), features: P8_USB, DRM, P8_detect, Linux
Found devices: 1
device: 1
com port: Linux
vendor id: 0000
product id: 0000
firmware version: 0
type: Linux
LibreELEC:~/downloads # echo 'scan' | cec-client -s -d 1
opening a connection to the CEC adapter...
ERROR: [ 60] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 60] could not open a connection (try 1)
ERROR: [ 1060] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 1060] could not open a connection (try 2)
ERROR: [ 2060] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 2060] could not open a connection (try 3)
ERROR: [ 3060] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 3060] could not open a connection (try 4)
ERROR: [ 4061] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 4061] could not open a connection (try 5)
ERROR: [ 5061] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 5061] could not open a connection (try 6)
ERROR: [ 6061] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 6062] could not open a connection (try 7)
ERROR: [ 7062] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 7062] could not open a connection (try
ERROR: [ 8062] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 8062] could not open a connection (try 9)
ERROR: [ 9063] CLinuxCECAdapterCommunication::Open - ioctl CEC_S_MODE failed - errno=16
ERROR: [ 9063] could not open a connection (try 10)
unable to open the device on port Linux
ERROR: [ 10063] could not start CEC communications
On RaspberryPI OS 5.4.51-v7l+:
cec-client works
pi@raspberrypi:~/Downloads $ cec-client -l
libCEC version: 4.0.4, compiled on Linux-4.15.0-48-generic ... , features: P8_USB, DRM, P8_detect, randr, RPi, Exynos, AOCEC
Found devices: 1
device: 1
com port: RPI
vendor id: 2708
product id: 1001
firmware version: 1
type: Raspberry Pi