<div dir="ltr">On Mon, Jan 18, 2016 at 3:38 PM R. G. Newbury <<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/18/2016 05:08 PM, John P Poet wrote:<br>
> While testing some new stuff, I was doing a lot of deleting/creating of<br>
> 'recorders'. During this process I ran into an issue starting LiveTV<br>
> because of recorder/channel miss-matches. The attached patch fixed it<br>
> for me. However, I am assuming that the code was written the way it was<br>
> for a reason. Can anyone that uses LiveTV take a look at this and see<br>
> if this is the correct solution?<br>
<br>
The intention is that the invocation of LIveTV will return you to the<br>
last channel watched... which may not actually be a good channel. I'm<br>
not sure that your patch will do the trick.<br>
To fix that I wrote a little script some years ago which just pokes<br>
'good' values into the cardinput table, Just keep a console open and<br>
reset things as needed, then open LiveTV<br>
<br>
##############################<br>
#!/bin/bash<br>
#reset-channel: to poke a good value into startchan<br>
#Two inputs: tuner to be re-set and channel to set to, defaults are allowed<br>
if [ $1 = '' ];<br>
then<br>
Tuner='5'<br>
Channel='43.1';<br>
fi<br>
<br>
if [ $1 != '' ];<br>
then<br>
Tuner=$1;<br>
fi<br>
<br>
if [ $2 = '' ];<br>
then<br>
Channel='43.1';<br>
elif [ $2 != '' ];<br>
then<br>
Channel=$2;<br>
fi<br>
<br>
<br>
# Tuner='5'<br>
# Channel='43.1';<br>
#<br>
echo "update cardinput set startchan = $Channel where cardid = $Tuner;"<br>
> tempfile<br>
echo "exit" >> tempfile<br>
mysql -u mythtv -pmythtv mythconverg < tempfile<br>
<br>
rm -f tempfile<br>
********************<br></blockquote><div><br></div><div>Thanks Geoffrey. My patch does seem to work, but might not give you the last channel you were on. It does seem to always return a /valid/ channel, though.<br><br></div><div>John<br> <br></div></div></div>