HDMI-CEC work on PINE RockPRO64 until TV goes off and on cycle

  • munninen Absolutely agree!

    Nevertheless, I checked the issue again and found that just restarting Kodi systemctl restart kodi.service solve the issue. Which points me to suspection that the issue is not in the hdmi-cec driver itself but somewhere in the Kodi, or maybe specificaly in libCEC library/addon.

  • Nevertheless, I checked the issue again and found that just restarting Kodi systemctl restart kodi.service solve the issue. Which points me to suspection that the issue is not in the hdmi-cec driver itself but somewhere in the Kodi, or maybe specificaly in libCEC library/addon.

    This is actually very helpful, thanks for reporting.

    Have you tried playing with any of those CEC-settings in System->Inputs->Peripherals->CEC Adapter - espacially those for "When TV is switched off" or "Action when switching to another source"? Sorry that I can do only guesswork here again: Since I can't reproduce this issue here, I can only guess what eventually needs to be changed.

    (Not sure it is required, but better restart kodi after changing any of these settings)

  • I tested a lot of combination in CEC Adapter setting but none works. Usually it is same or worse (RC doesn't work even kodi service restart).

    Nevertheless I found two maybe interesting things:

    1) I turned on Kodi debug logs for libCEC. Kodi is trying to change physical address to "FFFF" but there is no such value in CEC Adapter

    TV is on and I put it into standby mode:

    2021-09-07 19:04:21.604 T:2770 DEBUG <general>: PushCecKeypress - received key a8 duration 73

    2021-09-07 19:04:21.604 T:2770 DEBUG <general>: CecLogMessage - >> TV (0) -> Playback 1 (4): user control release (45)

    2021-09-07 19:04:26.609 T:2770 DEBUG <general>: CecLogMessage - CLinuxCECAdapterCommunication::Process - ioctl CEC_RECEIVE - rx_status=01 len=8 addr=0f opcode=a0

    2021-09-07 19:04:26.609 T:2770 DEBUG <general>: CecLogMessage - >> 0f:a0:00:80:45:20:01:11

    2021-09-07 19:04:26.609 T:2770 DEBUG <general>: CecLogMessage - TV (0): power status changed from 'on' to 'standby'

    2021-09-07 19:04:26.609 T:2770 DEBUG <general>: CecLogMessage - >> TV (0) -> Broadcast (F): vendor command with id (A0)

    2021-09-07 19:04:26.679 T:2770 DEBUG <general>: CecLogMessage - CLinuxCECAdapterCommunication::Process - ioctl CEC_RECEIVE - rx_status=01 len=2 addr=0f opcode=36

    2021-09-07 19:04:26.679 T:2770 DEBUG <general>: CecLogMessage - >> 0f:36

    2021-09-07 19:04:26.679 T:2770 DEBUG <general>: CecLogMessage - >> TV (0) -> Broadcast (F): standby (36)

    2021-09-07 19:04:27.169 T:2770 DEBUG <general>: CecLogMessage - CLinuxCECAdapterCommunication::Process - ioctl CEC_RECEIVE - rx_status=01 len=2 addr=0f opcode=36

    2021-09-07 19:04:27.169 T:2770 DEBUG <general>: CecLogMessage - >> 0f:36

    TV is in standby mode and I turn it on via RC:

    2021-09-07 19:04:40.867 T:2770 DEBUG <general>: CecLogMessage - CLinuxCECAdapterCommunication::Process - CEC_DQEVENT - CEC_EVENT_STATE_CHANGE - log_addr_mask=0000 phys_addr=ffff

    2021-09-07 19:04:42.879 T:2770 DEBUG <general>: CecLogMessage - changing physical address to FFFF

    2021-09-07 19:04:42.879 T:2770 DEBUG <general>: CecLogMessage - SetDevicePhysicalAddress - not setting invalid physical address ffff

    2021-09-07 19:04:42.879 T:2770 DEBUG <general>: SetConfigurationFromLibCEC - settings updated by libCEC

    I tried to change physical address in the CEC Adapter settings without any effect.

    2) When I run cli command cec-ctl --tv -S while TV is on, Kodi up and RC works properly, immediately after execution RC stops working. I have to restart Kodi service to have RC working again.

  • I've just upgraded to the test img from the day before yesterday and still nothing new on this problem.

    It's really frustrating have to keep restarting the Kodi process each time the tv is turn off and I turn it on to watch something.

  • Thanks for the promising news!! Unfortunately I can't test the img. My box is a RockPro64 (RK3399), not a Rock64 (RK3328).

    This fix has been merged last couple of days and it's included in RK nightlies available at https://test.libreelec.tv/.

    I guess (hope) it was the same issue for all of you. Note that CEC is not available immediately after TV is swithed back on, you'll have to wait some secs (depends on TV) ... for debugging: https://github.com/LibreELEC/Libr…mment-944993387

    maddoxik  munninen  TV_Guy  Adr3nal1n

  • I just tested the RK nightly for RockPro64 (20211028) and remote controller works again after TV goes back from standby!

    Thanks for reporting back.

    The fix will also be included in LE 10.0.1 bugfix release (which I suggest to use) - it's expected to be released soon-ish.