2014-05-24, 22:22
@MilhouseVH
So I take it I need to change the command in rc.local from
to
Main changes being adding of
@bin.vcgencmd=/opt/vc/bin/vcgencmd and changing of @bin.tvservice=/home/pi/mytv.sh to @bin.ceccontrol=/home/pi/mytv.sh
Noting that for Raspbmc vcgencmd is located in [b]/opt/vc/bin/[b] folder, and my script is used to power off the TV if the HDMI port on the Pi is powered off (switched off), and my script is
Does that seem right? Suppose I could give it a try, but don't want to annoy the wife if it goes wrong. LOL.
So I take it I need to change the command in rc.local from
Code:
sleep 20 && /home/pi/texturecache.py @logfile=/home/pi/t6.txt @debug=yes @xbmc.host=localhost @bin.tvservice=/home/pi/mytv.sh rbphdmi 420
Code:
sleep 20 && /home/pi/texturecache.py @logfile=/home/pi/t6.txt @debug=yes @xbmc.host=localhost @bin.vcgencmd=/opt/vc/bin/vcgencmd @bin.ceccontrol=/home/pi/mytv.sh rbphdmi 420
Main changes being adding of
@bin.vcgencmd=/opt/vc/bin/vcgencmd and changing of @bin.tvservice=/home/pi/mytv.sh to @bin.ceccontrol=/home/pi/mytv.sh
Noting that for Raspbmc vcgencmd is located in [b]/opt/vc/bin/[b] folder, and my script is used to power off the TV if the HDMI port on the Pi is powered off (switched off), and my script is
Code:
#!/bin/bash
/opt/vc/bin/tvservice $1
case "$1" in
"--off") echo "standby 0" | /opt/xbmc-bcm/xbmc-bin/bin/cec-client -s >/dev/null;;
"--preferred") echo "on 0" | /opt/xbmc-bcm/xbmc-bin/bin/cec-client -s >/dev/null;;
esac
echo "$(date) called with $1 param" >> /tmp/tvservice.log
Does that seem right? Suppose I could give it a try, but don't want to annoy the wife if it goes wrong. LOL.