cec-client
Install
$ sudo apt-get install cec-utils -y
TVのon/offの確認
$ echo 'pow 0' | cec-client -s -d 1
TVをon
$ echo 'on 0' | cec-client -s -d 1
TVをoff
$ echo 'standby 0' | cec-client -s -d 1
$ sudo apt-get install cec-utils -y
$ echo 'pow 0' | cec-client -s -d 1
$ echo 'on 0' | cec-client -s -d 1
$ echo 'standby 0' | cec-client -s -d 1