HDMI CEC Android Tv radxa_r14.2_20250221 not working

I have built android image using info from https://docs.radxa.com/en/rock5/rock5b/other-os/android/low-level-dev
My question is how should I get HDMI CEC working?
I seen that HDMI CEC support should be added by default now.

Hi, is this A14 based Firmware what you have achieved to build? If everything is working, would you mind sharing it with others so that we can also test it and give you feedback?

I am just building an android image to use my Rock5B as an media player.
I have used some other AndroidTV image that I was able to control with my tv-s remote.
I assumed that it is HDMI CEC functionality that enables this.
Looking for anyone who has made that feature working with Raxda Android OS and help out.

Which android base are you using? Android 14 or Android 12 ?
If you are building A14, kindly build a nvme version also for those who are having only SSD not eMMC. Thank you and good luck

I am using Android 12. So far Android 14 is for rock 4 as I understand.

And also for 5c since yesterday!
I hope 5b is next ??

So far I have gotten that all commands result errorCode=-2
Does anyone has any clue what should I look out for next?

Log from LogCat
601 601 I HdmiCecLocalDeviceSource: queryDisplayStatus already in progress
601 735 W HdmiCecController: Failed to send 40:8F with errorCode=-2
601 735 W HdmiCecController: Failed to send 4F:84:FF:FF:04 with errorCode=-2
436 436 E hdmicec : hdmi_cec_send_message open error
601 735 W HdmiCecController: Failed to send 4F:87:00:00:01 with errorCode=-2
436 436 E hdmicec : hdmi_cec_send_message open error
436 436 E hdmicec : hdmi_cec_send_message open error
601 735 W HdmiCecController: Failed to send 40:47 with errorCode=-2
436 436 E hdmicec : hdmi_cec_send_message open error
436 436 E hdmicec : hdmi_cec_send_message open error
601 735 W HdmiCecController: Failed to send 45:7D with errorCode=-2
436 436 E hdmicec : hdmi_cec_send_message open error
436 436 E hdmicec : hdmi_cec_send_message open error
601 735 W HdmiCecController: Failed to send 4F:82:FF:FF with errorCode=-2
436 436 E hdmicec : hdmi_cec_send_message open error
436 436 E hdmicec : hdmi_cec_send_message open error
601 735 W HdmiCecController: Failed to send 40:0D with errorCode=-2
436 436 E hdmicec : hdmi_cec_send_message open error
436 436 E hdmicec : hdmi_cec_send_message open error
601 735 W HdmiCecController: Failed to send 40:8F with errorCode=-2

CEC seems to only work on one of the HDMI ports - the one further away from the USB-C connector. Is that the one you are connecting to?

It is the same for both HDMI ports.
I figured out that it shoukd be kernel issue. Android tries to communicate with cec driver.

I have figured out that rk3588-rock-5b-box.dts used in android12 build files does not have cec enabled.
I tried to use rk3588-rock-5b-pro.dts that seems to be also usable for rock-5b and with that cec worked.

Hi, can you share your patch/tweak with the ROM developer mo123? He might use your fix in his ROM for enabling CEC function in his firmware for 5b+. Thanks