GSPCA webcam no longer working: no /dev/video0

Bug #255678 reported by Warren Butler
68
This bug affects 8 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

I am running Intrepid amd64 and plug in an Intel webcam, documented to be support by the gspca driver. This camera worked on a Hardy installation on the same machine.

The device appears to be properly detected and the gspca driver loaded.

However, it cannot be accessed by any applications.

Error returned when running gstreamer-properties:
Video for Linux (v4l): Device "/dev/video0" does not exist.

dmesg:
[50888.838640] usb 3-1: new full speed USB device using uhci_hcd and address 3
[50889.024621] usb 3-1: configuration #1 chosen from 1 choice
[50889.242073] gspca: USB GSPCA camera found.(SPCA500+unknown CCD)
[50889.243115] usbcore: registered new interface driver gspca
[50889.243115] gspca: gspca driver 01.00.20 registered
[50889.842497] gspca: init isoc: usb_submit_urb(0) ret -2

*-2 return code is for no such file or directory.

lsusb:
Bus 005 Device 005: ID 046d:c521 Logitech, Inc. MX620 Laser Cordless Mouse
Bus 005 Device 004: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
Bus 005 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 8086:0630 Intel Corp. Pocket PC Camera
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0a81:0101 Chesen Electronics Corp. Keyboard
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsmod (grep for gspca):
gspca 665680 0
compat_ioctl32 18304 1 gspca
videodev 43648 2 gspca,compat_ioctl32
usbcore 170648 9 gspca,usb_storage,libusual,hci_usb,usbhid,ehci_hcd,uhci_hcd

lsb_release -rd:
Description: Ubuntu intrepid (development branch)
Release: 8.10

description: updated
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Warren Butler (grumpymole) wrote :

Problem still exists with 2.6.27.

It appears that the module is correctly loaded, but that /dev/video0 is not created. This is causing the problem.

Revision history for this message
captive (salvo-schifani) wrote :

Problem still here on 2.6.27-5
dmesg shows:

[ 507.757460] gspca: probing 046d:092f
[ 507.959471] gspca: probe ok
[ 530.744169] gspca: usb_submit_urb [0] err -28

Revision history for this message
Rajeev Sharma (rajeev1982) wrote :

I also had my webcam working on Hardy, but the same cam on same machine is not working in Intrepid.

I can not get the cam working with any of the app, cheese or skype. I get no error while running cheese or skype, but don't get he video.

$ dmesg | grep gspca
[ 3206.645675] gspca: main v2.2.0 registered
[ 3206.662601] gspca: probing 046d:08af
[ 3208.340246] gspca: probe ok

it looks OK to me.

Revision history for this message
Derek7 (enrico-vittorini) wrote :

Kernel: 2.6.27-7-generic

lsusb:
Bus 002 Device 003: ID 046d:08f6 Logitech, Inc. Quickcam Messenger Plus

dmesg
5419.799627] usb 2-1: USB disconnect, address 3
[ 5426.492023] usb 2-1: new full speed USB device using ohci_hcd and address 4
[ 5426.711608] usb 2-1: configuration #1 chosen from 1 choice
[ 5426.714405] quickcam: QuickCam USB camera found (driver version QuickCam USB 0.6.6 $Date: 2006/11/04 08:38:14 $)
[ 5426.714422] quickcam: Kernel:2.6.27-7-generic bus:2 class:FF subclass:FF vendor:046D product:08F

xawtv:

This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.27-7-generic)
xinerama 0: 1280x1024+0+0
WARNING: No DGA direct video mode for this display.
can't open /dev/video0: No such file or directory
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such file or directory
v4l2: open /dev/video0: No such file or directory
v4l: open /dev/video0: No such file or directory
no video grabber device available

so, no vode0 creation1!!!

Revision history for this message
Ala (ala-luszczak) wrote :

I also had camera working on Hardy in camorama and skype, but now it's not working. I've got /dev/video0 but no picture in skype or camorama.

Kernel: 2.6.27-7

lsusb:
Bus 005 Device 005: ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX

dmesg | grep gspca:
[ 13.980933] gspca: main v2.2.0 registered
[ 13.993209] gspca: probing 046d:08d7
[ 15.720605] gspca: probe ok
[ 15.720628] gspca: probing 046d:08d7
[ 15.720644] gspca: probing 046d:08d7

lsmod | grep gspca:
gspca_zc3xx 55936 0
gspca_main 29312 1 gspca_zc3xx
videodev 41344 1 gspca_main
usbcore 148848 9 snd_usb_audio,snd_usb_lib,usblp,gspca_zc3xx,gspca_main,usbhid,ehci_hcd,uhci_hcd

