Linux KODI 14.1...16 - CEC not working for non-default HDMI port
#1
Had XBMC 12.2 + libCEC 2.1 running fine for ca. 2 years. XBMC configured for CEC on "HDMI2" port.
Gentoo linux, NVidia proprietary driver, Panasonic TV.

Would like to upgrade, but its not working:

KODI 14.1 + libCEC 2.2:
Impossible to make CEC work (non default HDMI port) via KODI GUI:
The GUI config option "HDMI port" (in CEC input device config)is gone (WHY Huh).
Tried to change The "Physical port" config option , but that never worked.
Workaround:
Manually fixing up "cec_hdmi_port" in userdata/peripheral_data/usb_2548_1001.xml when KODI is not running, then start kodi. Will make KODI read the HDMI port and CEC works. Must not try to reconfigure via GUI any CEC paameters though, because when KODI writes out new xml file it will have dropped the HDMI port.

KODI 15.2.
Not tested, already required libcec >= 3, so i only tested 16.

KODI 16.0.
1. LibCEC crashes KODI:
Seemingly known problem with 3.0.1 libCEC. It tries to open /sys/class/drm/ in drm-edid.cpp, does not check for null pointer ... crash.
1. Workaround:
Fixup libCEC, just return 0 from routine trying to open /sys/class/drm when that does not exist (machines with NVidia proprietary driver do not have this).

2. Can not get KODI 16.0 to make CEC work. GUI does not have HDMI port setting (same as 14.1), but now the workaround for 14.1 (fixup xml file before starting KODI) does not work either. cec-client continues to work fine (used to check that CEC/libcec itself is not broken).

Am i the only one using KODI not via the first HDMI port or is there something else unique about my setup i wonder.. Otherwise i can't explain how this is deteriorating code for years.

Thanks
Reply
#2
Hi

Could you elaborate on the Kodi crash workaround, I'm facing the same issue. How exactly do I return 0?

Quote:1. Workaround:
Fixup libCEC, just return 0 from routine trying to open /sys/class/drm when that does not exist (machines with NVidia proprietary driver do not have this).

Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
KODI 14.1...16 - CEC not working for non-default HDMI port0