Just installed Raspbian on a 3 B connected to a TV that supposedly supports CEC (LG 47LD450), but struggling to find any info on how to test CEC on Raspbian.
I want to confirm that it works, or alternatively isolate which part doesn't work (e.g. the cable), but the only thing that turns up in my searches is the cec-client
command. It does nothing for me except saying that auto detect failed. Not sure what that's indicative of. I don't know if the tool is suitable for what I want.
pi@raspberrypi:~ $ cec-client
No device type given. Using 'recording device'
CEC Parser created - libCEC version 4.0.1
no serial port given. trying autodetect: FAILED
Is it supposed to fail auto detection if my cable is faulty? That I've found indications of; some threads I've found immediately start talking about cables. It just felt weird to me at first because I got the impression that cec-client
was searching for some internal device, which doesn't require the presence of a hdmi cable. I suppose that was a wrong impression.
How do I test CEC?
Update
I haven't found an answer yet, but...
I installed LibreELEC and could immediately conclude that 1. CEC works and that the cable is not faulty, 2. Raspbian doesn't support CEC out of the box (apparently) since it never worked in Kodi, 3. neither cec-client
nor the suggested tvservice
command could confirm that the software setup was insufficient — at least the way I used them.