Revision history for this message
Cerbaiola (gianni-omniway) wrote :

I'm running Intrepid with kernel 2.6.27-7-generic

Camera works with XawTV and Ekiga but not with Skype!!
Camera is seen by Skype, but video captured is only a green garbled disturbed screen...
Any ideas or tests that I can do???

Bus 002 Device 002: ID 054c:0155 Sony Corp. Eyetoy Namtai
 dmesg | grep gspca
[ 2300.069842] gspca: main v2.2.0 registered
[ 2300.083849] gspca: probing 054c:0155
[ 2300.310441] gspca: probe ok

 lsmod | grep gspca
gspca_ov519 23812 0
gspca_main 29312 1 gspca_ov519
videodev 41344 1 gspca_main
usbcore 148848 8 gspca_ov519,gspca_main,snd_usb_audio,snd_usb_lib,btusb,ehci_hcd,uhci_hcd

Revision history for this message
Andrey Beljakov (andvalb) wrote :

Ubuntu Intrepid Ibex (with kernel 2.6.27-7.14-generic)

Camera (D'Link DSB C320 - pixart chip (pac7311)) work only in Chease or Ekiga (without recording video) but have very poor image quality (colour saturation flashing with very poor image resolution) that make it unusable.
In Chease captured images don't have colour and saturation artefacts but have poor resolution (mixed noise?)
Sound from camera (internal microphone) don't work.
TVtime say "frames too short from pac7311" in displayed blue screen.
if I'm trying record video in Chease - Chease hangs or record no more then one second of video with huge memory (RAM) consumption.
In Windows XP camera works well.

lsmod | grep gspca
gspca_pac7311 23040 1
gspca_main 33536 1 gspca_pac7311
compat_ioctl32 18176 1 gspca_main
videodev 46720 3 gspca_main,compat_ioctl32
usbcore 175376 13 gspca_pac7311,gspca_main,snd_usb_audio,snd_usb_lib,stir4200,btusb,usb_storage,usbhid,libusual,ohci_hcd,ehci_hcd

dmesg | grep gspca
[160514.347340] gspca: usb_submit_urb [0] err -28
[160517.449123] gspca: usb_submit_urb [0] err -28
[161079.201955] gspca: disconnect complete
[161079.228088] gspca: main deregistered
[161120.361275] gspca: main v2.2.0 registered
[161178.320397] gspca: probing 093a:260e
[161178.327909] gspca: probe ok
[161196.946873] gspca: usb_submit_urb [0] err -28
[161199.011068] gspca: usb_submit_urb [0] err -28
[162163.853507] gspca: usb_submit_urb [0] err -28
[162166.063832] gspca: usb_submit_urb [0] err -28

Revision history for this message
zour1el (zour1el) wrote :

It got the cam to work 100% in intrepid Release Can... I had to compile an older kernel, but it is working.
Today the updated kernel hit the repo 2.6.27-7-generic
and well cam video is gone again
Cheese is a white screen other apps is static

 lsmod | grep gspca
gspca_zc3xx 55936 0
gspca_main 29312 1 gspca_zc3xx
videodev 41344 1 gspca_main
usbcore 148848 8 snd_usb_audio,snd_usb_lib,gspca_zc3xx,gspca_main,usbhid,ohci_hcd,ehci_hcd

dmesg | grep gspca
[ 2279.845028] gspca: main v2.2.0 registered
[ 2279.853222] gspca: probing 0ac8:0302
[ 2281.386985] gspca: probe ok
[ 2281.387505] gspca: probing 0ac8:0302
[ 2281.388147] gspca: probing 0ac8:0302

This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.27-7-generic)
xinerama 0: 1440x900+0+0
WARNING: No DGA support available for this display.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct

cheese
libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000ffff

Bus 002 Device 005: ID 0ac8:0302 Z-Star Microelectronics Corp. ZC0302 WebCam

Boot back in to old kernel and all is well

Revision history for this message
Daniel Holm (danielholm) wrote :

I to get the error:
[11664.290309] gspca: usb_submit_urb [0] err -28

And the bug, which this one is reported duplicated with doesn't say anything about this message?

I'm trying to use these two cams with ZoneMinder:
Bus 001 Device 006: ID 093a:2468 Pixart Imaging, Inc. Cammaestro 2.5DU/X-EYE/Orite SC-120/ICGear TravelCam/Easy Snap Snake Eye WebCam
Bus 001 Device 005: ID 041e:4028 Creative Technology, Ltd Vista Plus cam [VF0090]

lsmod | grep gspca
gspca_pac207 14848 0
gspca_main 29312 1 gspca_pac207
videodev 41344 1 gspca_main
usbcore 149360 7 gspca_pac207,gspca_main,usb_storage,libusual,ohci_hcd,ehci_hcd

