I have a new RPi 5 with LibreELEC 12.0.2 connected to a Samsung TV (UN43NU6950). The RPi connects to one of the HDMI inputs and a satellite receiver connects to a second HDMI input. There are no problems controlling LibreELEC with the Samsung remote using CEC.
Here is the problem: I leave the RPi/LibreELEC running all the time. I switch to the HDMI input for the satellite receiver. I then turn my TV off. When I turn on the TV again, the HDMI input is switched to the RPi/LibreELEC. I would like my TV to use the same HDMI input that was being used when the TV was turned off. Any suggestions? Thanks.