Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have seen a driver called GSPCA driver V4L version 2 that support lots of webcams! For example, I have heard that Logitec QuickCam Web works with that driver!
You may either get a tarball or the full mercurial repository from
the previous locations.
Generation
- the first time:
- remove from the kernel all gspca v1 or other webcam stuff
which may conflict.
- if you used the first releases of the driver, don't forget
to remove the modules 'gspca_xxx.ko' installed in
/lib/modules/`uname -r`/misc/'.
- take care of the modules loaded at startup time
and included in the initrd.
- go to the tarball / repository root.
- copy the '.config' of your kernel (usually
'/boot/config-2.6.xx-xx-yy') to the directory v4l/.
Example (from the mercurial root directory):
cp /boot/config-2.6.23.12 v4l/.config
- do a 'make xxxconfig' (xxx depending on your taste -
it may be 'config', 'menuconfig', 'xconfig' or
'gconfig'.
- if you have not the full sources of the kernel, the
previous command will fail. In this case, manually edit
the file 'v4l/.config' adding:
CONFIG_USB_GSPCA=m
CONFIG_USB_GSPCA_xxx=m
where xxx is the name of the subdriver handling your webcam.
(look in the file
<hg_root>/linux/Documentation/video4linux/gspca.txt)
- do
make
- and, as root:
make install
Test
You may try your webcam with my simple video viewer (svv): http://moinejf.free.fr/svv.c
(to generate the program, the compilation line may be found at
the beginning of the source)
If your webcam works, please, let me know.
If it does not work:
- there is no /dev/video0:
- check if the kernel modules are loaded. If not, look
at the last kernel message ('dmesg | tail -30').
- if they are loaded, do
echo 0x0f > /sys/module/gspca_main/parameters/debug
then unplug and plug again your webcam, and send me
the last kernel messages.
- the program svv says 'timeout':
- do
echo 0x3f > /sys/module/gspca_main/parameters/debug
then start the application, and send me the last kernel
messages.
- there is a bad image (you see something, maybe moving):
- get an image with
./svv -rg
- this creates a file 'image.dat'. Send it to me with the
last kernel messages.
Most applications don't know how to decode the raw frames generated
by the webcams, and also, many of them do not speak the V4L2
interface. To make them work, you need the V4L application
library found at:
To generate:
cd v4l2-apps/lib/libv4l/
make
(and as root)
make install
(the installation is done under /usr/local)
To use it with a mono-threaded application, do:
export LD_LIBRARY_PATH=/usr/local/lib/
LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so <application>
To use it with a multi-threaded application, do:
export LD_LIBRARY_PATH=/usr/local/lib/
export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
<application>
i have also a problem with gspca module.
What is strange is that i cant do this commandline (as root)
echo 0x3f > /sys/module/gspca_main/parameters/debug
Your gspca module is not loaded, try to load it by:
modprobe gspca_main
(I have no idea if you should do that, I just guessing.) If you get error, post the output from the dmesg | tail -30 here.
I have found a mailing list also but lost it...
EDIT: I find it: http://lists-archives.org/spca50x-de...spca-v4l2.html
I have no idea how to leave a message in the mailing list.
EDIT2: The man who have created this doesn't seem to care about the answers. <_<
Another solution could be to use the old version of gspca with the new webcam drivers. I will try to get it work, but first I must remove the new version of gspca.
Maybe we can get the old webcameras to work!
Last edited by CheatCat; 12-11-2009 at 02:44 PM.
Reason: Find the mailing list! :D
i do see this post is old
but when i started had 710 i had to go like 2 years back to get my cam up
to test the v4l1 or v4l4
go to terminal type (gstreamer-properties) click enter
click video try v4l1 click the bottom test
or v4l2 click the bottom test
if the cam comes on in ether 1 leave it be
find a program to see your cam with like (cheese) or (wxcam) is a lot more to try
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.