ls /dev | grep video
video0
video1

Please help.

Revision history for this message
Mitsch (kontakt-riotmusic) wrote :

I guess, the duplicate status of this bug is wrong. It starts with a report, that /dev/videoX is not created when plugging a "gspca"-webcam. This is also my problem, running Ubuntu 8.10 with a 2.6.27-8-generic kernel and an "Aiptek Minicam", which is recognized as a "Sunplus Technology Co., Ltd SPCA504a Digital Camera". (The other comments complain about problems with some applications, but most of the reporters HAD a /dev/video on their machine!)

Reffering to the drivers, I had no problems in hardy and earlier versions of Ubuntu using the "gspca" module. The /dev/video0 file was created and I could use the device with "ekiga" and lately "cheese".

So me and the reporter of the initial bugreport have a problem with the driver (gspca_XXX), not with a library (libv4l) as in #260918.

Some further informations about my webcam/camera:

lsusb:

Bus 004 Device 012: ID 04fc:504a Sunplus Technology Co., Ltd SPCA504a Digital Camera

If I connect it, this message is written in /var/log/messages:

Nov 24 23:53:35 blah kernel: [43443.744506] usb 4-2: USB disconnect, address 3
Nov 24 23:53:35 blah kernel: [43443.744521] usb 4-2.3: USB disconnect, address 6
Nov 24 23:53:36 blah kernel: [43444.244108] usb 4-2: new high speed USB device using ehci_hcd and address 10
Nov 24 23:53:36 blah kernel: [43444.420161] usb 4-2: configuration #1 chosen from 1 choice
Nov 24 23:53:36 blah kernel: [43444.423105] hub 4-2:1.0: USB hub found
Nov 24 23:53:36 blah kernel: [43444.424663] hub 4-2:1.0: 4 ports detected
Nov 24 23:53:36 blah kernel: [43444.720330] usb 4-2.3: new full speed USB device using ehci_hcd and address 11
Nov 24 23:53:36 blah kernel: [43444.871781] usb 4-2.3: configuration #1 chosen from 1 choice
Nov 24 23:53:36 blah kernel: [43444.998349] usb 4-2.4: new full speed USB device using ehci_hcd and address 12
Nov 24 23:53:36 blah kernel: [43445.098144] usb 4-2.4: configuration #1 chosen from 1 choice
Nov 24 23:53:37 blah kernel: [43445.689154] Linux video capture interface: v2.00
Nov 24 23:53:37 blah kernel: [43445.710079] gspca: main v2.2.0 registered
Nov 24 23:53:37 blah kernel: [43445.717058] gspca: probing 04fc:504a
Nov 24 23:53:39 blah kernel: [43447.890638] gspca: probe ok
Nov 24 23:53:39 blah kernel: [43447.891372] gspca: probing 04fc:504a
Nov 24 23:53:39 blah kernel: [43447.893127] usbcore: registered new interface driver sunplus
Nov 24 23:53:39 blah kernel: [43447.893682] sunplus: registered
Nov 24 23:53:40 blah kernel: [43448.476749] gspca: disconnect complete

Ubuntu uses the "gspca_sunplus" driver with my device. "gspca_main" and "videodev" is also loaded. An icon is also placed on the desktop - I guess it's for the photo- and not for the webcam-function. ;)
Interesting detail: I've got the "Platten einbinden"-applet (I don't know, how it is originally called. It is for mounting and unmounting devices, I guess it's called the "drivemount-applet") and the Aiptek-Cam is ALWAYS shown TWICE, with one of them mounted and the other unmounted. If I try to mount the unmounted twin, the applet crashes and must be reloaded. Maybe this all has something to do with the strange message "gspca: disconnect complete" or with the uncreated /dev/video0 device...?

Revision history for this message
israel vainsencher (israel-mat) wrote :

the sony vaio builtin webcam worked fine in 8.4; stopped in 8.10:
Linux israel-laptop 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
israel@israel-laptop:~$ xawtv
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.27-9-generic)
xinerama 0: 1366x768+0+0
can't open /dev/video0: No such file or directory
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such file or directory
v4l2: open /dev/video0: No such file or directory
v4l: open /dev/video0: No such file or directory
no video grabber device available

israel@israel-laptop:~$ lsusb
Bus 005 Device 006: ID 044e:300d Alps Electric Co., Ltd Bluetooth Controller (ALPS/UGPZ6)
Bus 005 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 005 Device 005: ID 05ca:183a Ricoh Co., Ltd
Bus 005 Device 002: ID 054c:02d5 Sony Corp.
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 147e:2016
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Revision history for this message
Andres Mujica (andres.mujica) wrote :

