LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-18-2005, 03:09 PM   #1
Dionysian
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Ubuntu 6.06 AMD64
Posts: 24

Rep: Reputation: 15
Problems with webcam


I have just bought a new webcam: a Creative Webcam Live! and I have been attempting to get it working. I'm using Ubuntu Breezy 5.10 and heard the driver that comes with the kernel is faulty so I compiled it myself and installed it (these instructions are all on Ubuntu forums, where I've similarly asked for help but nothing much has been forthcoming). I've also created appropriate symlinks in the /dev filesystem so where ever a program looks for my video device it'll find it. However I've come across a problem. Whenever I try to use a command line program to access the camera I get this error:

Quote:
nick@kitsune:~$ gqcam
/dev/video: No space left on device
Which has left me completely puzzled. I've also tried a GUI program, camorama, but this just says it cannot connect to the device. What is the problem?
 
Old 10-18-2005, 06:44 PM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I don't know about the hardware but that's a very strange error message. Is the driver you compiled loading OK? Also if you unplug and replug the camera what log messages are generated? (Run dmesg command and check last dozen or so lines.)

Do the installation instructions say anything about configuring the system for autoloading the driver module?

Are you running 'udev'? (Does 'ps aux | grep udev' give a line with 'udevd' in it?)
 
Old 10-18-2005, 06:50 PM   #3
Dionysian
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Ubuntu 6.06 AMD64
Posts: 24

Original Poster
Rep: Reputation: 15
Here is the last lines of dmesg after unplugging and plugging in:

Quote:
[4309018.581000] usb 1-1: USB disconnect, address 2
[4309018.581000] ohci_hcd 0000:00:02.0: leak ed df297480 (#81) state 2
[4309022.259000] usb 1-1: new full speed USB device using ohci_hcd and address 4
[4309022.370000] /home/nick/downloads/spca5xx-20051001/drivers/usb/spca5xx.c: US B SPCA5XX camera found. Type Creative Live! Zc301+Tas5130c
[4309022.370000] /home/nick/downloads/spca5xx-20051001/drivers/usb/spca5xx.c: [s pca5xx_probe:8764] Camera type JPEG
[4309022.455000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:108] sensor answer1 0
[4309022.511000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.567000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.624000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.693000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.747000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.803000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.860000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309022.914000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zcx x_probeSensor:160] sensor answervga 0
[4309023.013000] /home/nick/downloads/spca5xx-20051001/drivers/usb/zc3xx.h: [zc3 xx_config:414] Find Sensor HV7131(c)
[4309023.022000] /home/nick/downloads/spca5xx-20051001/drivers/usb/spca5xx.c: [s pca5xx_getcapability:2528] maxw 640 maxh 480 minw 176 minh 144
[4309032.528000] Inbound IN=wlan0 OUT= MAC=00:c0:49:e2:b9:b5:00:c0:49:e6:bc:1e:0 8:00 SRC=200.112.11.201 DST=192.168.123.101 LEN=44 TOS=0x00 PREC=0x00 TTL=111 ID =53440 DF PROTO=TCP SPT=16881 DPT=33769 WINDOW=16948 RES=0x00 ACK PSH URGP=0
[4309039.794000] Inbound IN=wlan0 OUT= MAC=00:c0:49:e2:b9:b5:00:c0:49:e6:bc:1e:0 8:00 SRC=200.112.11.201 DST=192.168.123.101 LEN=44 TOS=0x00 PREC=0x00 TTL=111 ID =53868 DF PROTO=TCP SPT=16881 DPT=33769 WINDOW=16948 RES=0x00 ACK PSH URGP=0
[4309054.696000] Inbound IN=wlan0 OUT= MAC=00:c0:49:e2:b9:b5:00:c0:49:e6:bc:1e:0 8:00 SRC=200.112.11.201 DST=192.168.123.101 LEN=44 TOS=0x00 PREC=0x00 TTL=111 ID =55082 DF PROTO=TCP SPT=16881 DPT=33769 WINDOW=16948 RES=0x00 ACK PSH URGP=0
[4309086.080000] Inbound IN=wlan0 OUT= MAC=00:c0:49:e2:b9:b5:00:c0:49:e6:bc:1e:0 8:00 SRC=200.112.11.201 DST=192.168.123.101 LEN=44 TOS=0x00 PREC=0x00 TTL=111 ID =56718 DF PROTO=TCP SPT=16881 DPT=33769 WINDOW=16948 RES=0x00 ACK PSH URGP=0
Udev is running:

Quote:
nick@kitsune:~$ ps aux | grep udev
root 3573 0.0 0.1 1664 572 ? S<s 19:48 0:00 udevd --daemon
nick 13113 0.0 0.1 3064 760 pts/0 S+ 23:48 0:00 grep udev
 
Old 10-18-2005, 07:34 PM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I'm not familiar with the driver but at least there are no explicit error messages.

If udev is handling your device files you should try and check that it is working properly. Does the driver come with any instructions for configuring udev? If not maybe search for the combination of the driver name and 'udev'.

udev uses a set of rules (typically /etc/udev/rules.d/udev.rules) to create and remove special device files in /dev as hardware is plugged/unplugged. I think it is supposed to handle symlinks too. If you try to override/bypass it by creating files/links manually I'm not sure what happens.
 
Old 10-18-2005, 07:37 PM   #5
Dionysian
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Ubuntu 6.06 AMD64
Posts: 24

Original Poster
Rep: Reputation: 15
I did toy around with udev since some programs were looking in the wrong place (/dev/video) for it, so I created a symlink to /dev/video0.
 
Old 10-18-2005, 08:09 PM   #6
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
According to the udev setup I get device files are created in /dev/v4l with symlinks in /dev. And that's what seems to happen.

Instead of making symlinks can you specify the device name on the command line? Although your symlink looks pretty harmless.

Have you tried xawtv? That seems to be one of the more commonly used webcam viewers.
 
Old 10-18-2005, 08:11 PM   #7
Dionysian
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Ubuntu 6.06 AMD64
Posts: 24

Original Poster
Rep: Reputation: 15
I get the same error when trying Xawtv. Ubuntu doesn't seem to have a v4l section.
 
Old 10-18-2005, 08:20 PM   #8
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
What does the udev.rules file say say about the devices? Does /dev/video0 disappear/reappear as you unplug/plug the camera?

You can turn on udev debugging in /etc/udev/udev.conf if you want more detail. Of course, maybe the problem is somewhere else entirely.
 
Old 10-18-2005, 09:03 PM   #9
Dionysian
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Ubuntu 6.06 AMD64
Posts: 24

Original Poster
Rep: Reputation: 15
It disappears and reappears correctly, I don't seem to be able to find anything that expressly refers to a video device such as a webcam in the udev.rules file (but that may just be because I don't know exactly what it would look like). How do I turn on debugging?
 
