I have a TCL TV running ROKU. I can't control my Raspberry Pi 5 with my remote.
I fixed this by following the following steps:
- Quickly press the following on the TV remote: Home x5 > Rewind > Down > Fast Forward > Down > Rewind.
- This will open up a secret menu, "TV Secret Screen", where you should enable "CEC Remote Control".
- Turn the TV off and on again, it should now work.
I am documenting this for posterity.
A useful command for debugging CEC is cec-ctl --monitor.