On Fri, 25 Oct 2002 06:37:24 -0700 (PDT)
Charles Griffin
Here is something else with bttv, back in my 7.3 version of suse, the bttv module was loaded and unloaded by the application, like xawtv. Now with 8.1, the bttv module gets loaded whenever X starts, and stays loaded. I guess the newer version of X loads it automatically, even if I don't use an app that needs it.
Yes, this was how I first discovered the problem -- the sound to my TV card would activate upon boot, even if I had not run kwintv or xawtv yet. How can I prevent bttv from loading upon boot? And, even better, how I can force kwintv or xawtv to unload the module when I quit the program?
Well this is what I did. Go into /etc/X11/XF86Config and find the "modules" section, comment out the line "v4l"; which tells X to start video4linux. The next time X gets started, it won't have bttv. When you run xawtv, it will load them; but the problem still remains, how to "unload them". The only thing I can think of is to wrap the "xawtv" command in a shell script. Call it "tv". ###################################################### #!/bin/sh xawtv rmmod bttv videodev tuner i2c-algo-bit i2c-core exit ###################################################### The order of the module removal is important. The other thing is, that only root can do rmmod so if you run this as a user, it won't remove the modules. Probably you can add it to the "sudoers" list. -- use Perl; #powerful programmable prestidigitation