unmarked as dupe because this problem reflects a missing /dev/vide0 device. Sorry for the delay

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Mircea (tramir) wrote :

I have a similar problem with a Logitech ClickSmart 310 camera, supported by gspca (spca500), which used to work without problems in Hardy. Here is the dmesg output when plugging it in:

[ 99.612061] usb 5-1: new full speed USB device using uhci_hcd and address 2
[ 99.805082] usb 5-1: configuration #1 chosen from 1 choice
[ 100.199693] Linux video capture interface: v2.00
[ 100.221425] gspca: main v2.2.0 registered
[ 100.248271] gspca: probing 046d:0900
[ 100.266417] gspca: probe ok
[ 100.266944] gspca: probing 046d:0900
[ 100.270080] usbcore: registered new interface driver spca500
[ 100.271448] spca500: registered
[ 100.446131] gspca: disconnect complete

No /dev/video is created, and hence no application finds the camera. The camera is found by lsusb:

Bus 005 Device 003: ID 046d:0900 Logitech, Inc. ClickSmart 310

I installed the libv4l packages as per bug 260918, but I don't think that's relevant because the error is at the point of mounting the camera. Any progress on the issue? Any workarounds? (Again, the camera worked without problems in Hardy, I don't know what caused the regression and there are no workarounds that I know of yet).

Revision history for this message
Tom Byrne (inverted-sheep) wrote :

I have also encountered this problem as Mitsch writes:

My Apitek Mega camera pen cam is recognised as 'Sunplus Technology Co., Ltd SPCA504a Digital Camera' in nautilus (duplicated with only one mounted). and when pluged in a message pops up saying:

Unable to mount Sunplus Technology Co., Ltd SPCA504a Digital Camera

Error initialising camera: -60: Could not lock the device

My dmesg gives:

[37968.720106] usb 2-2: USB disconnect, address 13
[37974.172132] usb 2-2: new full speed USB device using uhci_hcd and address 14
[37974.296164] usb 2-2: device descriptor read/64, error -71
[37974.620890] usb 2-2: configuration #1 chosen from 1 choice
[37974.624331] gspca: probing 04fc:504a
[37977.923104] gspca: probe ok
[37977.923735] gspca: probing 04fc:504a
[37978.605816] gspca: disconnect complete

And lsusb gives:

Bus 002 Device 014: ID 04fc:504a Sunplus Technology Co., Ltd SPCA504a Digital Camera

The webcam was working fine in hardy (cheese) with no alterations.

Revision history for this message
Jonathan Blackhall (johnny-one-eye) wrote :
Revision history for this message
Andres Mujica (andres.mujica) wrote :

different lsusb id's .. related but not identical. But probably solved with the same patch (as soon as it's available)

Revision history for this message
Petar Velkovski (pvelkovski) wrote :

I have the same problem with Mustek gSmart 300 in Jaunty RC. Mustek gSmart 300 is basically a webcam that was made to look as a digital camera, has a very small inbuilt memory enough for taking 20-30 pictures of 640x480. But the webcam functionality is the main reason people bought it. When the webcam is pluged-in it shows almost the same behavior as described in bug report #291906 (Mustek gSmart 300 not working in Ubuntu 8.10) which was marked as duplicate of bug #285682 (Ubuntu 8.10 can't mount digital camera showing a window popup message: -60 could not lock the device message). This time there is no window popup message: -60 but there are 3 beeps. The end result is that the camera is properly detected, but no /dev/video0 is created. We can see this from

dmesg
...
[59707.024530] usb 2-2: new full speed USB device using uhci_hcd and address 52
[59707.322348] usb 2-2: configuration #1 chosen from 1 choice
[59707.325155] gspca: probing 055f:c200
[59707.327177] gspca: probe ok
[59707.327245] gspca: probing 055f:c200
[59708.523532] gspca: disconnect complete

As you can see the device is probed twice, and after the second probing there is some kind of disconnect.

lsmod | grep gspca gives
gspca_spca500 21632 0
gspca_main 29952 1 gspca_spca500
videodev 41600 1 gspca_main

I found a temporary solution by removing gspca modules from the memory and then installing them again by:

sudo rmmod gspca_spca500
sudo rmmod gspca_main
sudo modprobe gspca_spca500

After this is done, there are no multiple beeps, and dmesg gives:
...
[60252.278571] usbcore: deregistering interface driver spca500
[60252.280145] spca500: deregistered
[60252.282087] gspca: main deregistered
[60252.306251] gspca: main v2.3.0 registered
[60252.307925] gspca: probing 055f:c200
[60252.309122] gspca: probe ok
[60252.309139] gspca: probing 055f:c200
[60252.309168] usbcore: registered new interface driver spca500
[60252.309173] spca500: registered