Old 10-19-2005, 03:08 AM   #10
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Just search for 'video' in the udev.rules file.

To turn on debugging edit the /etc/udev/udev.conf file to set udev_log="yes".

Sorry I can't be of more help.
 
Old 10-21-2005, 06:28 PM   #11
Dionysian
LQ Newbie
 
Registered: Aug 2005
Location: Earth
Distribution: Ubuntu 6.06 AMD64
Posts: 24

Original Poster
Rep: Reputation: 15
Sorry about the dely in replying, didn't notice the e-mail in my inbox!

Quote:
# video devices
KERNEL=="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", \
NAME="%c"
KERNEL=="card[0-9]*", NAME="dri/%k"
Quote:
KERNEL=="video1394*", NAME="video1394/%n"
These are the only mentions of video in the udev.rules file.

I've turned on debugging using the method you stated.
 
Old 10-21-2005, 06:55 PM   #12
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I also have the following in udev.rules

# v4l devices
KERNEL="video[0-9]*", NAME="v4l/video%n", SYMLINK="video%n", GROUP="video"
KERNEL="radio[0-9]*", NAME="v4l/radio%n", GROUP="video"
KERNEL="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK="vbi%n", GROUP="video"
KERNEL="vtx[0-9]*", NAME="v4l/vtx%n", GROUP="video"

But if the /dev files are appearing/disappearing correctly it sounds as if the rules are OK. You could try adding the above to see if it makes any difference. You would have to reboot or restart udevd.

I'm not sure where udev writes it's messages. Somewhere in /var/log I guess. Do some plugging and unplugging and run 'tail' on recently changed files in there. Or just try 'dmesg'.
 
Old 08-31-2006, 12:21 PM   #13
vodunvibe
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Post

Hi,

When other USB devices are present on the same host controller bus as the camera, the bandwidth requirements of the spca5xx driver are not being met, with some hardware configurations.
The spca5xx driver is asking for more bandwidth than is available which results in the following error messages:

No space left on device
can't open /dev/video0: No space left on device.

Please search ubuntuforums . org for my howto.
Howto Fix the “No space left on device” error message and Install the Spca5xx driver

This is my first post, I cannot post the url.
I hope that it helps you resolve your issues.
w w w . ubuntu forums . org / showthread.php?t=247646
 
  


Reply


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
How To Install A Usb Webcam [Genius WebCam on Suse 9.1 Personal] ofvergara Suse/Novell 4 11-29-2006 01:09 PM
Joystick and webcam problems Heretic9 Linux - Hardware 1 05-02-2005 08:39 PM
Problems with webcam -- ov511 Adrohak Linux - Hardware 0 10-16-2004 11:30 AM
Problems with eth0 / webcam and that's all for the moment frenchi Linux - Hardware 2 12-30-2003 05:25 AM
webcam config problems westside Linux - Hardware 1 09-17-2002 09:58 AM


All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
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