[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Controlling devices at boot



I'd like to load four tv cards as follows:

sudo modprobe saa7134 card=2,2,2,2 tuner=43,43,43,43 video_nr=1,2,3,4 vbi_nr=1,2,3,4 radio_nr=1,2,3,4 alsa=1,1,1,1
sudo modprobe saa7134-alsa index=1,2,3,4

Now I use a script, but I need this to happen by default and thought I'd learn the right way. I've spent a couple of hours now trying to figure out how Debian is designed to do this now and achieved zilch.

This is on a fresh amd64 sarge install, dist-upgrade to sid, and the latest kernel.

Here are some of my failed attempts:

1. In /etc/discover.conf I set "skip saa7134" (no effect)

2. In /etc/udev/devfs.rules, I changed 0 to 1 (no effect)
# video devices
KERNEL=="video[1-9]*",          NAME="v4l/%k"
KERNEL=="radio[1-9]*",          NAME="v4l/%k"
KERNEL=="vbi[1-9]*",            NAME="v4l/%k"
KERNEL=="vtx[1-9]*",            NAME="v4l/%k"

3. In /etc/modutils/aliases, I added this and ran update-modules (no effect):
alias char-major-81-1   saa7134
alias char-major-81-2   saa7134
alias char-major-81-3   saa7134
alias char-major-81-4   saa7134

4. In /etc/modutils/actions, I added this and ran update-modules (no effect): options saa7134 card=2,2,2,2 tuner=43,43,43,43 video_nr=1,2,3,4 vbi_nr=1,2,3,4 radio_nr=1,2,3,4 alsa=1,1,1,1
#disable_ir=1,1,1,1 -- causes oops in 2.6.16
post-install modprobe saa7134-alsa index=1,2,3,4

5. Add this to /etc/modules (no effect -- this is what used to work):
saa7134 card=2,2,2,2 tuner=43,43,43,43 video_nr=1,2,3,4 vbi_nr=1,2,3,4 radio_nr=1,2,3,4 alsa=1,1,1,1
saa7134-alsa index=1,2,3,4

On the other hand, I can tag my home-made script onto /etc/init.d/bootmisc.sh, and it works fine. What's the intended way to solve this? What is doing autodetection and deciding to load stuff, and where can I turn it off?
Hotlist had a blacklist file; where is udev's blacklist?

The fun of running linux is that you see what's going on and can control it.

Dave





Reply to: