HI guys,
I have my webcam working on gutsy....I will try to describe it. Please experienced people, feel free to correct the steps below....I'm just a beginner.
1) Find out which camera you have...plug in the usb and perform the command: lsusb
in my case:
Bus 002 Device 002: ID 046d:08f5 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
2) find the drivers (google helps a lot!) for the specified ID...my case:
046d:08f5
I found the driver on:
http://home.mag.cx/messenger/
Another good site:
http://http://tuukkat.awardspace.com.../quickcam.html
3) install needed software:
sudo apt-get install linux-headers-`uname -r`
sudo apt-get install build-essential
sudo apt-get install xawtv
sudo apt-get install qcset
qcset is used on quickcam.sh (shell script from the driver I downloaded)
4) Uncompress the downloaded driver. My case:
tar -zxvf qc-usb-messenger-1.7.tar.gz
5) On the new folder where driver is, there's a file named quickcam.sh, this is the script that will compile and install the driver...I tried running this file several times and got several errors.
I made some workarounds that are not advisable...but it worked. Here are the steps I took:
5a) After some privileges problems while running quickcam.sh, I started running it as root (sudo -s). But be advised this is not the way it should be...I had my mother in law on the living room, asking for me every 5 minutes...
5b) The first error I got was during the driver compilation...something like
error: linux/config.h:File not found
I just created an empty file called config.h on the linux headers folder and reran quickcam.sh:
touch /usr/src/linux-headers-`uname -r`/include/linux/config.h
Just for documentation, my kernel and gcc versions are:
2.6.22-14-generic
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
5c) The second error I got had something to do with dmesg command on quickcam.sh not being able to find out the device...the message was:
"I will be using ., if there are more cameras I'll not test them."
Instead of "." In my case it should refer to /dev/video0.
You can check this by executing:
dmesg |grep "quickcam: Registered device"
After knowing which device, I made a copy of quickcam.sh and just added the lines in bold:
VIDEODEV=`dmesg | awk '/^quickcam: Registered device:/ { print $4 }' | head -n 1`
[ -z "$VIDEODEV" ] && VIDEODEV=`dmesg | awk '/quickcam: Registered device:/ { print $5 }' | head -n 1`
[ -z "$VIDEODEV" ] && VIDEODEV=`dmesg | awk '/quickcam: Registered device:/ { print $6 }' | head -n 1`
VIDEODEV_REAL="`$REALPATH $VIDEODEV`"
VIDEODEV=/dev/video0
VIDEODEV_REAL=$VIDEODEV
...and reran the script.
5d) The next error was due to qcset not being installed, and it's referenced on the quickcam.sh as in the local path where you run the script....you should change from:
./qcset "$VIDEODEV" -i | head -n 1 | grep 'Logitech QuickCam USB'
to
qcset "$VIDEODEV" -i | head -n 1 | grep 'Logitech QuickCam USB'
and of course...I reran the script.
5e) Add on the end of /etc/modules the module: "modprobe quickcam" (without quotes)
sudo gedit /etc/modules
Sorry I did not have the time to correct the scripts...
Hope this helps.



Adv Reply




Bookmarks