This time /dev/video0 is properly created and the webcam works under skype. It has other problems under cheese, kopete, vlc etc. which I presume are related to other kind of bugs.

The second temporary solution I found was to kill /usr/lib/gvfs/gvfs-gphoto2-volume-monitor process before pluging the webcam into the computer. I didn't post my comment under bug #285682 because the discussion over there is mostly related to digital cameras and not webcams and secondly because there was a heated discussion and someone stating that this is completly normal and this is how things should be, resulting in bug #285682 status marked as invalid . Please don't forget that Mustek gSmart 300 is basically a webcam with a very low sensor resolution. Can this kind of "multifunctional" webcams be blacklisted from the gvfs or gphoto2 modules?

p.s. Sebastien Bacher is an idiot

Revision history for this message
Antonio (tritemio) wrote :

I have the same problem: in Jaunty the Creative PC-CAM 600 webcam does not work anymore. This is a fresh Jaunty installation. The webcam was working in a previous release such Feisty so the bug is a regression.

At each connect I get this message:

abramo kernel: [ 3031.407320] usb 2-1: USB disconnect, address 9
abramo kernel: [ 3042.244054] usb 2-1: new full speed USB device using ohci_hcd and address 10
abramo kernel: [ 3042.510182] usb 2-1: configuration #1 chosen from 1 choice
abramo kernel: [ 3042.513457] gspca: probing 041e:400b
abramo kernel: [ 3043.012972] sunplus: reg write: error -110
abramo kernel: [ 3043.587880] gspca: probe ok
abramo kernel: [ 3043.588921] gspca: probing 041e:400b
abramo kernel: [ 3044.033373] gspca: disconnect complete

I need to reload the gspca_sunplus module manully each time I connect the webcam:

sudo modprobe -r gspca_sunplus
sudo modprobe gspca_sunplus

in order to have the correct creation of /dev/video0. The log message while unloading/reloading the module is:

abramo kernel: [ 3140.197307] usbcore: deregistering interface driver sunplus
abramo kernel: [ 3140.204126] sunplus: deregistered
abramo kernel: [ 3140.209516] gspca: main deregistered
abramo kernel: [ 3149.946656] Linux video capture interface: v2.00
abramo kernel: [ 3149.963714] gspca: main v2.3.0 registered
abramo kernel: [ 3149.971319] gspca: probing 041e:400b
abramo kernel: [ 3150.586091] gspca: probe ok
abramo kernel: [ 3150.586134] gspca: probing 041e:400b
abramo kernel: [ 3150.586180] usbcore: registered new interface driver sunplus
abramo kernel: [ 3150.586189] sunplus: registered

After the module reloading the webcam works well with Cheese and xawtv. However with skype and ekiga the image quality in very poor (dark) at a level that I can hardly distinguish any shape.

I'll be happy to provide any further information.

Revision history for this message
Mitsch (kontakt-riotmusic) wrote :

Tried my webcam in karmic - still no success!
The modules ("gspca-sunplus", "gspca-main" and "videodev") are loaded, but still no /dev/video* device to make "cheese" and other apps working with my webcam. In /var/log/messages nothing happens when I plug in the camera, so I added the messages of "sudo udevadmin monitor":

KERNEL[1249427867.736830] add /devices/pci0000:00/0000:00:12.1/usb4/4-1 (usb)
KERNEL[1249427867.737706] add /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0 (usb)
UDEV [1249427867.748572] add /devices/pci0000:00/0000:00:12.1/usb4/4-1 (usb)
UDEV [1249427867.756381] add /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0 (usb)
KERNEL[1249427871.821381] add /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0/video4linux/video0 (video4linux)
KERNEL[1249427871.821447] add /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.1 (usb)
UDEV [1249427871.841807] add /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0/video4linux/video0 (video4linux)
UDEV [1249427871.845068] add /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.1 (usb)
KERNEL[1249427872.065030] remove /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0/video4linux/video0 (video4linux)
UDEV [1249427872.074279] remove /devices/pci0000:00/0000:00:12.1/usb4/4-1/4-1:1.0/video4linux/video0 (video4linux)

The mass-storage-part of that device is - by the way - no more recognized. I can't mount it. The good news about it is that I no longer get an error message from nautilus on every start up... :) I got this behaviour since intrepid. So, no change for me in jaunty and karmic.

Conclusion: Ubuntu recognizes the device correctly, all modules are loaded - but there is no /dev/video. Is it possible to try a mknod by hand? If yes, what are the correct options (major and minor numbers) to do it? Maybe, it's the missing thing to do to get a working webcam... O.k. - maybe not, but it's worth a try! :)

