2014-05-25, 01:51
Edited rc.local to this
and manually ran.
Please note, I am still a beginner on Linux, so am piecing together all info and how to's as I go.
Latest log
mytv.sh
rc.local
Doh! did I need the @bin.vcgencmd also?
Code:
sleep 5 && su pi -c '/home/pi/texturecache.py @logfile=/home/pi/t8.txt @debug=yes @bin.tvservice=/opt/vc/bin/tvservice @xbmc.host=localhost @bin.ceccontrol=/home/pi/mytv.sh rbphdmi 300'
and manually ran.
Quote:pi@raspbmc:~$ /etc/rc.localInterestingly, 2014-05-25 11:41:12.651130: [rbphdmi] Sending Application.Quit() to XBMC so Raspbmc restarted.
Password:
2014-05-25 11:29:59.992334: [rbphdmi] HDMI Power off delay: 300 seconds (ignored when Can Suspend is yes)
2014-05-25 11:29:59.995501: [rbphdmi] Player OnStop delay : 5 seconds (ignored when Can Suspend is yes)
2014-05-25 11:29:59.997895: [rbphdmi] Path to tvservice : /opt/vc/bin/tvservice
2014-05-25 11:30:00.000410: [rbphdmi] Path to vcgencmd : None
2014-05-25 11:30:00.002692: [rbphdmi] Path to ceccontrol : /home/pi/mytv.sh
2014-05-25 11:30:00.006455: [rbphdmi] Connecting to XBMC on localhost...
2014-05-25 11:30:00.060144: [rbphdmi] Connected to XBMC
2014-05-25 11:30:00.065707: [rbphdmi] HDMI power management thread - initialising XBMC and HDMI state
2014-05-25 11:30:00.220157: [rbphdmi] HDMI is [on], Screensaver is [active], Player is [inactive], Library scan [inactive], CanSuspend [no], CanDisable [no]
2014-05-25 11:30:00.223147: [rbphdmi] HDMI power off in 300 seconds unless cancelled
2014-05-25 11:35:00.333746: [rbphdmi] HDMI is now off
2014-05-25 11:41:12.646337: [rbphdmi] Screensaver has deactivated
2014-05-25 11:41:12.651130: [rbphdmi] Sending Application.Quit() to XBMC
2014-05-25 11:41:12.746786: [rbphdmi] XBMC exited - waiting for restart...
2014-05-25 11:41:12.977021: [rbphdmi] HDMI is now on
2014-05-25 11:41:27.779571: [rbphdmi] XBMC not responding, retries remaining 12
2014-05-25 11:41:32.805091: [rbphdmi] Connected to XBMC
2014-05-25 11:41:32.807855: [rbphdmi] HDMI power management thread - initialising XBMC and HDMI state
2014-05-25 11:41:32.940959: [rbphdmi] HDMI is [on], Screensaver is [inactive], Player is [inactive], Library scan [inactive], CanSuspend [no], CanDisable [no]
Please note, I am still a beginner on Linux, so am piecing together all info and how to's as I go.
Latest log
Code:
pi@raspbmc:~$ uname -a
Linux raspbmc 3.10.36 #4 PREEMPT Sun Apr 13 21:25:32 UTC 2014 armv6l GNU/Linux
Code:
pi@raspbmc:~$ vcgencmd version
May 23 2014 19:17:25
Copyright (c) 2012 Broadcom
version 21d0de90961749983d49ec4e819a98a8ba4287fc (clean) (release)
mytv.sh
Code:
#!/bin/bash
case "$1" in
"off") echo "standby 0" | /opt/xbmc-bcm/xbmc-bin/bin/cec-client -s >/dev/null;;
"on") echo "on 0" | /opt/xbmc-bcm/xbmc-bin/bin/cec-client -s >/dev/null;;
esac
echo "$(date) called with $1 param" >> /tmp/tvservice.log
rc.local
Code:
sleep 5 && su pi -c '/home/pi/texturecache.py @logfile=/home/pi/t8.txt @debug=yes @bin.tvservice=/opt/vc/bin/tvservice @xbmc.host=localhost @bin.ceccontrol=/home/pi/mytv.sh rbphdmi 300'
Doh! did I need the @bin.vcgencmd also?