CEC / HDMI commands Cubox

  • Hi all,
    As of Yesterday i migrated to libreelec. Looks great but there is 1 bug/ issue that is anoying and perhaps someone can help me with that. I use a cubox-i4 pro I could only found a 7.95 version (auto update is enabled but not installing newer).

    The bug is that my samsung tv is not finding kodi anymore over anynet (cec) so i cannot controll it with my tv remote. On openelec there is/was the issue that i manually need to search and select kodi to use cec instead of automatically and i was hoping that this was fixed using libreelec. For now i cannot get it to work at all.

    Where to start and how to fix this? Thanks in advance.


  • Start with 8.0.0 found in LibreELEC.USB-SD.Creator or manually download and update (update works also with img.gz).
    LibreELEC-imx6.arm-8.0.0.tar
    LibreELEC-imx6.arm-8.0.0.img.gz

    I also have Samsung TV and CEC works fine. But sometimes I need to search for devices on TV or at least switch to livetv and then back to hdmi.

    Thanks!
    It is not on the download page, perhaps that someone can add imx6 to the drop down menu on the website.
    Going to update after my wife is done watching the movie. Sounds promissing that you got cec working. the search is due to libcec issues and is going on for years now but in my case i now have no cec whatsover. So hopefully it works straight away (with the search needed still). Or did you do some settings to get it working?
    [hr]
    Installed update. That all went ok. But cec is still not working. Sometimes kodi gives tv connected but isn't it working. The tv sometimes finds recorder (instead of kodi) but after selection it can't connect to it so also no cec working.

    Tried several reboots from libreelec, tv and channel switching, no luck.

    Edited once, last by tunf (March 19, 2017 at 8:04 PM).


  • Than blame Samsung because they broke even more with latest updates.
    But cec works in general.

    It is an "old" model that used to work. Back in the day with openelec 5 it was working. After that it has been working until i selected it on my tv to use kodi. With librreelec it is not working at all as it sees recorder instead of kodi. I still thinks it has to do wit libreelec and not good starting the cec module or so.


  • Of course it could be with libreelec (more than 2 years passed!). But like I wrote cec works for others.

    Just to inform, updated to 8.0.1, no cec connection, my tv founds recorder as device, then after about 1 minute or so kodi gives a popup, cec connected to tv. After that scanning in my tv is not finding a device.

    As a bonus the update process hangs on starting up on my cubox-i with a blinking red light. power off power on and it was up and running.


  • Code
    systemctl stop kodi
    cec-client


    LibreELEC (official) Version: 8.0.1
    LibreELEC:~ # systemctl stop kodi
    cLibreELEC:~ # cec-client
    No device type given. Using 'recording device'
    CEC Parser created - libCEC version 4.0.1
    no serial port given. trying autodetect:
    path: /dev/mxc_hdmi_cec
    com port: i.MX

    opening a connection to the CEC adapter...
    DEBUG: [ 316] Broadcast (F): osd name set to 'Broadcast'
    NOTICE: [ 317] connection opened
    DEBUG: [ 317] processor thread started
    DEBUG: [ 317] << Broadcast (F) -> TV (0): POLL
    TRAFFIC: [ 317] << f0
    TRAFFIC: [ 838] << f0
    DEBUG: [ 1342] >> POLL not sent
    DEBUG: [ 1342] TV (0): device status changed into 'not present'
    NOTICE: [ 1342] registering new CEC client - v4.0.1
    DEBUG: [ 1342] detecting logical address for type 'recording device'
    DEBUG: [ 1342] trying logical address 'Recorder 1'
    DEBUG: [ 1342] << Recorder 1 (1) -> Recorder 1 (1): POLL
    TRAFFIC: [ 1342] << 11
    TRAFFIC: [ 1846] << 11
    DEBUG: [ 2351] >> POLL not sent
    DEBUG: [ 2351] using logical address 'Recorder 1'
    DEBUG: [ 2351] Recorder 1 (1): device status changed into 'handled by libCEC'
    DEBUG: [ 2351] Recorder 1 (1): power status changed from 'unknown' to 'on'
    DEBUG: [ 2351] Recorder 1 (1): vendor = Pulse Eight (001582)
    DEBUG: [ 2351] Recorder 1 (1): CEC version 1.4
    DEBUG: [ 2351] AllocateLogicalAddresses - device '0', type 'recording device', LA '1'
    DEBUG: [ 2351] Recorder 1 (1): osd name set to 'CECTester'
    DEBUG: [ 2351] Recorder 1 (1): menu language set to 'eng'
    DEBUG: [ 2351] AutodetectPhysicalAddress - autodetected physical address '2000'
    DEBUG: [ 2351] Recorder 1 (1): physical address changed from ffff to 2000
    DEBUG: [ 2351] << Recorder 1 (1) -> broadcast (F): physical address 2000
    TRAFFIC: [ 2351] << 1f:84:20:00:01
    TRAFFIC: [ 2855] << 1f:84:20:00:01
    NOTICE: [ 3359] CEC client registered: libCEC version = 4.0.1, client version = 4.0.1, firmware version = 0, logical address(es) = Recorder 1 (1) , physical address: 2.0.0.0, git revision: heads/libreelec-8.0, compiled on Mon Feb 27 05:24:55 UTC 2017 by chewitt@buildbox on Linux 4.4.0-59-generic (x86_64), features: P8_USB, DRM, P8_detect, iMX6
    DEBUG: [ 3359] << Recorder 1 (1) -> TV (0): OSD name 'CECTester'
    DEBUG: [ 3359] << Recorder 1 (1) -> TV (0): POLL
    TRAFFIC: [ 3359] << 10
    TRAFFIC: [ 3864] << 10
    DEBUG: [ 4368] >> POLL not sent
    DEBUG: [ 4368] not sending command 'set osd name': destination device 'TV' marked as not present
    DEBUG: [ 4368] << requesting power status of 'TV' (0)
    DEBUG: [ 4368] << Recorder 1 (1) -> TV (0): POLL
    TRAFFIC: [ 4368] << 10
    TRAFFIC: [ 4872] << 10
    DEBUG: [ 5376] >> POLL not sent
    waiting for input
    DEBUG: [ 5376] not sending command 'give device power status': destination device 'TV' marked as not present
    ^Csignal caught: 2 - exiting
    DEBUG: [ 13490] unregistering all CEC clients
    NOTICE: [ 13490] unregistering client: libCEC version = 4.0.1, client version = 4.0.1, firmware version = 0, logical address(es) = Recorder 1 (1) , physical address: 2.0.0.0, git revision: heads/libreelec-8.0, compiled on Mon Feb 27 05:24:55 UTC 2017 by chewitt@buildbox on Linux 4.4.0-59-generic (x86_64), features: P8_USB, DRM, P8_detect, iMX6
    DEBUG: [ 13490] Recorder 1 (1): power status changed from 'on' to 'unknown'
    DEBUG: [ 13490] Recorder 1 (1): vendor = Unknown (000000)
    DEBUG: [ 13490] Recorder 1 (1): CEC version unknown
    DEBUG: [ 13491] Recorder 1 (1): osd name set to 'Recorder 1'
    DEBUG: [ 13491] Recorder 1 (1): device status changed into 'unknown'
    DEBUG: [ 13491] unregistering all CEC clients