Greetings!
Mitsch

Revision history for this message
Mitsch (kontakt-riotmusic) wrote :

Got a good hint in #440590:
The modules must be reloaded after boottime to work correctly:

modprobe -r gspca-sunplus
modprobe gscpa-sunplus

That does the trick for me! A /dev/videoX is created, accessable and full functioning!
I hadn't success putting these lines in rc.local - it won't be executed. Still have to figure out, why. But if I execute the two lines by hand after every boot, I have my webcam back, again!

Revision history for this message
Mircea Postolache (mircea273) wrote : Re: [Bug 255678] Re: GSPCA webcam no longer working: no /dev/video0

Make sure rc.local is executable and use full path on the things you want to run e.g. /sbin/modprobe ...

________________________________
From: Mitsch <email address hidden>
To: <email address hidden>
Sent: Sat, October 31, 2009 10:39:13 AM
Subject: [Bug 255678] Re: GSPCA webcam no longer working: no /dev/video0

Got a good hint in #440590:
The modules must be reloaded after boottime to work correctly:

modprobe -r gspca-sunplus
modprobe gscpa-sunplus

That does the trick for me! A /dev/videoX is created, accessable and full functioning!
I hadn't success putting these lines in rc.local - it won't be executed. Still have to figure out, why. But if I execute the two lines by hand after every boot, I have my webcam back, again!

--
GSPCA webcam no longer working: no /dev/video0
https://bugs.launchpad.net/bugs/255678
You received this bug notification because you are a direct subscriber
of the bug.

Status in “linux” package in Ubuntu: Triaged

Bug description:
I am running Intrepid amd64 and plug in an Intel webcam, documented to be support by the gspca driver. This camera worked on a Hardy installation on the same machine.

The device appears to be properly detected and the gspca driver loaded.

However, it cannot be accessed by any applications.

Error returned when running gstreamer-properties:
Video for Linux (v4l): Device "/dev/video0" does not exist.

dmesg:
[50888.838640] usb 3-1: new full speed USB device using uhci_hcd and address 3
[50889.024621] usb 3-1: configuration #1 chosen from 1 choice
[50889.242073] gspca: USB GSPCA camera found.(SPCA500+unknown CCD)
[50889.243115] usbcore: registered new interface driver gspca
[50889.243115] gspca: gspca driver 01.00.20 registered
[50889.842497] gspca: init isoc: usb_submit_urb(0) ret -2

*-2 return code is for no such file or directory.

lsusb:
Bus 005 Device 005: ID 046d:c521 Logitech, Inc. MX620 Laser Cordless Mouse
Bus 005 Device 004: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter
Bus 005 Device 003: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 8086:0630 Intel Corp. Pocket PC Camera
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0a81:0101 Chesen Electronics Corp. Keyboard
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsmod (grep for gspca):
gspca 665680 0
compat_ioctl32 18304 1 gspca
videodev 43648 2 gspca,compat_ioctl32
usbcore 170648 9 gspca,usb_storage,libusual,hci_usb,usbhid,ehci_hcd,uhci_hcd

lsb_release -rd:
Description: Ubuntu intrepid (development branch)
Release: 8.10

Revision history for this message
Mitsch (kontakt-riotmusic) wrote :

Got it working.
The problem was not, that rc.local wasn't executed, but the modprobe trick seems to work only, if booting is finished. My rc.local now looks like this:

modprobe -r gspca_sunplus && sleep 60s && modprobe gspca_sunplus
exit 0

Now, everything works.

Revision history for this message
Antonio (tritemio) wrote :

Following from comment #20. I have the exact same behaviour as described in #20 in karmic too (fresh installation). The syslog is the same too. To summarize:

1. Creative PC-600 webam does not work out of the box anymore in jaunty and karmic
2. The module unload-reload trick works (must be redone each time the webcam is connected)
3. Skype gives almost black (unusable) video (worked before jaunty).

Revision history for this message
dusoft (dusoft-staznosti) wrote :

kubuntu karmic 9.10
2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux

[147978.536029] usb 2-2: new full speed USB device using uhci_hcd and address 9
[147978.737284] usb 2-2: configuration #1 chosen from 1 choice
[147978.742429] gspca: probing 041e:403b
[147978.876207] gspca: probe ok
[148344.096077] usb 2-2: USB disconnect, address 9
[148344.096206] gspca: disconnect complete
[148348.304038] usb 3-1: new full speed USB device using uhci_hcd and address 10
[148348.507348] usb 3-1: configuration #1 chosen from 1 choice
[148348.512537] gspca: probing 041e:403b
[148348.633432] gspca: probe ok
[148371.428244] gspca: usb_submit_urb [0] err -28
[148371.467983] gspca: usb_submit_urb [0] err -28

