Search for the driver for the Logitech camera and watch the cool edition in linux

Source: Internet
Author: User
In linux, find the driver for the Logitech camera and view the common Linux technology-Linux technology and application information. For more information, see the following. Environment: 2.6.23.1-42. fc8

1. Find the device number and product number

Insert the camera into the usb. Wait a few minutes and check whether the usb device has been identified.

[Root @ localhost atom] #/sbin/lsusb
Bus 001 Device 001: ID :0000
Bus 002 Device 010: ID 046d: 08ac Logitech, Inc.
Bus 002 Device 003: ID 0e0f: 0002
Bus 002 Device 001: ID :0000

It can be seen that it has been recognized. Add the verbose parameter to search for more details.

[Root @ localhost atom] #/sbin/lsusb-v | grep-C4 Logitech
Port 4: 0000.0100 power
Port 5: 0000.0100 power
Port 6: 0000.0100 power

Bus 002 Device 010: ID 046d: 08ac Logitech, Inc.
Device Descriptor:
BLength 18
BDescriptorType 1
BcdUSB 1.10
BDeviceClass 255 Vendor Specific Class
BDeviceSubClass 0
BDeviceProtocol 0
BMaxPacketSize0 8
IdVendor 0x046d Logitech, Inc.
IdProduct 0x08ac
BcdDevice 1.00
IManufacturer 0
IProduct 0

We can know that the Vendor ID is 0x046d. The Product ID is 0x08ac.

2. Enter http://mxhaard.free.fr/spca5xx.html

This is a Chinese-maintained webcam driver for linux site, which has been the most popular in recent years. The supported camera drivers are listed here. It seems that our 046d: 08ac is not above. However, open-source sites have a feature. The home page instructions and install readme in the source package are often different. Download gspcav1-20071224.tar.gz, decompress the package, open READ_AND_INSTALL, and search for "08ac ",

Get
{USB_DEVICE (0x046d, 0x08ac)},/* Logitech QuickCam Cool */

We can see that the camera driver has been found.

3. Install

As long as the current running system contains the necessary kernel source code, the installation is very simple.

Check your system and check the directory/lib/modules/'uname-R'/build/include/linux.

Run gspca_build under the gspcav1-20071224 directory as root

[Root @ localhost gspcav1-20071224] #./gspca_build

REMOVE the old module if present
./Gspca_build: line 18: rmmod: command not found

CLEAN gspca source tree
Rm-r-f *. o decoder/. gspcadecoder. o. cmd decoder/*. o \
. Gspca. o. cmd *. o *. ko *. mod. *. [a-z] * core *. I \
*. Symvers *. err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree
Mkdir-p/lib/modules/'uname-R'/kernel/drivers/usb/media/
Rm-f/lib/modules/'uname-R'/kernel/drivers/usb/media/spca5xx. ko
Rm-f/lib/modules/'uname-R'/kernel/drivers/media/video/gspca. ko
Install-c-m 0644 gspca. ko/lib/modules/'uname-R'/kernel/drivers/usb/media/
/Sbin/depmod-AE

LOAD gspca in memory
./Gspca_build: line 30: modprobe: command not found

Print compilation messages if ERRORS look kgspca. err
Make-C/lib/modules/'uname-R'/build SUBDIRS =/home/atom/Download/camera/gspcav1-20071224 CC = cc modules
Make [1]: Entering directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'
CC [M]/home/atom/Download/camera/gspcav1-20071224/gspca_core.o
CC [M]/home/atom/downloads/camera/gspcav1-20071224/decoder/gspcadecoder. o
LD [M]/home/atom/Download/camera/gspcav1-20071224/gspca. o
Building modules, stage 2.
MODPOST 1 modules
CC/home/atom/Download/camera/gspcav1-20071224/gspca. mod. o
LD [M]/home/atom/Download/camera/gspcav1-20071224/gspca. ko
Make [1]: Leaving directory '/usr/src/kernels/2.6.23.1-42. fc8-i686'

The commands rmmod and modprobe cannot be found in the above installation. This is because the fedora series/sbin path is not added to the environment variable by default, which does not affect installation.

4. Use
After the installation is complete,/sbin/lsmod | grep gsp and the compiled gspca module is not loaded. If you feel uneasy, You can manually load/sbin/modprobe gspca. ko, but in fact you don't have to do this. This driver is actually plug-and-play, plug in the camera, and will automatically mount the gspca module.

[Root @ localhost atom] #/sbin/lsmod | grep gsp
Gspca 663504 0
Videodev 28097 1 gspca

However, in linux, the camera has poor performance, fading, and reduced resolution. This seems to be able to be solved using another package. Try again next time.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.