I have Dietpi, Kodi, and RetroArch installed, and everything is working perfectly, but it’s really annoying that CEC stops working frequently and my TV won’t turn on when I press a button on the remote. Sometimes it works, sometimes it doesn’t. Does anyone know if it’s related to a setting in dietpi.txt or something similar?
thank you
Please fill the troubleshooting template. Such hardware features heavily depend on the board used. dietpi.txt does not cover anything in this regards. CEC sometimes needs to be enabled via device tree overlay or parameters on SBCs. Debugging would imply checking kernel logs etc, but let’s start with basic info about your system.
I’ll move the topic to troubleshooting category.
I have a Pi 5; sorry for not mentioning it.
On Raspberry Pi, it should work OOTB, and that it works at least sometimes for you verifies it.
Did you install cec-utils and used cec-client to test and debug whether the TV reacts reliably to it?
cec-client -l
echo 'scan' | cec-client -s -d 1
What kind of remote do you use, how is it attached?
I use an Argon V3 NVMe case and a Fonestar IR remote that works with the case’s IR receiver. CEC works fine, though the only issue is that sometimes the TV doesn’t turn on; once it is on, I can control Kodi using the TV remote via CEC. The only problem is that sometimes, when I use the Fonestar IR remote or even the Kodi app on my Android phone, the TV doesn’t turn on via CEC, whereas other times it works perfectly.
When the TV does not turn on via remote, does it turn on when you run this
echo 'on 0' | cec-client -s -d 1
assuming “0” is the correct device ID/address?
Otherwise, maybe the TV has a deeper standby mode where it does not react to CEC commands anymore?