Revision history for this message
dusoft (dusoft-staznosti) wrote :

cam is Bus 003 Device 010: ID 041e:403b Creative Technology, Ltd Creative Webcam Vista [VF0010]

doesn't work. skype gives weird green video

Revision history for this message
dusoft (dusoft-staznosti) wrote :

solution proposed here works:
https://answers.launchpad.net/ubuntu/+question/49739

e.g.: download and install proposed library, then do:
#!/bin/bash
export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
/usr/bin/skype

Revision history for this message
Heather Van Wilde (heatheriac) wrote :

Tried dusoft's compat workaround, still not connecting to webcam.

Camera: Intel CS630

Linux lumiere 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009 i686 GNU/Linux (Jaunty)

lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 009: ID 047d:1020 Kensington Expert Mouse Trackball
Bus 003 Device 008: ID 04f3:0103 Elan Microelectronics Corp.
Bus 003 Device 004: ID 03f0:020c Hewlett-Packard Multimedia Keyboard
Bus 003 Device 003: ID 03f0:010c Hewlett-Packard Multimedia Keyboard Hub
Bus 003 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 009: ID 8086:0630 Intel Corp. Pocket PC Camera <---------- My cam
Bus 002 Device 002: ID 0925:8888 Lakeview Research
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

dmesg | grep gspca

[343560.237165] gspca: probing 8086:0630
[343560.238366] gspca: probe ok
[343560.238419] gspca: probing 8086:0630
[343560.619230] gspca: disconnect complete

lsmod | grep gspca
gspca_spca500 21632 0
gspca_main 29952 1 gspca_spca500
videodev 41600 1 gspca_main

I get the same errors that have been coming up about no directory for /dev/video0

Revision history for this message
andreselsuave (andreselsuave) wrote :

Same problem here on Karmic, kernel 2.6.31-17-generic. Webcam model: PC-CAM 300.
Can't get it to work in any program, not even with the unloading-reloading modules trick. No creation of /dev/video0

dmesg output:
[45837.428031] usb 2-2: new full speed USB device using uhci_hcd and address 12
[45837.674218] usb 2-2: configuration #1 chosen from 1 choice
[45837.677914] gspca: probing 041e:400a
[45837.678002] gspca: probe ok
[45837.678096] gspca: probing 041e:400a
[45837.872514] gspca: disconnect complete

lsmod | grep gspca:
gspca_spca500 11996 0
gspca_main 22812 1 gspca_spca500
videodev 36736 1 gspca_main

any workarounds found yet?
andres el suave

Revision history for this message
HelToupee (heltoupee) wrote :

Same problem here on Karmic:

uname -a:
Linux ~~hostname~~ 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux

webcam: Logitech ClickSmart 310
driver: should use gspca_spca500

dmesg output:
[526547.262544] usb 2-1: new full speed USB device using ohci_hcd and address 3
[526547.482178] usb 2-1: configuration #1 chosen from 1 choice
[526548.442486] Linux video capture interface: v2.00
[526548.488869] gspca: main v2.6.0 registered
[526548.491867] gspca: probing 046d:0900
[526548.538130] gspca: probe ok
[526548.538180] gspca: probing 046d:0900
[526548.538227] usbcore: registered new interface driver spca500
[526548.538234] spca500: registered
[526549.020441] gspca: disconnect complete

There is NO /dev/video0 created at this point. I have my suspicions that there was one there between the last 2 messages, but it is nearly immediately disconnected.

lsmod | grep gspca:
gspca_spca500 13664 0
gspca_main 26816 1 gspca_spca500
videodev 43360 1 gspca_main

I will try the unloading and then reloading modules trick described in #19.
The driver author lists this model camera as "not tested": http://moinejf.free.fr/webcam.html.

 -Patiently waiting
Paul

Revision history for this message
HelToupee (heltoupee) wrote :

Followup to #31:

After seeing the 'gspca: disconnect complete' line in dmesg, I executed the following:

sudo rmmod gspca_spca500
sudo rmmod gspca_main
sudo modprobe gspca_spca500

And the following appeared in dmesg:

[604283.194613] usbcore: deregistering interface driver spca500
[604283.194694] spca500: deregistered
[604291.541320] gspca: main deregistered
[604344.435960] gspca: main v2.6.0 registered
[604344.438662] gspca: probing 046d:0900
[604344.486734] gspca: probe ok
[604344.486759] gspca: probing 046d:0900
[604344.486802] usbcore: registered new interface driver spca500
[604344.486810] spca500: registered

