[mythtv-users] channels are off by one

Michael T. Dean mtdean at thirdcontact.com
Tue Apr 4 01:46:32 UTC 2006


On 04/03/2006 08:36 PM, Craig Hagerman wrote:

>I *almost* have everything set up now, except that the channels seem
>to be off by one. The mythtv docs mention this saying:
>
>This is actually due to the tuner on the video capture device being
>mis-detected.
>

Never use a symptom to identify a problem.  :)  Get evidence:

tac /var/log/messages |
sed -n '/=\ \ END INIT IVTV\ \ =/,/= START INIT IVTV =/p;
    /= START INIT IVTV =/q' |
tac

Feel free to post the output if you can't tell.


>I am using Ubuntu (6.04) which doesn't have a /etc/modules.conf.
>Following setup directions on the net I have entries in
>/etc/modprobe.d/aliases and /etc/modules/ivtv. I guess I have made an
>error in configuring something here but I don't know what. I am hoping
>that someone on this list can tell me what looks wrong in these files
>and how to fix it.
>
>
>/etc/modprobe.d/aliases
>
>## ---- used for ivtv ----------
>alias char-major-81 videodev
>alias char-major-81-0 ivtv
>
>
>/etc/modutils/ivtv
>
>alias char-major-81 videodev
>alias char-major-81-0 ivtv
>options ivtv ivtv_debug=1 ivtv_std=2
>alias char-major-61 lirc_i2c
>options msp3400 once=1 simple=1
>add below ivtv msp3400 saa7115 tuner
>add above ivtv lirc_dev lirc_i2c
>
>
>Note- the Ubuntu Howto wiki for mythtv says that "Update:: this
>{/etc/modules/ivtv} is not needed anymore because hotplug will detect
>the hardware at boottime and load the ivtv module. " I am not sure if
>it is OK to delete this file or not.
>

Definitely delete the "options msp3400" line--it shouldn't be 
specified.  And the "add {above,below}" lines (or equivalent) should 
/never/ be specified for anything but extremely old versions of ivtv 
(i.e. 0.1.9 and some of the early "pre" versions before 0.2).

And as it happens, "add {above,below}" are no longer legal primitives in 
the modprobe configuration file.  Linux 2.4 kernels used modutils, which 
used a modprobe that used modules.conf, which used those primitives.  
Linux 2.6 requires module-init-tools, which uses a modprobe that uses 
modprobe.conf, which has simplified the syntax.  (That's a lot of "use" 
words.)

 From the naming, it seems that /etc/modutils/ivtv is only used with 
modutils' modprobe, so regardless of what you put in their it won't 
affect your running kernel modules.  (Dapper is 2.6, right?)  Your 
/etc/modprobe.d/aliases is correct for ivtv (and for both modutils and 
module-init-tools modprobe--i.e. for 2.4 and 2.6 kernels).

If you want to keep a 2.4-compliant config file, I would say to get rid 
of everything except the "alias char-major-81", "alias char-major-81-0", 
and  "alias char-major-61" lines (which shouldn't hurt even if they're 
not needed).

Mike


More information about the mythtv-users mailing list