<br><br><div class="gmail_quote">On Mon, Nov 21, 2011 at 4:34 AM, R. G. Newbury <span dir="ltr">&lt;<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="HOEnZb"><div class="h5">On 11/20/2011 03:57 PM, Kris B. wrote:<br>
&gt; On Sunday, November 20, 2011 9:42 PM, &quot;Stefan D&quot;<br>
&gt; &lt;<a href="mailto:raptorjr08@gmail.com">raptorjr08@gmail.com</a>&gt;  wrote:<br>
&gt;<br>
&gt;    Well, i continue to report problems.<br>
&gt;    I&#39;m using LiveTV, i know that it&#39;s not very popular and no dev<br>
&gt;    is using it. But i&#39;m thinking that this could maybe be a<br>
&gt;    problem to others too.<br>
&gt;    It started when i was tuning to a channel i thought i had<br>
&gt;    access to, but obviously didn&#39;t. In the log attached following<br>
&gt;    things is happening.<br>
&gt;    1. First i tune to a channel that i have access to, works<br>
&gt;    fine.<br>
&gt;    2. Then i tune to this unavaliable channel, Myth fails after a<br>
&gt;    while unable to open program buffer.<br>
&gt;    3. Then i start LiveTV again and Myth tunes to the last<br>
&gt;    working channel, the channel that worked in step 1. This now<br>
&gt;    fails.<br>
&gt;    4. I try to start LiveTV again, still same channel as in step<br>
&gt;    1, still fails.<br>
&gt;    5. I restart the frontend, and now Myth is able to tune to the<br>
&gt;    channel in step 1 again.<br>
&gt;    So the problem is that when Myth fails to tune to a channel it<br>
&gt;    can&#39;t tune to a valid channel unless the frontend is<br>
&gt;    restarted.<br>
&gt;    Maybe this could be a issue to others too that don&#39;t use<br>
&gt;    LiveTV?<br>
&gt;<br>
&gt;<br>
&gt; This happens to me, too, when a channel is flaky.  The workaround<br>
&gt; (other than don&#39;t have flaky channels) is to go into mythweb(but<br>
&gt; maybe I am wrong) or mythtv-setup and change the last channel you<br>
&gt; were on to a different channel that works.  Sometimes I can when<br>
&gt; trying to go back into LiveTV put on a differnet channel really<br>
&gt; quick (lets say 45.1 was the bad channel, if I type 2.1 as it is<br>
&gt; loading) and not have to go through the hassle of<br>
&gt; mythweb/mythtv-setup...<br>
<br>
</div></div>Here is a rather quick and dirty script *WHICH MESSES DIRECTLY WITH YOUR<br>
DATABASE*. It re-sets all your tuners to a &#39;good&#39; channel number. Exit<br>
LiveTV and run from this from a console. I call it &#39;startchan-fix&#39; The<br>
dangerous lines have been commented out. If you cannot exit LiveTV then<br>
you will have to kill the frontend, and then run the script before<br>
re-starting the frontend.<br>
Adjust as required for your user, password and mythtv database name.<br>
<br>
However this script messes with your database and it may be dangerous to<br>
your sanity or even the WAF score in your house. The dog may bark at you<br>
and your hair may turn grey, if it has not already. YMMV UAYOR.<br>
<br>
**********************<br>
#!/bin/bash<br>
Channel1=42<br>
Channel2=102_1<br>
#echo &#39;update cardinput set startchan = &#39;$Channel1&#39; where cardid = &#39;1&#39; &gt;<br>
/var/tmp/startchanfix<br>
#echo &#39;update cardinput set startchan = &#39;$Channel2&#39; where cardid = &#39;3&#39; &gt;<br>
/var/tmp/startchanfix<br>
<br>
#echo &quot;Setting Channel to   &quot;$Channel1&quot;    on Tuner  1&quot;<br>
#echo &quot;Setting Channel to   &quot;$Channel2&quot;    on Tuner  3&quot;<br>
#mysql -u mythtv -pmythtv mythconverg &lt; /var/tmp/startchanfix<br>
#rm -f /var/tmp/startchanfix<br>
<br>
*********************<br>
<br>
<br>
Geoff<br>
<br>
<br>
<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</blockquote></div><br>Thank you but i don&#39;t think that would help. Myth is already on a good channel, but since the previous tune failed, Myth can&#39;t tune to the good channel unless i restart the frontend.<br><br>
Lets say channel 1 is good, if i try to tune to the bad channel 10, channel 1 will fail afterwards. Doesn&#39;t matter that it was a good channel before because something is messed up in Myth that makes it impossible to tune.<br>
Maybe it would work to tune to another good channel instead of restarting Myth, haven&#39;t tried that yet. But a script the sets a specific channel won&#39;t work because it all depends on which channel i was on before Myth tried to tune to the bad channel.<br>
<br>/Stefan<br>