LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-10-2009, 02:31 PM   #1
CheatCat
LQ Newbie
 
Registered: Jul 2007
Location: Sweden
Distribution: None, yet..
Posts: 15

Rep: Reputation: 0
Gspca version 2??


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!

I followed the instructions on http://moinejf.free.fr/gspca_README.txt, I will quote if the link is broken in the future:
Quote:
gspca v2

Important note

The source of the driver gspca version 2 is included in
the current Linux kernel (starting 2.6.27).

If you have problem with your webcam, you may get newer
versions from Mercurial source code management system at:

stable version:
http://linuxtv.org/hg/v4l-dvb

development version:
http://linuxtv.org/hg/~jfrancois/gspca/

Getting the source

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.

Supported webcams

Look at:
http://moinejf.free.fr/webcam.html
or in the file:
<hg_root>linux/Documentation/video4linux/gspca.txt

V4L library

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:

http://linuxtv.org/hg/~hgoede/v4l-dvb

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>

For more information, look at:
http://hansdegoede.livejournal.com/3636.html
But it doesn't works for me! And I cannot find any contact info about the developer so I don't know who I should send the messages to.

So, anyone who know something about gspca version 2?
 
Old 12-11-2009, 02:20 AM   #2
ade05fr
LQ Newbie
 
Registered: Sep 2007
Location: Metz - France
Distribution: Gentoo
Posts: 16

Rep: Reputation: 0
Hello

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

=> i have an error "no such file or directory"

I cant do a touch of this file or create a newer.

can someone help me ?

thank you;
ade05fr
 
Old 12-11-2009, 02:17 PM   #3
CheatCat
LQ Newbie
 
Registered: Jul 2007
Location: Sweden
Distribution: None, yet..
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 01-09-2010, 04:49 PM   #4
no2498
Member
 
Registered: Jan 2010
Posts: 120

Rep: Reputation: 23
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
 
  


Reply

Tags
gspca, version


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gspca module and webcam with 2.6.21.5 kernel justwantin Slackware 23 06-15-2009 07:21 PM
Linux 2.6.29 kernel compile, no gspca subdrivers tethysgods Linux - Software 4 04-24-2009 07:07 AM
QuickCam Messenger - gspca DKMS driver mazouz_n Linux - Software 5 03-04-2009 05:26 AM
Can't use Labtec WebcamPro after GSPCA install via MCC Tony Littlejohn Mandriva 3 12-02-2008 03:28 AM
quickcam gspca driver compile problem anirudhvij Linux - Hardware 0 05-03-2007 02:19 AM


All times are GMT -5. The time now is 07:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration