This is the tvoff.sh script I put in /home/pi/
Code: Select all
echo standby 0 | cec-client -s -d 1
and this is the turn-tv-off-at-shutdown.service file
Code: Select all
[Unit]
Description=TUrn off the TV at shutdown only
DefaultDependencies=no
Conflicts=reboot.target
Before=poweroff.target halt.target shutdown.target
Requires=poweroff.target
[Service]
Type=oneshot
ExecStart=/home/pi/tvoff.sh start
RemainAfterExit=yes
[Install]
WantedBy=shutdown.target
It simply doesn't turn off the TV at shutdown so what is wrong here?