CEC Restart Script?

  • Hi,

    Sometimes when I turn the box on, CEC doesn't work until I switch my TV to another input and back to the HDMI input. Sometimes it works.

    It could be my TV (older sony) or it could be a CEC lib issue, however I'm looking for a way to reload the libcec driver somehow on autostart. Is there a script or command that will force the re-load? If so, how?

  • CEC is one of those 'standards' that has many implementations, and apparently with lots of subtle differences per TV manufacturer (and maybe even per TV brand/range).

    It's best to turn on the TV first, and then the LibreELEC box, so the HDMI handshake can be fully executed. AFAIK, there are no CEC commands possible via the busybox backend.

    You could try and implement the TV's EDID into LE. Read here: Configuring a Custom xorg.conf - OpenELEC


  • CEC is one of those 'standards' that has many implementations, and apparently with lots of subtle differences per TV manufacturer (and maybe even per TV brand/range).

    It's best to turn on the TV first, and then the LibreELEC box, so the HDMI handshake can be fully executed. AFAIK, there are no CEC commands possible via the busybox backend.

    You could try and implement the TV's EDID into LE. Read here: Configuring a Custom xorg.conf - OpenELEC

    Thanks for the response, I read in this thread:

    LibreELEC

    It says: "... Amlogic doesn't use X, it uses EGL and there is no xorg ...". However I know that EGL doesn't itself handle CEC, just video mode configs, etc, but the app/process that integrates EGL must get this enumeration from somewhere.

    It would be nice if we can force a custom edid file for your TV. Does anyone know if this is possible? Are there any command line tools in libreelec that let you snoop the edid, e.g. read-edid edid-decode get-edit? If not maybe there are some bins available for arm64 that can be used in libreelec?

    Thanks
    [hr]


    Klojum Custom EDID doesn't work that way on Amlogic.

    crazycoder The only way you can "restart" CEC is to restart Kodi.

    kszaq, thanks for the response, is there any way to force an edid binary/profile to libcec?

    Edited once, last by crazycoder (October 19, 2016 at 10:04 PM).

  • I leave my box on 24/7 so CEC only sometimes works when the tv is powered on. To fix it without restarting I find if i select simplelink (lg cec) button on the LG remote and then select the LE box which shows up as HDD Recorder i find CEC starts to work.

    Edited once, last by JonSnow (October 19, 2016 at 10:26 PM).


  • kszaq, thanks for the response, is there any way to force an edid binary/profile to libcec?

    HDMI driver has no way to provide a custom EDID. As far as I know EDID has nothing to do with CEC - at least on Amlogic. You may want to play with CEC options in Kodi, e.g. turn on "Make Kodi the active source when starting".


  • Hi,

    Sometimes when I turn the box on, CEC doesn't work until I switch my TV to another input and back to the HDMI input. Sometimes it works.

    It could be my TV (older sony) or it could be a CEC lib issue, however I'm looking for a way to reload the libcec driver somehow on autostart. Is there a script or command that will force the re-load? If so, how?

    Hi,
    did you find a solution?
    Seems, I have similar problem. As I wrote in my post here thread-2156-post-32228.html#pid32228
    Thanks...