You are not logged in.

#1 2005-11-23 06:19:50

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

video4linux problem

I'm having a problem, it seems that v4l isn't installed. I had it working months ago, don't know why it doesn't work now, maybe something to do with udev... please help me

i've made a thread about it little ago, but there were no replies...

http://bbs.archlinux.org/viewtopic.php?t=16515

(please reply in this topic)

Offline

#2 2005-11-23 06:30:30

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

Re: video4linux problem

# vc devices
KERNEL=="vcs",        NAME="vcc/0"
KERNEL=="vcs[0-9]*",  NAME="vcc/%n"
KERNEL=="vcsa",       NAME="vcc/a0"
KERNEL=="vcsa[0-9]*", NAME="vcc/a%n"
KERNEL=="ptmx",        MODE="0666"
KERNEL=="tty",        MODE="0666"

# video devices
SUBSYSTEM=="video4linux", GROUP="video"
KERNEL=="dvb*",        PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c", GROUP="video"
KERNEL=="nvidia*",    GROUP="video"
KERNEL=="card[0-9]*",    NAME="dri/%k", GROUP="video"
KERNEL=="3dfx*",        NAME="%k", GROUP="video"

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


I'm on group video, and

[root@universo nbcjr]# ls -alh /dev/
total 8.5K
drwxr-xr-x  24 root  root           0 2005-11-23 01:50 .
drwxr-xr-x  20 root  root         520 2005-11-21 21:07 ..
drwxr-xr-x   2 root  root           0 2005-11-23 03:50 .udevdb
lrwxrwxrwx   1 root  root          10 2005-11-23 03:50 adsp -> sound/adsp
lrwxrwxrwx   1 root  root          11 2005-11-23 03:50 audio -> sound/audio
drwxr-xr-x   3 root  root           0 2005-11-23 01:50 cd
lrwxrwxrwx   1 root  root           3 2005-11-23 01:50 cdrom -> hdc
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 cdroms
lrwxrwxrwx   1 root  root           3 2005-11-23 01:50 cdrw -> hdc
crw-rw----   1 root  tty       5,   1 2005-11-23 03:50 console
lrwxrwxrwx   1 root  root          11 2005-11-23 01:50 core -> /proc/kcore
drwxr-xr-x   3 root  root           0 2005-11-23 01:50 discs
drwxr-xr-x   6 root  root           0 2005-11-23 01:50 disk
lrwxrwxrwx   1 root  root           9 2005-11-23 03:50 dsp -> sound/dsp
lrwxrwxrwx   1 root  root           3 2005-11-23 01:50 dvd -> hdc
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 fb
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 fb0 -> fb/0
lrwxrwxrwx   1 root  root          13 2005-11-23 01:50 fd -> /proc/self/fd
brw-rw----   1 root  floppy    2,   0 2005-11-23 01:49 fd0
lrwxrwxrwx   1 root  root           3 2005-11-23 01:49 fd0h1200 -> fd0
lrwxrwxrwx   1 root  root           3 2005-11-23 01:49 fd0u1440 -> fd0
lrwxrwxrwx   1 root  root           3 2005-11-23 01:49 fd0u360 -> fd0
lrwxrwxrwx   1 root  root           3 2005-11-23 01:49 fd0u720 -> fd0
drwxr-xr-x   2 root  root           0 2005-11-23 01:49 floppy
crw-rw-rw-   1 root  root      1,   7 2005-11-23 01:49 full
brw-rw----   1 root  disk      3,  64 2005-11-23 01:50 hdb
brw-rw----   1 root  disk      3,  65 2005-11-23 01:50 hdb1
brw-rw----   1 root  disk      3,  66 2005-11-23 01:50 hdb2
brw-rw----   1 root  disk      3,  67 2005-11-23 01:50 hdb3
brw-rw----   1 root  disk      3,  68 2005-11-23 01:50 hdb4
brw-rw----   1 root  disk      3,  69 2005-11-23 01:50 hdb5
brw-rw----   1 root  optical  22,   0 2005-11-23 01:50 hdc
drwxr-xr-x   3 root  root           0 2005-11-23 01:50 ide
prw-------   1 root  root           0 2005-11-23 03:49 initctl
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 input
crw-r-----   1 root  kmem      1,   2 2005-11-23 01:49 kmem
crw-rw----   1 root  root      1,  11 2005-11-23 01:49 kmsg
drwxr-xr-x   2 root  root           0 2005-11-23 01:49 legacy
srw-rw-rw-   1 root  root           0 2005-11-23 03:50 log
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 loop
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop0 -> loop/0
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop1 -> loop/1
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop2 -> loop/2
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop3 -> loop/3
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop4 -> loop/4
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop5 -> loop/5
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop6 -> loop/6
lrwxrwxrwx   1 root  root           6 2005-11-23 01:50 loop7 -> loop/7
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 mapper
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 md
brw-rw----   1 root  disk      9,   0 2005-11-23 01:50 md0
crw-r-----   1 root  kmem      1,   1 2005-11-23 01:49 mem
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 misc
lrwxrwxrwx   1 root  root          11 2005-11-23 03:50 mixer -> sound/mixer
crw-rw-rw-   1 root  root      1,   3 2005-11-23 01:49 null
crw-rw-rw-   1 root  root    195,   0 2005-11-23 03:50 nvidia0
crw-rw-rw-   1 root  root    195, 255 2005-11-23 03:50 nvidiactl
crw-r-----   1 root  kmem      1,   4 2005-11-23 01:49 port
lrwxrwxrwx   1 root  root          10 2005-11-23 01:50 psaux -> misc/psaux
crw-rw-rw-   1 root  tty       5,   2 2005-11-23 04:31 ptmx
drwxr-xr-x   2 root  root           0 2005-11-23 01:49 pts
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram0 -> rd/0
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram1 -> rd/1
lrwxrwxrwx   1 root  root           5 2005-11-23 01:50 ram10 -> rd/10
lrwxrwxrwx   1 root  root           5 2005-11-23 01:50 ram11 -> rd/11
lrwxrwxrwx   1 root  root           5 2005-11-23 01:50 ram12 -> rd/12
lrwxrwxrwx   1 root  root           5 2005-11-23 01:50 ram13 -> rd/13
lrwxrwxrwx   1 root  root           5 2005-11-23 01:50 ram14 -> rd/14
lrwxrwxrwx   1 root  root           5 2005-11-23 01:50 ram15 -> rd/15
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram2 -> rd/2
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram3 -> rd/3
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram4 -> rd/4
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram5 -> rd/5
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram6 -> rd/6
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram7 -> rd/7
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram8 -> rd/8
lrwxrwxrwx   1 root  root           4 2005-11-23 01:50 ram9 -> rd/9
crw-rw-rw-   1 root  root      1,   8 2005-11-23 01:49 random
drwxr-xr-x   2 root  root           0 2005-11-23 01:50 rd
drwxrwxrwt   2 root  root          40 2005-11-23 01:50 shm
drwxr-xr-x   2 root  root           0 2005-11-23 03:50 snd
drwxr-xr-x   2 root  root           0 2005-11-23 03:50 sound
lrwxrwxrwx   1 root  root          15 2005-11-23 01:50 stderr -> /proc/self/fd/2
lrwxrwxrwx   1 root  root          15 2005-11-23 01:50 stdin -> /proc/self/fd/0
lrwxrwxrwx   1 root  root          15 2005-11-23 01:50 stdout -> /proc/self/fd/1
drwxr-xr-x   2 root  root           0 2005-11-23 01:49 tts
crw-rw-rw-   1 root  tty       5,   0 2005-11-23 01:49 tty
-rw-r--r--   1 nbcjr tty           18 2005-11-23 03:50 tty1
-rw-r--r--   1 root  root          55 2005-11-23 03:50 tty7
lrwxrwxrwx   1 root  root           5 2005-11-23 01:49 ttyS0 -> tts/0
lrwxrwxrwx   1 root  root           5 2005-11-23 01:49 ttyS1 -> tts/1
lrwxrwxrwx   1 root  root           5 2005-11-23 01:49 ttyS2 -> tts/2
lrwxrwxrwx   1 root  root           5 2005-11-23 01:49 ttyS3 -> tts/3
cr--r--r--   1 root  root      1,   9 2005-11-23 01:49 urandom
drwxr-xr-x   2 root  root           0 2005-11-23 01:49 vc
drwxr-xr-x   2 root  root           0 2005-11-23 03:50 vcc
crw-rw-rw-   1 root  root      1,   5 2005-11-23 01:49 zero
[root@universo nbcjr]#                                                  

