---------- Missatge reenviat ----------
From: Mike H < mike@xxxxxxxxxxxxx>
To: linux-dvb@xxxxxxxxxxx
Date: Fri, 18 May 2007 14:58:46 +0100
Subject: Re: Re: nova-t 500 progress?
Hi,
I was the one that posted I had the script, sorry for the delay posting
it here.
There was another suggestion on the list about setting up a cronjob that
ran every minute that scanned the output of "tail /var/log/messages" for
errors and restarted mythtv-backend if there were any, but this had the
effect of restarting mythtv-backend every minute for as long as there
were any errors in the last 8 lines of /var/log/messages - not a good
situation if you're recording something and your event log isnt too busy!
This is the python script I wrote :
------------------------------
#!/usr/bin/python
import os
import popen2
r, w, e = popen2.popen3('tail -f /var/log/messages')
line = r.readline ().strip()
while line != '':
if 'mt2060 I2C read failed' in line:
os.system('/etc/init.d/mythtv-backend restart')
line = r.readline().strip()
r.close()
e.close()
w.close()
------------------------------
you just need to start it as a background process when you boot. I had
my mythtv box running for two weeks solid and with this script running I
had no problems watching or recording anything.
Hope it helps other nova-t 500 users!
Mike
Eduard Huguet wrote:
>
> ---------- Missatge reenviat ----------
> From: Robin Hill < dvb@xxxxxxxxxxxxxxx <mailto:dvb@xxxxxxxxxxxxxxx>>
> To: linux-dvb@xxxxxxxxxxx <mailto: linux-dvb@xxxxxxxxxxx>
> Date: Thu, 17 May 2007 23:15:22 +0100
> Subject: [linux-dvb] Re: nova-t 500 progress?
> On Thu May 17, 2007 at 11:55:28AM +0100, Richard Morris wrote:
>
> > I use 2 of the Nova-T 500's with MythTV, I get about 4
> disconnects a day
> > that either fill up the event log with messages like:
> >
> > May 17 10:01:00 athlon mt2060 I2C read failed
> >
> > and/or crash MythTV.
> >
> I guess you're running with EIT scanning enabled? Disabling this will
> dramatically reduce the number of resets (I get about one a month with
> my two cards).
>
> Cheers,
> Robin
> --
> ___
> ( ' } | Robin Hill <dvb@xxxxxxxxxxxxxxx
> <mailto:dvb@xxxxxxxxxxxxxxx>> |
> / / ) | Little Jim says .... |
> // !! | "He fallen in de water !!" |
>
>
>
> What kernel are you using? I'm using 2.6.21 and HG drivers and the
> disconnects are way less frequent than before, even with EIT scanning
> activated in MythTV. Currently most days the system doesn't experience
> any, it's just about one per week now.
>
> These are my machine specs:
> · Asus Pundit P1-AH2 (AMD 3800 - 64 bit)
> · 1GB RAM
> · 1 PCI slot filled with Nova-T 500 (the other one is free)
> · Sabayon 3.3 x86 (32 bit edition), with kernel upgraded to 2.6.21
>
> The system is now rock stable, with only a (very) few disconnects, as
> said before. It's not a 24/24 server, but it's mostly on during the
> day, and EIT scanning is on and working fine.
>
> BTW, someone posted some days ago that he had a script that
> monitorizes 'dmesg' and restarts automatically MythTV backend what it
> detects the mt2060 read/write error. It would be great if he could
> share it, I'd really be interested :D.
>
> Cheers
> Eduard Huguet
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Thank you very much. I'll give it a try...
Cheers,
Eduard
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb