Help with CEC commands (N2)

Dear Portisch! I want to upgrade the CoreELEC from my parents to the newest nightly. I have SSH access to the device. I would like to set HDMI physical address using SSH. Can I set it to 2400 using SSH?

Yes, directly in the cec xml settings file in user data folder. Just take a look in your local file how it needs to be look like. I am on mobile and can’t check it.

1 Like

I tried many combinations. Some of them work (like 2100) but when I switch TV to Netflix or DVB-C and back to HDMI2 where N2 is, no CEC. I need to sens ActivateCEC command from Yatse or select Viera Link App on TV and select Player. I just don’t get it.

Please make a new log with your user setting 2100.
Maybe the TV does request anything what libCEC does not acknowledge.

Also be sure the “active source” is set in libCEC settings Kodi/settings/input. You also can play with the settings a bit.

Logs attached.
CEC set to 2100 and activate source is ON (did try without, no help).
Debug and CEC logging turned on, N2 restart.
CEC works fine, you can see that I start playing a tv show and than I stop and return to main screen. At this point I switch to Netflix on TV remote and hang there for 1 minutes or so. I switch back to HDMI2 port but CEC is not working. I try to switch to DVB-C on TV and back to HDMI2 port, nothing.
At this point I send the CEC Activate command from Yatse (I think it send the CECActivateSource() command) and CEC remote is back, fully functional.
Many thanks to looking into this!
Maybe an option to reactivate the set 2100 port when switched back to Kodi input? Not sure if something like this is possible, but if someone will know the fix for this, I’m sure it is you :slight_smile:log-2021-01-08-12.25.41.zip (846.3 KB) log-2021-01-08-12.33.51.zip (888.3 KB)

I will check it. It depends on the TV if the device does know it needs to re-read active source or not.
When the TV does send nothing the device doesn’t know to set active source at all.

I checked your log and I can tell you it can’t be solved. You have the worst CEC combination exist at all: TV Panasonic + AVR Onkyo.

The TV just do switch back to 2100 as active source. The CE device do accept it and get active but then the AVR change it back to 2000. So it take over the CEC control. Nothing I can do here.
You can open a issue on libCEC about your hardware setup: https://github.com/Pulse-Eight/libcec/issues
Maybe some libCEC developer can take a look.

	Line 3339: 2021-01-08 13:33:05.713 T:3713811328   DEBUG: CecLogMessage - >> 0f:80:00:00:20:00
	Line 3340: 2021-01-08 13:33:05.713 T:3713811328   DEBUG: CecLogMessage - >> TV (0) -> Broadcast (F): routing change (80)
	Line 3341: 2021-01-08 13:33:06.110 T:3713811328   DEBUG: CecLogMessage - >> 5f:81:21:00
	Line 3342: 2021-01-08 13:33:06.110 T:3713811328   DEBUG: CecLogMessage - making Playback 1 (4) the active source
	Line 3343: 2021-01-08 13:33:06.111 T:3713811328   DEBUG: CecLogMessage - marking TV (0) as inactive source
	Line 3344: 2021-01-08 13:33:06.111 T:3713811328   DEBUG: CecLogMessage - >> source activated: Playback 1 (4)
	Line 3345: 2021-01-08 13:33:06.111 T:3713811328   DEBUG: CecLogMessage - sending active source message for 'Playback 1'
	Line 3346: 2021-01-08 13:33:06.111 T:3713811328   DEBUG: CecLogMessage - << powering on 'TV' (0)
	Line 3347: 2021-01-08 13:33:06.111 T:3713811328   DEBUG: CecLogMessage - << 40:04
	Line 3348: 2021-01-08 13:33:06.111 T:3713811328   DEBUG: CecLogMessage - >> Audio (5) -> Broadcast (F): routing information (81)
	Line 3349: 2021-01-08 13:33:06.191 T:3713811328   DEBUG: CecLogMessage - << Playback 1 (4) -> broadcast (F): active source (2100)
	Line 3350: 2021-01-08 13:33:06.191 T:3713811328   DEBUG: CecLogMessage - << 4f:82:21:00
	Line 3355: 2021-01-08 13:33:06.460 T:3713811328   DEBUG: CecLogMessage - << Playback 1 (4) -> TV (0): menu state 'activated'
	Line 3356: 2021-01-08 13:33:06.460 T:3713811328   DEBUG: CecLogMessage - << 40:8e:00
	Line 3357: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - >> 0f:86:20:00
	Line 3358: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - >> TV (0) sets stream path to physical address 2000
	Line 3359: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - >> 0f:86:21:00
	Line 3360: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - >> TV (0) sets stream path to physical address 2100
	Line 3361: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - Playback 1 (4) was already marked as active source
	Line 3362: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - >> source activated: Playback 1 (4)
	Line 3363: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - << Playback 1 (4) -> broadcast (F): active source (2100)
	Line 3364: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - << 4f:82:21:00
	Line 3365: 2021-01-08 13:33:06.816 T:3713811328   DEBUG: CecLogMessage - >> TV (0) -> Broadcast (F): set stream path (86)
	Line 3367: 2021-01-08 13:33:06.944 T:3713811328   DEBUG: CecLogMessage - >> 5f:82:20:00
	Line 3368: 2021-01-08 13:33:06.944 T:3713811328   DEBUG: CecLogMessage - making Audio (5) the active source
	Line 3369: 2021-01-08 13:33:06.944 T:3713811328   DEBUG: CecLogMessage - marking Playback 1 (4) as inactive source
	Line 3370: 2021-01-08 13:33:06.944 T:3713811328   DEBUG: CecLogMessage - >> source deactivated: Playback 1 (4)
	Line 3371: 2021-01-08 13:33:06.944 T:3713811328   DEBUG: CecLogMessage - >> Audio (5) -> Broadcast (F): active source (82)

Thanks for looking into this. Sorry to hear. I didn’t have problems with my Denon AVR. But this Onkyo is way better.
What if I disable the CEC on AVR? I don’t use it a lot, most of the time just tv speakers. And if I need the AVR there is the remote. If I disable AVR CEC should I still leave the same HDMI value?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.