LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   /dev/video0: No such device (https://www.linuxquestions.org/questions/linux-hardware-18/dev-video0-no-such-device-382094/)

meranto 11-11-2005 07:18 AM

/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?

acid_kewpie 11-11-2005 08:00 AM

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.

meranto 11-11-2005 08:24 AM

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

acid_kewpie 11-11-2005 12:33 PM

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.

meranto 11-12-2005 02:18 AM

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


meranto 11-12-2005 10:38 AM

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"?


All times are GMT -5. The time now is 05:40 PM.