[mythtv-users] mythtvsetup and dvb

John Sturgeon mythtv at sturgeonfamily.com
Tue Mar 29 23:47:25 UTC 2005


Gregg wrote:

>Thanks.  Worked like a charm. Now I have to figure out how to get
>cx88-dvb to load at boot, I am going to modify the rc.local for now
>until I can figure out why it is now loading.
>
>-Gregg
>
>
>On Mon, 28 Mar 2005 15:30:05 -0800, Gregg <3gemail at gmail.com> wrote:
>  
>
>>Thanks.  I will try it tonight.
>>
>>
>>On Mon, 28 Mar 2005 15:28:15 -0800, John Sturgeon
>><mythtv at sturgeonfamily.com> wrote:
>>    
>>
>>>Gregg wrote:
>>>
>>>      
>>>
>>>>I finally got my pchdtv card to load dvb drivers, but alas another
>>>>hill to climb.  I am trying to add it in mythtvsetup, but I get a
>>>>permission denied on card 0 when I run as mythttv user.  If I run as
>>>>root I can add the card fine.  I did a chmod 777 to /dev/dvb and
>>>>/dev/dvb/adapter0, but still no luck.  Can someone shed some light on
>>>>this?
>>>>
>>>>Thanks in advance.
>>>>
>>>>-Gregg
>>>>_______________________________________________
>>>>mythtv-users mailing list
>>>>mythtv-users at mythtv.org
>>>>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>>>>
>>>>
>>>>        
>>>>
>>>I had to create a file in /etc/udev/permissions.d called:
>>>10-pchdtv.permissions:
>>>
>>>$ cat /etc/udev/permissions.d/10-pchdtv.permissions
>>>dtv:root:users:0666
>>>dtv*:root:users:0666
>>>video:root:users:0666
>>>video*:root:users:0666
>>>
>>>dvb/adapter*/dvr*:root:users:0666
>>>dvb/adapter*/demux*:root:users:0666
>>>dvb/adapter*/frontend*:root:users:0666
>>>dvb/adapter*/audio*:root:users:0666
>>>dvb/adapter*/ca*:root:users:0666
>>>dvb/adapter*/osd*:root:users:0666
>>>dvb/adapter*/net*:root:users:0666
>>>dvb/adapter*/video*:root:users:0666
>>>
>>>--
>>>John Sturgeon <><
>>>
>>>
>>>      
>>>
1) try not to top-post
2) I *never* got cx88-dvb to load at bootup, and that causes problems 
with mythbackend.  I posted this message:
http://www.gossamer-threads.com/lists/mythtv/users/121058?do=post_view_flat#121058

[snip]
 With regards to the start up issue, I noticed the same thing, I think 
it's related to a delay in the loading of the cx88_dvb driver.  I put 
the following (*total hack alert*) in my /etc/rc.d/rc.local:

modprobe cx88_dvb
i=$((0))
while [ $i -lt 5 ]
do
  if RETVAL=`lsmod | grep cx88_dvb`
     then service mythbackend start
     ERR=`tail /var/log/mythtv/mythbackend.log | grep ERROR`
     n=$((0))
     while [ "$ERR" != "" ]
     do
        n=$(($n+1))
        sleep 7
        service mythbackend restart
        ERR=`tail /var/log/mythtv/mythbackend.log | grep ERROR`
        if [ $n -eq 2 ] ; then
           ERR=""
        fi
     done
     i=$((5))
  else
     i=$(($i+1))
     echo "waiting for cx88_dvb to load"
  sleep 2
  fi
done

--
John Sturgeon <><
http://www.sturgeonfamily.com/mythtv.php






More information about the mythtv-users mailing list