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 11-11-2005, 08:18 AM   #1
meranto
LQ Newbie
 
Registered: Nov 2005
Location: /home/ridderkerk/NL or /work/heerhugowaard/NL
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
/dev/video0: No such device


When I try to access my webcam (Trust spycam 300s) using gqcam of xawtv I get the following message:

Code:
can't open /dev/video0: No such device
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such device
v4l2: open /dev/video0: No such device
v4l: open /dev/video0: No such device
The webcam is listed when I type "lsusb"

The kernel modules are also built, so what could be the problem?

Last edited by meranto; 11-11-2005 at 08:24 AM.
 
Old 11-11-2005, 09:00 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
the kernel module probably isn't loaded... is it in your"lsmod" output? modprobe it if not. also if it's usb then each time you connect it and the module is loaded, you should see a message in dmesg saying that a suitable /dev/videoX device has been created.
 
Old 11-11-2005, 09:24 AM   #3
meranto
LQ Newbie
 
Registered: Nov 2005
Location: /home/ridderkerk/NL or /work/heerhugowaard/NL
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
When I look into "/dev" i can see "/dev/video", it symlinks to "/dev/video0"

so it is there, well, it sould be because:

Code:
lsmod

Module                  Size  Used by
v4l2_common             5888  0
stv680                 28428  0
i915                   19712  1
drm                    65684  2 i915
snd_pcm_oss            50592  0
snd_mixer_oss          18432  1 snd_pcm_oss
snd_seq_dummy           3844  0
snd_seq_oss            33792  0
snd_seq_midi_event      7168  1 snd_seq_oss
snd_seq                51472  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8844  3 snd_seq_dummy,snd_seq_oss,snd_seq
pcspkr                  3800  0
snd_intel8x0           32320  1
snd_ac97_codec         79356  1 snd_intel8x0
snd_pcm                89864  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              24708  2 snd_seq,snd_pcm
snd                    55044  11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc         10632  2 snd_intel8x0,snd_pcm
usb_storage           112144  0
scsi_mod               93028  1 usb_storage
videodev                9728  2 stv680
the module is loaded, like dmesg points out:

Code:
dmesg | grep usb

usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usb 3-1: new low speed USB device using uhci_hcd and address 2
usbcore: registered new driver hiddev
input: USB HID v1.00 Mouse [Wheel Mouse] on usb-0000:00:1d.1-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
usbcore: registered new driver spca50x
/var/tmp/portage/spca5xx-20041224/work/spca5xx-20041224/drivers/usb/spca50x.c: spca5xx driver 0.55 registered
usbcore: registered new driver usb-storage
usb 2-1: new full speed USB device using uhci_hcd and address 2
usbcore: registered new driver stv680
drivers/usb/media/stv680.c: [usb_stv680_init:1497] STV(i): usb camera driver version v0.25 registering
drivers/usb/media/stv680.c: STV0680 USB Camera Driver v0.25
i'm a little confused here, because everything looks OK except for the creation of "/dev/videoX" like you mentioned

Last edited by meranto; 11-11-2005 at 09:26 AM.
 
Old 11-11-2005, 01:33 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
don't grep that output. instead run "dmesg -c" plug the device in and run it again, then you'll only get the details that changed between the two uses of dmesg.
 
Old 11-12-2005, 03:18 AM   #5
meranto
LQ Newbie
 
Registered: Nov 2005
Location: /home/ridderkerk/NL or /work/heerhugowaard/NL
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
I get this

Code:
hub 1-0:1.0: state 5 ports 6 chg 0000 evt 0002
ehci_hcd 0000:00:1d.7: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
hub 1-0:1.0: port 1, status 0501, change 0001, 480 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
ehci_hcd 0000:00:1d.7: port 1 full speed --> companion
ehci_hcd 0000:00:1d.7: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT
uhci_hcd 0000:00:1d.0: wakeup_rh (auto-start)
hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0002
uhci_hcd 0000:00:1d.0: port 1 portsc 0093,00
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new full speed USB device using uhci_hcd and address 3
usb 2-1: ep0 maxpacket = 8
usb 2-1: default language 0x0409
usb 2-1: new device strings: Mfr=0, Product=2, SerialNumber=0
usb 2-1: Product: USB Digital Still Camera
usb 2-1: hotplug
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: hotplug
hub 2-0:1.0: state 5 ports 2 chg 0000 evt 0002
after "modprobe stv680"


Code:
usbcore: registered new driver stv680
drivers/usb/media/stv680.c: [usb_stv680_init:1497] STV(i): usb camera driver version v0.25 registering
drivers/usb/media/stv680.c: STV0680 USB Camera Driver v0.25
my "lsmod" tells me this now (I updated/rebuilt my kernel)

Code:
Module                  Size  Used by
stv680                 28556  0
i915                   19840  1
drm                    71828  2 i915
rfcomm                 39964  0
l2cap                  25988  5 rfcomm
snd_pcm_oss            50848  0
snd_mixer_oss          18304  1 snd_pcm_oss
snd_seq_dummy           3844  0
snd_seq_oss            33792  0
snd_seq_midi_event      7168  1 snd_seq_oss
snd_seq                51472  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8844  3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_intel8x0           33120  1
snd_ac97_codec         89980  1 snd_intel8x0
snd_ac97_bus            2432  1 snd_ac97_codec
snd_pcm                89992  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              24708  2 snd_seq,snd_pcm
snd                    55524  11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc         10760  2 snd_intel8x0,snd_pcm
 
Old 11-12-2005, 11:38 AM   #6
meranto
LQ Newbie
 
Registered: Nov 2005
Location: /home/ridderkerk/NL or /work/heerhugowaard/NL
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
Well, to simplify things, I dug up some kind of alien webcam of which nobody ever heard. This one worked instantly with the spca5xx driver.

I guess the problem is down to:

What module is needed for the "Trust Spycam 300s"?
 
  


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
cannot open tv card and /dev/video0 device on suse 9.3 gros777 Linux - Hardware 1 08-05-2005 01:12 PM
V4L: "cat /dev/video0: no such device"; to be sure not supported? jago25_98 Linux - Hardware 1 01-27-2005 05:04 PM
aaxine and TV-In (/dev/video0) paco36 Linux - Software 0 01-10-2005 07:16 PM
/dev/video0 Tuttle Slackware 10 07-23-2003 04:39 AM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 09:20 PM


All times are GMT -5. The time now is 09:30 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