Webcam

Asked by Nicolas Panozzo

Cannot set up my webcam which is a USB Camera 'Leb web Camera eca'.

Any suggestion?

Nicola

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Steffen Röcker (sroecker) said :
#1

What does lsusb say?

Your webcam should be working with the gspca kernel module.

Is it loaded?
lsmod | grep gspca

See the kernel log:
dmesg | grep gspca

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#2

Don't know what lsubs is. I am quite new in Ubuntu. Could you please clarify?

How do I load the gspca kernel module?

Revision history for this message
Steffen Röcker (sroecker) said :
#3

Oh, didn't think about that.

Open gnome-terminal (Applications->Accessoires->Terminal or Alt+F2 gnome-terminal)

lsusb is a command which shows your usb devices.
lsmod is a command which shows the loaded kernel modules (drivers etc)
dmesg shows the kernel log.

It should load automatically when it recognizes your cam.
You can load it with:
sudo modprobe gspca

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#4

I tried lsubs and the response is as follows:

Bus 002 Device 005: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 002 Device 004: ID 0461:4d15 Primax Electronics, Ltd
Bus 002 Device 003: ID 0c45:602d Microdia VideoCAM ExpressII
Bus 002 Device 002: ID 043d:0078 Lexmark International, Inc. InkJet Color Printer
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0644:0200 TEAC Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsmod gives the following:

Module Size Used by
binfmt_misc 16776 1
ppdev 15620 0
bridge 56212 0
stp 10500 1 bridge
bnep 20224 2
input_polldev 11912 0
video 25872 0
output 11008 1 video
lp 17156 0
parport 42220 2 ppdev,lp
snd_hda_intel 435252 3
snd_pcm_oss 46336 0
snd_mixer_oss 22656 1 snd_pcm_oss
snd_pcm 83076 2 snd_hda_intel,snd_pcm_oss
snd_seq_dummy 10756 0
snd_seq_oss 37760 0
snd_seq_midi 14336 0
snd_rawmidi 29696 1 snd_seq_midi
snd_seq_midi_event 15104 2 snd_seq_oss,snd_seq_midi
snd_seq 56880 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 29704 2 snd_pcm,snd_seq
snd_seq_device 14988 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 62756 15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
gspca_sonixb 18176 0
soundcore 15200 1 snd
psmouse 61972 0
gspca_main 29952 1 gspca_sonixb
snd_page_alloc 16904 2 snd_hda_intel,snd_pcm
dcdbas 15264 0
pcspkr 10496 0
serio_raw 13444 0
k8temp 12416 0
videodev 41600 1 gspca_main
v4l1_compat 21764 1 videodev
nvidia 7233756 36
usbhid 42336 0
i2c_nforce2 14980 0
usblp 20224 0
agpgart 42696 1 nvidia
usb_storage 99648 0
b44 35984 0
ssb 41220 1 b44
mii 13312 1 b44
fbcon 46112 0
tileblit 10752 1 fbcon
font 16384 1 fbcon
bitblit 13824 1 fbcon
softcursor 9984 1 bitblit

sudo modprobe gspca is not working, terminal says:

FATAL: Module gspca not found.

Revision history for this message
Steffen Röcker (sroecker) said :
#5

So from lsusb you know that your cam (or the chip on it) is a Microdia VideoCAM ExpressII
The kernel module for this is gspca_sonixb, which is already loaded. (so you don't need modprobe)

Now you need to know why it doesn't work.
Type this:

dmesg | grep gspca

Does /dev/video0 exist?

ls -al /dev/video0

Does your camera work in cheese?

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#6

I tried dmesg | grep gspca and I got the message:

[ 12.552591] gspca: main v2.3.0 registered
[ 12.561048] gspca: probing 0c45:602d
[ 12.569129] gspca: probe ok

if I type -al /dev/video0 I get:

-al /dev/video0

I only tried the camera in Skype and it is not working. What's cheese?

In Skype the Camera is USB Camera (/dev/video0).

Revision history for this message
Steffen Röcker (sroecker) said :
#7

cheese is a program to take pictures and videos from your cam. (maybe you need to install it: Applications->Add/Remove)

Try
ls -l /dev/video

ls lists directory contents, you forgot the ls last time
Maybe you don't have read/write rights, you have to be in the group video.
Type
id
to find out in which groups you are.

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#8

I just attach the last terminal messages:

nicola@nicola-desktop:~$ ls -al /dev/video0
crw-rw----+ 1 root video 81, 0 2009-10-25 13:15 /dev/video0
nicola@nicola-desktop:~$ id
uid=1000(nicola) gid=1000(nicola) groups=4(adm),20(dialout),24(cdrom),46(plugdev),106(lpadmin),121(admin),122(sambashare),1000(nicola)
nicola@nicola-desktop:~$ ls -l /dev/video
ls: cannot access /dev/video: No such file or directory
nicola@nicola-desktop:~$

I installed Cheese but the Webcam is not working plus Cheese takes ages to open and it is quite slow.

Revision history for this message
Steffen Röcker (sroecker) said :
#9

Ok, the group video has read and write rights to the cam, but you are not in the group video.
Add yourself to the group:

sudo adduser nicola video

It should work now.

(If your sound doesn't work you should add yourself to audio as well)

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#10

I added myself to both video and audio groups.

Sound works but not video.

Should I not install a driver for the webcam?

Revision history for this message
Steffen Röcker (sroecker) said :
#11

Hmm, it should work now.
I have opened a bug report for that.

The module gspca_sonixb is the driver

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#12

Actually sometimes the Webcam is working on Cheese but Cheese is very slow and not responding after a while and the quality of the picture is quite poor. If I open Cheese again the webcam doesn't work anymore.

In Skype the Webcam never worked.

Revision history for this message
Nicolas Panozzo (nicolapanozzo) said :
#13

Believe it or not Cheese makes some improvement every day. Today I managed to take photos and record some videos but after a while it got very slow and did not respond any longer and I had to force quit. That's weird.

The picture is very dark and I am not sure how I can change the brightness.

In Skype still no joy whatsoever.

I'll keep you posted.

Revision history for this message
ajmal_82 (ajmal-82) said :
#14

there is problem with microdia webcam i think so you should report a bug using apport....follow the procedure

Can you help with this problem?

Provide an answer of your own, or ask Nicolas Panozzo for more information if necessary.

To post a message you must log in.