Offline

#3 2005-11-23 06:40:09

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

Re: video4linux problem

^[[A[root@universo nbcjr]# dmesg|tail
         Please try dxs_support=5 option
         and report if it works on your machine.
         For more details, read ALSA-Configuration.txt.
ACPI: PCI Interrupt 0000:00:11.5[C] -> GSI 22 (level, low) -> IRQ 18
PCI: Via IRQ fixup for 0000:00:11.5, from 5 to 2
PCI: Setting latency timer of device 0000:00:11.5 to 64
eth0: no IPv6 routers present
Linux video capture interface: v1.00
sn9c102: V4L2 driver for SN9C10x PC Camera Controllers v1:1.24a
usbcore: registered new driver sn9c102
[root@universo nbcjr]#                        

wiki entry
http://wiki.archlinux.org/index.php/Web … up#sn9c102

Offline

#4 2005-11-23 20:13:38

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

Re: video4linux problem

if i use hotplug it will work, but not if i load the module manualy:

manually:

[root@universo movies]# lsmod
Module                  Size  Used by
ntfs                  202768  1
sn9c102                89228  0
videodev                8064  1 sn9c102
snd_via82xx            25408  1
gameport               12552  1 snd_via82xx
snd_ac97_codec         85116  1 snd_via82xx
snd_mpu401_uart         6656  1 snd_via82xx
snd_rawmidi            21408  1 snd_mpu401_uart
snd_seq_device          7436  1 snd_rawmidi
snd_pcm_oss            51104  0
snd_pcm                84868  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer              22660  1 snd_pcm
snd_page_alloc          8840  2 snd_via82xx,snd_pcm
snd_mixer_oss          18432  1 snd_pcm_oss
snd                    49380  11 snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_                                            rawmidi,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8032  1 snd
nvidia               3708264  12
agpgart                30160  1 nvidia
8139too                25216  0
mii                     5248  1 8139too
usbcore               114300  2 sn9c102
nls_cp437               5760  1
vfat                   11904  1
fat                    48156  1 vfat
[root@universo movies]#


hotplug:

[root@universo nbcjr]# /etc/rc.d/hotplug start
:: Starting Hotplug Daemon                                                                                           [DONE]
[root@universo nbcjr]# lsmod
Module                  Size  Used by
ohci_hcd               20100  0
parport_pc             26308  0
parport                33864  1 parport_pc
pcspkr                  3680  0
rtc                    10808  0
via_ircc               24724  0
irda                  128568  1 via_ircc
crc_ccitt               2176  1 irda
ehci_hcd               32904  0
uhci_hcd               32144  0
8139cp                 19456  0
shpchp                 96388  0
pci_hotplug            27204  1 shpchp
via_agp                 8192  1
tsdev                   6336  0
evdev                   7936  0
ntfs                  202768  1
sn9c102                89228  0
videodev                8064  1 sn9c102
snd_via82xx            25408  1
gameport               12552  1 snd_via82xx
snd_ac97_codec         85116  1 snd_via82xx
snd_mpu401_uart         6656  1 snd_via82xx
snd_rawmidi            21408  1 snd_mpu401_uart
snd_seq_device          7436  1 snd_rawmidi
snd_pcm_oss            51104  0
snd_pcm                84868  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer              22660  1 snd_pcm
snd_page_alloc          8840  2 snd_via82xx,snd_pcm
snd_mixer_oss          18432  1 snd_pcm_oss
snd                    49380  11 snd_via82xx,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               8032  1 snd
nvidia               3708264  12
agpgart                30160  2 via_agp,nvidia
8139too                25216  0
mii                     5248  2 8139cp,8139too
usbcore               114300  5 ohci_hcd,ehci_hcd,uhci_hcd,sn9c102
nls_cp437               5760  1
vfat                   11904  1
fat                    48156  1 vfat
[root@universo nbcjr]#                                

Offline

#5 2005-12-04 22:02:29

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

Re: video4linux problem

[nbcjr@universo ~]$ sudo hwdetect --show-modules
AGP    : agpgart via-agp 
USB    : usb-storage usblp usbhid usbcore ehci-hcd uhci-hcd sn9c102 
NET    : 8139cp 8139too via-ircc mii ppp_generic slhc irda 
SOUND  : snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event snd-page-alloc snd-rawmidi snd-timer snd snd-mpu401-uart snd-ac97-codec snd-via82xx soundcore 
VIDEO  : videodev nvidia 
OTHER  : lp ppdev rtc i2c-viapro i2c-core evdev gameport pcspkr parport parport_pc pci_hotplug shpchp crc-ccitt 
[nbcjr@universo ~]$ 

on my rc.conf

#
# Module to load at boot-up (in this order)
#   (prefix a module with a ! to disable it)
#
MODULES=(!usbserial !ide-scsi 8139too nvidia snd-pcm-oss snd-via82xx sn9c102)

#sn9c102=camera;

Offline

#6 2005-12-04 23:16:19

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: video4linux problem

since it works with hotplug, you can be sure that it does work. Just compare the modules hotplug has loaded with the ones you have loaded when not using hotplug (judging from the above; hotplug loads more modules than you do manually). My guess would be to start with the relevant usb-modules (is this a usb device?).

Offline

#7 2005-12-04 23:29:15

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

Re: video4linux problem

nightfrost wrote:

since it works with hotplug, you can be sure that it does work. Just compare the modules hotplug has loaded with the ones you have loaded when not using hotplug (judging from the above; hotplug loads more modules than you do manually). My guess would be to start with the relevant usb-modules (is this a usb device?).

yes, it is usb. and the problem is exactly the one you said, but i don't know which usb modules to load... thanks a lot (and  phrack too)

Offline

#8 2005-12-04 23:42:38

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: video4linux problem

How about these? ;-)

nbcjr wrote:
USB    : usb-storage usblp usbhid usbcore ehci-hcd uhci-hcd sn9c102 

If you don't want all of them loaded, you might just have to go with a trial & error method. My bet would be that uhci-hcd is the most relevant one...

Offline

#9 2005-12-09 04:36:38

nbcjr
Member
From: BRAZIL!
Registered: 2004-12-04
Posts: 79

Re: video4linux problem

thanks a lot, that did the trick!

now i have another problem on /dev/video0

[nbcjr@universo ~]$ sonic-snap-gui 
Clock resolution is 4000250 nanoseconds
Cannot open '/dev/video0': 13, Permission denied

if i chmod it, then it works, but i have to do that at every reboot, which is anoying. how do i fix it?

Offline

#10 2005-12-09 05:55:30

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: video4linux problem

Add your user in the video group.

Offline

Board footer

Powered by FluxBB