Controlling devices at boot

2006-03-25 Thread David Liontooth

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




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Controlling devices at boot (never mind)

2006-03-25 Thread David Liontooth

David Liontooth wrote:

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
I realized I'm making changes ignored by 2.6 kernels and put this in 
/etc/modprobe.d/saa7134:


   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
   options saa7134-alsa index=1,2,3,4

That's all it took -- I'm happy. It's nice and simple, and I see the 
changeover is fully documented in man update-modules.
I deleted the old directories and reverted the udev changes -- clearly 
wrongheaded. Sorry to waste your time.


Dave



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]