I've got a TV with an Apple TV, Pi, and a PS4 plugged into it. Both the Apple TV and the PS4 switch to their HDMI inputs when I click the remote or turn the controller on. How can I achieve the same thing with the PI and its keyboard and/or mouse?

Both tvservice and vcgencmd don't seem to have anything helpful there.

1 Answer 1


Here's a similar question from five months ago and the proposed solution is to run the following:

echo "as" | cec-client RPI -s -d

Here's a relatively recent tutorial on how to use the cec-client.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.