<br><br><div class="gmail_quote">On Mon, Nov 21, 2011 at 4:34 AM, R. G. Newbury <span dir="ltr"><<a href="mailto:newbury@mandamus.org">newbury@mandamus.org</a>></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>
> On Sunday, November 20, 2011 9:42 PM, "Stefan D"<br>
> <<a href="mailto:raptorjr08@gmail.com">raptorjr08@gmail.com</a>> wrote:<br>
><br>
> Well, i continue to report problems.<br>
> I'm using LiveTV, i know that it's not very popular and no dev<br>
> is using it. But i'm thinking that this could maybe be a<br>
> problem to others too.<br>
> It started when i was tuning to a channel i thought i had<br>
> access to, but obviously didn't. In the log attached following<br>
> things is happening.<br>
> 1. First i tune to a channel that i have access to, works<br>
> fine.<br>
> 2. Then i tune to this unavaliable channel, Myth fails after a<br>
> while unable to open program buffer.<br>
> 3. Then i start LiveTV again and Myth tunes to the last<br>
> working channel, the channel that worked in step 1. This now<br>
> fails.<br>
> 4. I try to start LiveTV again, still same channel as in step<br>
> 1, still fails.<br>
> 5. I restart the frontend, and now Myth is able to tune to the<br>
> channel in step 1 again.<br>
> So the problem is that when Myth fails to tune to a channel it<br>
> can't tune to a valid channel unless the frontend is<br>
> restarted.<br>
> Maybe this could be a issue to others too that don't use<br>
> LiveTV?<br>
><br>
><br>
> This happens to me, too, when a channel is flaky. The workaround<br>
> (other than don't have flaky channels) is to go into mythweb(but<br>
> maybe I am wrong) or mythtv-setup and change the last channel you<br>
> were on to a different channel that works. Sometimes I can when<br>
> trying to go back into LiveTV put on a differnet channel really<br>
> quick (lets say 45.1 was the bad channel, if I type 2.1 as it is<br>
> loading) and not have to go through the hassle of<br>
> 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 'good' channel number. Exit<br>
LiveTV and run from this from a console. I call it 'startchan-fix' 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 'update cardinput set startchan = '$Channel1' where cardid = '1' ><br>
/var/tmp/startchanfix<br>
#echo 'update cardinput set startchan = '$Channel2' where cardid = '3' ><br>
/var/tmp/startchanfix<br>
<br>
#echo "Setting Channel to "$Channel1" on Tuner 1"<br>
#echo "Setting Channel to "$Channel2" on Tuner 3"<br>
#mysql -u mythtv -pmythtv mythconverg < /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't think that would help. Myth is already on a good channel, but since the previous tune failed, Myth can'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'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't tried that yet. But a script the sets a specific channel won'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>