Posts by dbahia

    so previous test image works? interesting... Do you have AVR connected between board and TV? I would really like to see capture of communication on your CEC bus...

    That is actually good. External 32 kHz crystal works, which is a prerequisite for HW CEC.

    Yes, that should work. It depends on your TV slightly, which messages are sent at which time. Anyway, CEC wakeup is supported only with HW CEC. Power management FW doesn't have a lot of space available, so writing SW CEC for it is out of the question. It would also take too much time.

    It works sporadically, if CEC times out at startup it doesn't work, and even if doesn't time out, most of the commands doesn't work and it is really slow. There is no AVR between board and TV.

    dbahia Here is update, which uses SW CEC implementation for Pine64+: http://jernej.libreelec.tv/test/cec/ Please test and report if it works for you. It would also be interesting to see output of this command devmem 0x01F00004 w - it may explain why HW CEC doesn't work for you.

    SW-CEC works, but this time I actually got the previous test updated that you sent me with HW-CEC to execute some commands also, they were really slow, and most of the commands didn't work, but dmesg doesn't show timed out messages. I've attached dmesg.

    As for the devmem 0x01F00004 w command, the result was: 0x00000001

    Also, how does de HDMI-CEC wakeup works? Should the device turn on when selecting source on TV?

    dbahia Board is not defective if SW CEC (implemented in image you referenced) works. There might be some issue in HW CEC driver, though. Please test this update and provide full dmesg: http://jernej.libreelec.tv/test/cec/

    I've attached the log with full dmesg. Performed update with the provided file before while running LibreELEC-A64.arm-11.0-nightly-20211122-ddc03f6-pine64-plus.img.gz

    Can you try latest nightly images, preferably with fresh installation? I have no idea what could be wrong with CEC on A64.

    Tried again with LibreELEC-A64.arm-11.0-nightly-20211122-ddc03f6-pine64-plus.img.gz

    Maybe my board is defective, I have timed out messages at dmesg related to CEC now, I didn't not have those before.

    [ 393.436523] cec-dw_hdmi: message 10 timed out

    [ 395.740500] cec-dw_hdmi: message 10 timed out

    [ 403.420531] cec-dw_hdmi: message 10 timed out

    [ 405.725956] cec-dw_hdmi: message 10 timed out

    [ 409.052525] cec-dw_hdmi: message 10 timed out

    [ 411.356541] cec-dw_hdmi: message 10 timed out

    [ 418.012503] cec-dw_hdmi: message 10 timed out

    [ 421.340528] cec-dw_hdmi: message 10 timed out

    [ 423.644514] cec-dw_hdmi: message 10 timed out

    [ 426.972508] cec-dw_hdmi: message 10 timed out

    LibreELEC-A64.arm-9.80-devel-20210309182253-b8ebd16-pine64-plus.img.gz works though.

    dbahia  -=guybrush=- CEC wakeup is already implemented in nightly images, but update won't do. You have to write fresh image to (spare) SD card. It works pretty reliably for me.

    -=guybrush=- Plug out and plug in is not needed anymore for a long time. Power button should work (if present) and IR too (again, if present) from LE 10 release forward. If device is TV box, power key on accompanied IR remote should work. If device is SBC, then IR scancode is set to RC6 MCE IR remote (a.k.a. Windows media center remote) power key. Unfortunately, there is no way to change that without rebuilding Crust FW and thus also U-Boot.

    HDMI-CEC still doesn't work for me since LE10, but power off and suspend worked like a charm using the SBC power button. I don't have IR installed in the board to test, but will try to get it running, since I have an MCE IR remote available.