Skip to content

Instantly share code, notes, and snippets.

@ludwigm
Created May 30, 2014 21:09
Show Gist options
  • Save ludwigm/5d51b6ae823d045ed1db to your computer and use it in GitHub Desktop.
Save ludwigm/5d51b6ae823d045ed1db to your computer and use it in GitHub Desktop.
CEC commands usable by raspberry pi
# libcec compile tutorial: http://nyxi.eu/blog/2013/04/15/raspbian-libcec/
# switch off TV
echo "tx 10 36" | cec-client -s
# switch on TV
echo "on 0" | cec-client -s
# or
echo "tx F0 36" | cec-client -s
# switch to raspberry source
echo "as" | cec-client -s
# switch to a specific HDMI source (source 4 here)
echo "tx 1f 82 40 00" | cec-client -s
# build own command: http://www.cec-o-matic.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment