It is rare that a computer have HDMI-CEC natively.
Try the command “cec-ctl” (which is part of v4l-utils) or take a look at the Arch Wiki.
Even if your hardware doesn’t support it, you can still use displayport with an adapter or even a usb+hdmi adapter.




The TV will be connected with HDMI and computer will have its DisplayPort converted to HDMI by a supported adapter. But:
DisplayPort to HDMI Adapters with working CEC
HDMI-CEC Tunneling over DisplayPort | Arch Wiki
TL;DR
Connect your computer’s DisplayPort with DP-HDMI adapter to TV’s HDMI. To test if the adapter tunnels CEC, run in a terminal:
Which should show at least two devices.