Webcam Drivers for Mandriva: Help!
I'm on Mandriva 2007.0, kernel 2.6.17-5mdv.
My Webcam is the Logitech QuickCam Communicate STX Webcam. I think that's what it is called, here's a picture of it: http://products.howstuffworks.com/logitech-quickcam-communicate-stx-webcam-review.htm Code:
[root@localhost ~]# lsusb http://mxhaard.free.fr/download.html http://fr2.rpmfind.net/linux/rpm2htm...submit=Search+ http://help.lockergnome.com/linux/We...ict412781.html http://club.mandriva.com/xwiki/bin/v...ardwareWebcams http://www.steletch.org/spip.php?article39 ...and there were others too... Here's what I get when I run the following in the terminal: Code:
[root@localhost ~]# urpmq --fuzzy dkms Code:
[root@localhost spca5xx-0.60.00-1mdv2007.0]# less dkms.conf I've spent several hours battling it out with my browser, my computers, my Webcam and IM client configuration settings. The camera doesn't even light up! This is what I would like to be able to do: 1/ First and foremost, use the Webcam with IMs such as aMSN, Kopete, etc. 2/ Be able to film things, to record video with the Webcam 3/ Or course, to be able to test and configure the Webcam (I'd need a little program for this) Can anybody offer me some assistance? Thanks! |
Apparently Logitech put out several different cameras under this name, with different USB ID's. But you seem to be in luck as your cam is on the list for the driver here:
http://home.mag.cx/messenger/ The bad news is that you will probably have to compile and install it yourself, unless some kind person has packaged it for your distro. |
Ah man! That's great! I had a look at the site. The third link is my webcam! Great!
...But I'm not sure how to compile it! I didn't see any instructions. Are there a lot of steps involved? I'm I already messed around with my kernel, and I think it's caused some problems. I did this to install dkms-spca5xx. I must admit, I didn't really know what I was doing, and now I don't know how to revert back to the old kernel. I did create a 'backups' directory before doing so, but I'm not sure what needs to be done exactly to revert back. Here are the details: Code:
[root@localhost boot]# ls So, two questions: 1/ How do I get my old kernel back? What's the easiest way to do it? 2/ How do I install the drivers for my webcam? Thanks a lot! |
Hard to know exactly how to get your system back to its original state, without knowing exactly what you did. Also I see Mandriva uses the GRUB bootloader, which I'm not familiar with. It looks like you can boot the computer, or you wouldn't be able to list the directories. In that case as a last resort you can always back up your personal files and reinstall.
As for installing the new driver you at least need to install the kernel header files (also known as 'include' files) which match the kernel you are running. These make sure that your new driver module is compatible with the existing kernel. Usually the distro supplies these as a package. Instructions for compiling the new driver are usually included with the driver code - look for anything called README or INSTALL. With luck you should not have to mess with the kernel itself. Sorry if that's all a bit vague, but its difficult to give specific instructions without knowing the quirks of a particular distro. |
maroonbaboon,
Actually, I don't know if reinstalling the old kernel is necessary, the system seems to be working fine now. I finally figured out how to update the system without getting error messages, so that is no longer a problem. I have another problem I'm working on resolving: I don't get any sound... Anyway, it's the Webcam driver that interests me the most. How do you go about installing it? |
I read the README file for qc-usb-messager. It should be straight forward. If you can not get it work post what you did and any errors that might have came up.
In order to compile it, make sure you have the kernel source code that matches your version. Also make sure you have the gnu C/C++ compiler and any glibc headers. To known what kernel version you are running, type uname -r. Sound is easy, post your sound card and then we can tell you how to do. Though harddrake can help you setup most sound cards. If it does setup your sound card, use alsamixer to the the settings. |
The outline for compiling/install a new driver is
1. Download the source code (often a tar.gz or tar.bz2 file). 2. Unpack (gzip (or bzip2) -cd driver.tar.gz | tar xvf -). 3. Change into the newly unpacked directory. 4. Read documentation :study: 5. Do any extra configuration. 6. Run 'make' 7. Run 'make install' (need to be root for this). 8. Load your new module ('modprobe ....) 9. Enjoy new hardware :) Of course, it is rarely this simple :( |
Well, I've been working on learning more about make, makefiles and 'make install'... I've gone through a good deal of the installation process, have received some warnings (about the kernel version, etc.)... In any case, I'm stuck here:
Code:
You decided to do it, here we go... Thanks. P.S. - I just tried to use RealPlayer and no longer get an image... Might this have something to do with the above installation? Crap!! P.P.S. - I just noticed that I have an Ekiga Quickcam USB icon on my desktop. A good sign? |
Quote:
Quote:
Quote:
Quote:
|
Here's what I get:
Code:
[linux@localhost ~]$ ls -l /dev/video0 |
Use 'ls -l /dev/v4l/video0' instead. You can worry about permissions when you have the camera working for a single user.
The permissions on the /dev files have nothing to do with the installation. It just looks like the installation process tried to do some testing. The main thing is to make sure the kernel module 'quickcam' is loaded (if that's what it's called). Check the output of the 'lsmod' command to see if it is in the list. If it's not there try 'modprobe quickcam' (as root). Once the module is loaded you can try it out with an application like xawtv. So long as you have no other video devices installed (like TV tuner cards) just running 'xawtv' at the command line should give you a picture. If you get error messages at that stage you will have a better idea of what needs to be fixed up. |
Hmm... This stuff is a bit beyond me... Please bear with me... I need more specific instructions because "modprobe" and even "make" and "make install" are completely new to me.
Code:
Use 'ls -l /dev/v4l/video0' instead. Code:
[linux@localhost dev]$ ls v* Code:
[root@localhost ~]# lsmod Code:
[root@localhost ~]# modprobe quickcam Code:
[root@localhost ~]# This is xawtv-3.95, running on Linux/i686 (2.6.17-5mdv) Quote:
Thanks man! |
Page formatting has gone berserk on this thread for some reason - page is now about 3x screen width, making it very hard to read and enter text. Anybody know who to complain to?
In post #10 you have a link /dev/video0 in your /dev directory, but now it's disappeared. I'm guessing then that your system is using 'udev' to dynamically create and remove these entries. It's a good sign that the 'quickcam' module is loaded. Probably the first thing to try is to unplug the cam from the PC, wait a few seconds and plug it back in. This might trigger 'udev' to recreate /dev/video0 and hopefully put you in business. Alternatively just rebooting with the camera attached might have the same effect. |
Kernel Mismatch
when trying to compile the quickcam driver which I successfully did under other distros, I get the message
[!] Kernel source version mismatch This script assumes that the running kernel should be the same as the kernel sources against which the driver will be compiled but they don't seem to be. Kernel source is "2.6.22.18-1mdvcustom" but running kernel is "2.6.22.18.desktop-1mdv." You may need to do "make bzImage" to correct this error. The kernel sources I installed were listed as 2.6.22.18-1mdv. I also have no idea what they mean by "make bzImage." Can anyone help me? I had been running Kubuntu 7.10, but when the upgrade to the final 8.04 beta scrambled my installation I decided to take a look at the Mandriva Powerpack 2008 cd I had gotten with a magazine. I like it, but have been having a few teething problems. |
All times are GMT -5. The time now is 10:23 AM. |