On Thu, Apr 05, 2007 at 02:22:09AM -0400, [EMAIL PROTECTED] wrote:
> Hello David,
>
> I got your e-mail address of your post at
> http://www.gossamer-threads.com/lists/ivtv/users/35222. Hope you don't mind
> me asking you some questions... Thought I had some Unix classes in college
> a long time ago, I'm definitely no expert on Linux/Unix.
Hope you don't mind my patching your message and my reply onto the
ivtv thread to keep the issue alive and public...
>
> I'm experiencing the same problem you describe in your post. I also have
> exactly the same setup you have down to the x86_64 detail except that I
> have 2 PVR 150's both recording PAL from cable.
So this isn't just a US TV problem. Glad I'm not alone. :-)
>
> Have you been able to structurally defeat this problem? Has Hans fixed this
> problem in ivtv as far as you know? If so, what would be the best method
> for me to upgrade to this new version? Or did you find out how to disable
> VBI support?
No. No. Don't know. No. :-)
The problem remains unfixed. (The system clock runs slowly while
recording.) Sometimes with open-source software you just have to be
patient. I'm sure Hans Verkuil is very busy and will come up with a
solution in due course.
Meanwhile I have achieved a semblance of stability with the following
script. It feels like I'm bludgeoning the system with a sledgehammer.
This is so ugly! I do hope Hans will come up with a proper solution.
>
> If you haven't yet found a structural solution, would you mind providing me
> with the script you wrote to adjust the tick and frequency of the clock
> along with the method (cron?) you use to invoke it?
# crontab -l
*/10 * * * * /usr/local/bin/clockfix
********** /usr/local/bin/clockfix **********
# Test time error relative to datium; beep if gt 5 sec
TIMEERR=`/usr/sbin/ntpq -p | grep datium | tr -s " " |
sed -e 's/^ *//' | cut -d " " -f 9`
TERRINT=`echo $TIMEERR | sed -e 's/\..*//'`
if [ "$TERRINT" -gt 5000 ] || [ "$TERRINT" -lt -5000 ] ; then
/home/dad/bin/bling
logger "System clock error $TERRINT ms; resetting"
echo $TIMEERR $TERRINT
/sbin/adjtimex -a
/etc/init.d/ntpd restart
fi
Some comments on this script:
datium is my main server that keeps pretty good time. Substitute your
own, or just pluck one line from `ntpq -p`.
/home/dad/bin/bling plays a tone on another machine that has speakers:
ssh datair "aplay /home/dad/sounds/kling.wav"
/sbin/adjtimex -a adjusts the kernel clock parameters to run at
about the same rate as the hardware clock (the sledgehammer!).
Check out `man adjtimex`.
/etc/init.d/ntpd restart gives ntpd a fresh start. This will only
be successful if /etc/ntp/step-tickers contains machine names that
will provide a correct new starting time:
0.fedora.pool.ntp.org
1.fedora.pool.ntp.org
datium
--
David A. De Graaf DATIX, Inc. Hendersonville, NC
[EMAIL PROTECTED] www.datix.us
_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users