[mythtv-users] mythbackend starting before ivtv is loaded?

Howard Cokl hojoloco at yahoo.com
Thu Jul 21 13:38:25 EDT 2005


--- Jim Coates <jcoates at jimcoates.com> wrote:

> I am getting the following errors after a bootup:
> 
> 2005-07-15 21:43:08.737
> Channel(/dev/video0)::Open(): Can't open video 
> device, error "No such file or directory"
> 2005-07-15 21:43:08.745
> Channel(/dev/video0)::Open(): Can't open video 
> device, error "No such file or directory"
> 2005-07-15 21:43:08.747 ChannelBase: Could not find
> input: Tuner 0 on card 
> when setting channel 55
> 
> If there's a power outage or something and this
> machine reboots, any 
> recordings will record from channel 4 and not change
> to the proer channel.
> 
> if I restart the backend later, those go away and
> everything is fine.  This 
> wasn't always the case and I've only noticed it
> since moving to the ivtv 
> that now comes with gentoo as well as changing the
> firmware I use for my 2 
> pvr-250s.  Any ideas? 
> 
I'm using FC3 (followed Jarod's guide) and had this
problem.  I just created a startup script in
/etc/rc3.d/S85tuners which gets run before
/etc/rc3.d/S86mythbackend.  Here it is

#!/bin/bash
#
# description: Loading the tuners for mythbackend so
it doesn't get \
#              confused.

# Source function library.
. /etc/rc.d/init.d/functions


start() {
        #/usr/local/bin/MAKEDEV-DVB.sh
        /sbin/modprobe cx88-dvb
        /sbin/modprobe ivtv
        /usr/bin/ivtvctl -d /dev/video3 -p 6
}
stop() {
        /sbin/modprobe -r cx88-dvb
        /sbin/modprobe -r ivtv
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  *)
        echo $"Usage: $prog {start|stop}"
        exit 1
esac

exit $RETVAL

Cut and paste and chmod 755

Howard


More information about the mythtv-users mailing list