[Rasplex 1.8.0] TV input keeps switching back to Rasplex

I did a fresh install of Rasplex yesterday evening and since then, the TV (an LG) keeps switching back to the Rasplex HDMI channel from the Ziggo Horizon HDMI channel. It does so every 5-10 minutes, which is very annoying when we are watching TV. I’ve been running Rasplex on my Raspberry PI1 for 2 years (I never really switch it off and just keep it running) and never had this issue before. I’ve searched the forums but haven’t found anyone with the same issue.

Is there a (new) setting causing this behavior or could it be a bug in the new version of Rasplex (I was running 1.6 before my fresh install)? Does anyone else have this issue or can someone poke me towards a cause or solution?

Mmm, I dont know
I made a power button for mine

Is it crashing or restarting itself? Did you check the logs?

That’s the weird part. It switches after 5 or 10 minutes without the device rebooting or crashing. It’s like it gets a signal through HDMI which triggers the TV to switch back to the Rasplex. I’ll try to flash the SD card again and see if it persists. If it does, I’ll try to check the logs.

Which device is set to the first HDMI port? It may be that the TV is auto switching depending on if there is a signal. ie. The Pi is set to HDMI 1 and the Ziggo to HDMI 2. If the TV thinks there is no signal on HDMI 2 for any reason then it auto switches to HDMI 1.

There may be an issue with the TV or the Ziggo or a cable for that matter. Try swapping ports and see what happens.

Or it could be that the pi goes to sleep, it wakes up for some reason and as the hdmi powers on again it goes back to that port

An RPi running RasPlex should never sleep… But this also depends on how it’s powered. I strongly advise against powering any RPi from USB ports of the TV set, since there’s no guarantee of constant and sufficient power supplied to USB ports that the TV set ‘considers’ to be unused when not accessing them. There’s also a risk of SD card corruption each time the TV set is turned off, since that may cut power to the RPi during file system access (like log file updates etc).

And of course, it may help to tweak some of the CEC adapter settings, since these control what HDMI protocol commands shall be permitted for interactions between RasPlex and the TV set (or other connected HDMI gear).
You’ll find those settings in the submenu:
Preferences > System (cogwheel icon) > “Input devices” > Peripherals > “CEC Adapter”

Best regards: dlanor

The Pi is using its normal AC power connector.

I will check the CEC adapter settings. Even with a brandnew 1.8.0 install, the issue persists. I will keep you posted.

@Valdhor said:
Which device is set to the first HDMI port? It may be that the TV is auto switching depending on if there is a signal. ie. The Pi is set to HDMI 1 and the Ziggo to HDMI 2. If the TV thinks there is no signal on HDMI 2 for any reason then it auto switches to HDMI 1.

There may be an issue with the TV or the Ziggo or a cable for that matter. Try swapping ports and see what happens.

I will try this as well, although I never had this issue with version 1.6.x.

Dlanor’s answer was the one that fixed the issue for me. I tinkered with the CEC settings a bit and set everything so HDMI / TV interaction is reduced to a minimum.
I do still have the issue that when I switch the TV to the Plex HDMI channel, I see a popup giving me the choice between “quit” (reboot) and “shutdown”. I’ve not had time to fix this, but it is definitely in the CEC settings as well.

Sorry for the late response and everyone thanks for helping me troubleshoot and fix this.

Hi,

I have problem switching to Rasplex source when i turn on TV (Toshiba).
My Raspberry pi have power from orginal adapter, not connected to TV usb.

I am trying:
Disable in CEC adapter settings on RasPlex “Switch source to this device on startup”.

Disable on TV CEC Auto Power.

Uncoment in /flash config.txt
hdmi_ignore_cec_init=1

Nothing help me, when I turn off TV on HDMI2, TV power on on HDMI2 but for 3 sec change to RasPlex HDMI port.

Can you help me please.

Hi,
may be not the best place to ask, but does someone knows how to update the libCEC on RasPlex, the newer version solves the input change problem, but I’m Linux noob and don’t know how to update it. Thanks in advance. The link with the latest version is: https://github.com/Pulse-Eight/libcec