Change TV HDMI input with CEC

  • Hello,

    Every time I power on my TV from LE with echo "on 0" | cec-client -s -d 1 command, it always start in the TV Digital channels and I need to change the HDMI input from TV's remote.

    Is there any CEC command to change the input to the TV?

    Kind regards.

  • Hi zorrua,

    I recently played around with some CEC commands, before I noticed that standby-control and input control from LE/KODI via CEC already works out of the box with my Panasonic TV. Maybe this is what you need:

    Code
    echo "tx 4F 82 10 00" | cec-client -s

    will set the input to HDMI1 ("10"), HDMI2 ("20") etc.

    When I switch on my TV with LE/Kodi already running (on a Raspberry-Pi), the TV starts with the last active TV channel, and then switches to Kodi after 2-3 seconds.