Video Driver Configuration

By Dave Salvator  |  Posted 2003-04-10 Print this article Print

Before you install Freevo, (this is the application that ties everything together, which well discuss in detail below), its a good idea to get the Hauppauge WinTV cards driver working. For this, were going to write a simple Bash script that will load the needed Loadable Kernel Modules (LKMs). Using gedit, or your text editor of choice, create the following script. Bash shell script
insmod i2c-core
insmod i2c-dev
insmod i2c-algo-bit
insmod tuner
insmod tvaudio
insmod tvmixer
insmod videodev
insmod bttv card=10
This script uses the insmod command to load the needed LKMs in the correct order. For you Windows-heads, LKMs are like drivers. The last line of the script passes a parameter to insmod to tell it which card the bttv LKM is being loaded for. bttv supports several BrookTree TV encoder chips, and the Hauppauge WinTV uses the Bt878. Save the script as something like lvm (load video modules). I suggest saving this script in the /etc/init.d directory so it will be available to run at bootup along with other services. Next, in a command-prompt shell, go to wherever youve saved the script file and type the following:
chmod +x lvm
Chmod changes the permissions of a file, and using the +x switch makes the script executable by all users. Next, we want to execute this script on startup. To do that, we have to place a link to it in the /etc/rc5.d sub-directory, which is where scripts get executed on startup in RunLevel 5, which is a full multi-user run mode with networking and X-Windows. To create this link, bring up a window in Gnome, and go to the /etc/init.d sub-directory (or wherever youve placed the bash script). Right-click on the file, and drag it onto the desktop. Youll be asked if you want to move, copy, or link to this script. Select "link here." Now, in that same window, change to the /etc/rc5.d sub-directory, and drag the script link from the desktop into this sub-directory. Next, you need to rename the script using the following convention-- Look at all the scripts that begin with the letter S (these are services scripts, which get executed after kernel scripts, which begin with the letter K). Find the last script that begins with the letter S, which is usually S99local. Verify that this is the highest-numbered script beginning with S. If yes, rename the link to your bash script to:
The script will now execute on startup, and the needed LKMs will be available to Freevo. To verify that the LKMs will load correctly at startup, reboot your system, and then go to a shell command prompt, and type
to verify that the LKMs loaded. Here is the partial output of lsmod, and all of these modules need to be present in order for the TV portion of Freevo to work correctly:
Module                  Size  Used by    Not tainted
bttv                   71424   0  (unused)
videodev                8288   2  [bttv]
tvmixer                 4944   0  (unused)
tvaudio                14940   0  (unused)
tuner                  11456   1 
i2c-algo-bit            8840   1  [bttv]
i2c-dev                 5668   0  (unused)
i2c-core               19236   0  [bttv tvmixer tvaudio tuner i2c-algo-bit i2c-dev]
soundcore               6532   7  (autoclean) [tvmixer nvaudio sound]

Dave came to have his insatiable tech jones by way of music—,and because his parents wouldn't let him run away to join the circus. After a brief and ill-fated career in professional wrestling, Dave now covers audio, HDTV, and 3D graphics technologies at ExtremeTech.

Dave came to ExtremeTech as its first hire from Computer Gaming World, where he was Technical Director and Lead (okay, the only) Saxophonist for five years. While there, he and Loyd Case pioneered the area of testing 3D graphics using PC games. This culminated in 3D GameGauge, a suite of OpenGL and Direct3D game demo loops that CGW and other Ziff-Davis publications, such as PC Magazine, still use.

Dave has also helped guide Ziff-Davis benchmark development over the years, particularly on 3D WinBench and Audio WinBench. Before coming to CGW, Dave worked at ZD Labs for three years (now eTesting Labs) as a project leader, testing a wide variety of products, ranging from sound cards to servers and everything in between. He also developed both subjective and objective multimedia test methodologies, focusing on audio and digital video. Before all that he toured with a blues band for two years, notable gigs included opening for Mitch Ryder and appearing at the Detroit Blues Festival.


Submit a Comment

Loading Comments...
Manage your Newsletters: Login   Register My Newsletters

Rocket Fuel