[mythtv-users] Cards keep changing /dev/videoX devices...

Nick Morrott knowledgejunkie at gmail.com
Tue Jun 19 07:41:02 UTC 2007


On 19/06/07, R. G. Newbury <newbury at mandamus.org> wrote:
> Nick Morrott wrote:
> > On 17/06/07, R. G. Newbury <newbury at mandamus.org> wrote:
> >
> >> So, what's the secret? How do you repeatably get ONLY the cx88_dvb
> >> module loaded, without also taking explicit steps to stop the cx8800
> >> module from being loaded.
> >> (Being picky, I won't accept answers which involve the cx8800 module
> >> being loaded at /dev/video2 (using the option line as in your prior
> >> post) and then the cx88_dvb module being loaded at /dev/dvb/adapter0 etc.)
> >
> > One method that Fedora offers to control module loading is to put a
> > file (with extension of .modules) in /etc/sysconfig/modules containing
> > command you wanting executed early on in the boot process.
> >
> > If you create a file called /etc/sysconfig/modules/cx88.modules containing
> >
> > modprobe -r cx8800
> > sleep 3
> > modprobe cx88-dvb
> >
> > You should not have to blacklist the bad module (although this should
> > stop it being loaded) or worry about the good module not being loaded.
>
> Yet another way to achieve the same end situation!
> These same three lines would work just as well in rc.local (although I
> suspect that the sysconfig file will be parsed and run earlier in boot.

The 'yet another' way I mention - altering a single .modules file -
should ensure drivers have finished loading before system services and
daemons that require them (like mythbackend or lircd for example)
start. This is the whole point of the /etc/sysconfig/modules
framework.

If a user has any module loading/unloading in rc.local they should
seriously look into using  a different mechanism - such as those
mentioned in this thread - to handle their modules. Otherwise, you can
easily end up with a rc.local full of modprobes and 'service start
xxx' lines which are better handles elsewhere.

-- 
Nick

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list