At that point, I have a /dev/video0, and cheese can see it and use it. Skype, however, requires the following to work properly:

export LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so && skype

I'm also seeing a great number of these types of errors in dmesg after the camera is active:

[656668.677877] gspca: ISOC data error: [4] len=387, status=-70
[656681.637876] gspca: ISOC data error: [15] len=398, status=-70
[656681.733925] gspca: ISOC data error: [28] len=379, status=-70
[656681.861886] gspca: ISOC data error: [10] len=425, status=-70
[656701.893906] gspca: ISOC data error: [9] len=328, status=-70
[656701.989899] gspca: ISOC data error: [12] len=395, status=-70
[656702.085890] gspca: ISOC data error: [26] len=377, status=-70

but at least the workaround seems to work OK for me.

Revision history for this message
Heather Van Wilde (heatheriac) wrote :

Oh, thank you, thank you, thank you ... i had the same errors as you did, but this command does work for me:

sudo rmmod gspca_spca500
sudo rmmod gspca_main
sudo modprobe gspca_spca500

after plugging in the camera ... got the same dmesg output. haven't tries skype yet though

Revision history for this message
Heather Van Wilde (heatheriac) wrote :

oh, and on another note, it appears the commands need to be run every time you plug in the camera (and likely everyime you turn on the computer)

Revision history for this message
skywriter (xxxiter) wrote :

After plugging camera i got the following from "dmesg":

[61670.227091] gspca: probing 055f:c520
[61670.617116] gspca: probe ok
[61670.617195] gspca: probing 055f:c520
[61670.746256] gspca: disconnect complete

This looks similiar to comment #19 but instead of "gspca_spca500" I got "gspca_sunplus" in result of "lsmod" command. I healed this by replacing the module gspca_sunplus with gspca_spca500 this way:

sudo modprobe -r gspca_sunplus
sudo modprobe -r gspca_main
sudo modprobe gspca_spca500

Now i get the following from dmesg:

[63545.151603] Linux video capture interface: v2.00
[63545.157233] gspca: main v2.7.0 registered
[63545.159371] usbcore: registered new interface driver spca500
[63545.160261] spca500: registered

Seems OK, but I still have no "/dev/video0". How to get back it to live?
Is there any manual way? This webcam worked OK in ALT Linux 4.0 Desktop.

lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

Revision history for this message
skywriter (xxxiter) wrote :

I have tried to compile the driver gspca from source (http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz).

First it reported the following: "asm/semaphore.h: No such file or directory''.
After reading this comment (http://www.linuxjournal.com/video/get-your-webcam-working-gspca#comment-341318) and applying the advice it reports the following:

In file included from /home/user/tmp/gspcav1-20071224/gspca_core.c:845:
/home/user/tmp/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/user/tmp/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/user/tmp/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/user/tmp/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/user/tmp/gspcav1-20071224/gspca_core.c:853:
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/user/tmp/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function

Any suggestions? Is there any stable driver which produces device file /dev/video0?

Revision history for this message
skywriter (xxxiter) wrote :

I seems gspca driver is a part of kernel now so there is no sense in compiling old drivers from mxhaard:
http://moinejf.free.fr/gspca_README.txt .

Should be another way.

Revision history for this message
sae.area (saearea-test) wrote :

Webcam: Logitech ClickSmart 310
OS: Mint 9 (based on Ubuntu 10.04 LTS)
Kernel: 2.6.32-25-generic #45-Ubuntu

Plugging in webcam results in the following dmesg:

 [24398.959400] usb 3-1: configuration #1 chosen from 1 choice
 [24398.961440] gspca: probing 046d:0900
 [24398.994297] gspca: probe ok
 [24398.994453] gspca: probing 046d:0900
 [24399.291428] gspca: disconnect complete

No /dev/video0 is created

Both workarounds of #19 work (THANK YOU!):
after plugging in the webcam I run:
sudo rmmod gspca_spca500
sudo rmmod gspca_main
sudo modprobe gspca_spca500

or

before plugging in the webcam I kill:
/usr/lib/gvfs/gvfs-gphoto2-volume-monitor

Skype video options tests the cam successfully and Cheese works. No errors in dmesg.

I've tested the cam on an older Laptop running Mint 9 LXDE. Same procedure, but this time errors in dmesg as seen in #32

Revision history for this message
sae.area (saearea-test) wrote :

Sorry, I forgot to mention that I always run Skype with "export LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so && skype" workaround. Otherwise webcam does not work.

Revision history for this message
sae.area (saearea-test) wrote :

Upgraded the kernel from 2.6.32 to 2.6.35. Problem still the same. But for workaround to work I need remove one more module: sudo rmmod gspca_spca561

Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.