Cannot access /dev/video0 device.

Cannot access /dev/video0 device.

Post by Madhusudan Sing » Wed, 12 Dec 2001 16:07:49



Having beginners problems with using a * - Logitech Quickcam Express.
It plugs into a USB port.
Kernel version : 2.4.13 with compiled in (modular) support for video4linux
and ov511 chipset (not sure if that is the one).

Created rpms for xawtv from source (version 3.65) and installed them.
Installed qce-ga-0.40b and ran ./quickcam.sh

Now I get strange errors when I try to run xawtv :


This is xawtv-3.65, running on Linux/i686 (2.4.13)
can't open /dev/video0: No such device
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such device
v4l: open /dev/video0: No such device
no video grabber device available

(mind you, I am running the above as root, so there cannot be a
permissions problem)

The device entries are :



crw-------    1 chhabra  root      81,   0 Dec  8 03:22 video0
crw-------    1 chhabra  root      81,   1 Mar 23  2001 video1
crw-------    1 chhabra  root      81,   2 Mar 23  2001 video2
crw-------    1 chhabra  root      81,   3 Mar 23  2001 video3

video:
total 0
crw-------    1 chhabra  root      10, 204 Mar 23  2001 em8300
crw-------    1 chhabra  root      10, 206 Mar 23  2001 em8300_ma
crw-------    1 chhabra  root      10, 205 Mar 23  2001 em8300_mv
crw-------    1 chhabra  root      10, 207 Mar 23  2001 em8300_sp

The above listing was obtained by su'ing while logged in as chhabra.

(I draw your attention to the fact that my /dev/video is a directory,
contrary to all resources I have found on the net so far).

After loading the modules with quickcam.sh, the list of modules is :

Module                  Size  Used by
mod_quickcam           30704   0  (unused)
usb-uhci               21264   0  (unused)
videodev                4864   0  [mod_quickcam]
ipt_MASQUERADE          1776   1  (autoclean)
ipt_LOG                 3280   1  (autoclean)
ipt_state                576   1  (autoclean)
iptable_filter          1728   0  (autoclean) (unused)
ip_nat_ftp              3632   0  (unused)
iptable_nat            19024   1  [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack_ftp        3760   0  [ip_nat_ftp]
ip_conntrack           20144   3  [ipt_MASQUERADE ipt_state ip_nat_ftp
iptable_nat ip_conntrack_ftp]
ip_tables              13280   7  [ipt_MASQUERADE ipt_LOG ipt_state
iptable_filter iptable_nat]

I found an error message in my /var/log/messages :

Dec  8 15:16:06 waheguru kernel: hub.c: USB new device connect on bus1/2,
assigned device number 3
Dec  8 15:16:06 waheguru kernel: usb.c: USB device 3 (vend/prod
0x46d/0x870) is not claimed by any active driver.
Dec  8 15:16:39 waheguru modprobe: modprobe: Can't locate module
char-major-81-0
Dec  8 15:16:40 waheguru last message repeated 2 times
Dec  8 15:18:11 waheguru kernel: usb.c: registered new driver quickcam

To try to fix it, I edited /etc/modules.conf to add :

alias char-major-81-0 mod_quickcam

Rebooted. No luck.

My /proc/bus/usb/devices :
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=ef80
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=059b ProdID=0033 Rev= 1.00
S:  Manufacturer=Iomega
S:  Product=USB Zip 100
S:  SerialNumber=0033320001F4A000
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=498mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl= 32ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=0870 Rev= 1.00
S:  Product=Camera
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS=   0 Ivl=  1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms
I:  If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=  1ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms

No driver is loaded.


bash: /dev/video0: No such device

confirms that I cannot access the device even as root.

Could someone figure out what is going on. And suggest a solution.

Thanks,

Madhusudan Singh.

 
 
 

Cannot access /dev/video0 device.

Post by Sheldon Easterbroo » Wed, 12 Dec 2001 16:44:46



>Having beginners problems with using a * - Logitech Quickcam Express.
>It plugs into a USB port.
>Kernel version : 2.4.13 with compiled in (modular) support for video4linux
>and ov511 chipset (not sure if that is the one).

No, the Logitech cam's are not supported.  Only the older Quickcam's are
supported (parallel port, b&w models).  Checkout http://www.veryComputer.com/
for more info.

Cheers,

Sheldon.

 
 
 

Cannot access /dev/video0 device.

Post by Marc Dejardi » Wed, 12 Dec 2001 17:21:24


Perhaps some ideas :
o Your quickcam is not recognized by qce-ga-0.40b... Certainly if your
quickcam is recent. Try downloading the latest CVS version and have a
look at <http://www.veryComputer.com/>
o You compiled xawtv with gcc-3 which does not work for me ! ok with
gcc-2.95.3

regards,
Marc.


> Having beginners problems with using a * - Logitech Quickcam Express.
> It plugs into a USB port.
> Kernel version : 2.4.13 with compiled in (modular) support for video4linux
> and ov511 chipset (not sure if that is the one).

> Created rpms for xawtv from source (version 3.65) and installed them.
> Installed qce-ga-0.40b and ran ./quickcam.sh

> Now I get strange errors when I try to run xawtv :


> This is xawtv-3.65, running on Linux/i686 (2.4.13)
> can't open /dev/video0: No such device
> v4l-conf had some trouble, trying to continue anyway
> v4l2: open /dev/video0: No such device
> v4l: open /dev/video0: No such device
> no video grabber device available

> (mind you, I am running the above as root, so there cannot be a
> permissions problem)

> The device entries are :



> crw-------    1 chhabra  root      81,   0 Dec  8 03:22 video0
> crw-------    1 chhabra  root      81,   1 Mar 23  2001 video1
> crw-------    1 chhabra  root      81,   2 Mar 23  2001 video2
> crw-------    1 chhabra  root      81,   3 Mar 23  2001 video3

> video:
> total 0
> crw-------    1 chhabra  root      10, 204 Mar 23  2001 em8300
> crw-------    1 chhabra  root      10, 206 Mar 23  2001 em8300_ma
> crw-------    1 chhabra  root      10, 205 Mar 23  2001 em8300_mv
> crw-------    1 chhabra  root      10, 207 Mar 23  2001 em8300_sp

> The above listing was obtained by su'ing while logged in as chhabra.

> (I draw your attention to the fact that my /dev/video is a directory,
> contrary to all resources I have found on the net so far).

> After loading the modules with quickcam.sh, the list of modules is :

> Module                  Size  Used by
> mod_quickcam           30704   0  (unused)
> usb-uhci               21264   0  (unused)
> videodev                4864   0  [mod_quickcam]
> ipt_MASQUERADE          1776   1  (autoclean)
> ipt_LOG                 3280   1  (autoclean)
> ipt_state                576   1  (autoclean)
> iptable_filter          1728   0  (autoclean) (unused)
> ip_nat_ftp              3632   0  (unused)
> iptable_nat            19024   1  [ipt_MASQUERADE ip_nat_ftp]
> ip_conntrack_ftp        3760   0  [ip_nat_ftp]
> ip_conntrack           20144   3  [ipt_MASQUERADE ipt_state ip_nat_ftp
> iptable_nat ip_conntrack_ftp]
> ip_tables              13280   7  [ipt_MASQUERADE ipt_LOG ipt_state
> iptable_filter iptable_nat]

> I found an error message in my /var/log/messages :

> Dec  8 15:16:06 waheguru kernel: hub.c: USB new device connect on bus1/2,
> assigned device number 3
> Dec  8 15:16:06 waheguru kernel: usb.c: USB device 3 (vend/prod
> 0x46d/0x870) is not claimed by any active driver.
> Dec  8 15:16:39 waheguru modprobe: modprobe: Can't locate module
> char-major-81-0
> Dec  8 15:16:40 waheguru last message repeated 2 times
> Dec  8 15:18:11 waheguru kernel: usb.c: registered new driver quickcam

> To try to fix it, I edited /etc/modules.conf to add :

> alias char-major-81-0 mod_quickcam

> Rebooted. No luck.

> My /proc/bus/usb/devices :
> T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 0.00
> S:  Product=USB UHCI Root Hub
> S:  SerialNumber=ef80
> C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
> T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=059b ProdID=0033 Rev= 1.00
> S:  Manufacturer=Iomega
> S:  Product=USB Zip 100
> S:  SerialNumber=0033320001F4A000
> C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=498mA
> I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
> E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl= 32ms
> T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
> D:  Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=  1
> P:  Vendor=046d ProdID=0870 Rev= 1.00
> S:  Product=Camera
> C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> E:  Ad=81(I) Atr=01(Isoc) MxPS=   0 Ivl=  1ms
> E:  Ad=82(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms
> I:  If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> E:  Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=  1ms
> E:  Ad=82(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms

> No driver is loaded.


> bash: /dev/video0: No such device

> confirms that I cannot access the device even as root.

> Could someone figure out what is going on. And suggest a solution.

> Thanks,

> Madhusudan Singh.

 
 
 

Cannot access /dev/video0 device.

Post by Madhusudan Sing » Thu, 13 Dec 2001 00:40:31


I will try that.
However that still does not explain the failure of cat < /dev/video0 >
file.dat.

/proc/bus/usb/devices claims it has found a camera (see the post).


> Perhaps some ideas :
> o Your quickcam is not recognized by qce-ga-0.40b... Certainly if your
> quickcam is recent. Try downloading the latest CVS version and have a
> look at <http://www.veryComputer.com/>
> o You compiled xawtv with gcc-3 which does not work for me ! ok with
> gcc-2.95.3

> regards,
> Marc.


> > Having beginners problems with using a * - Logitech Quickcam Express.
> > It plugs into a USB port.
> > Kernel version : 2.4.13 with compiled in (modular) support for video4linux
> > and ov511 chipset (not sure if that is the one).

> > Created rpms for xawtv from source (version 3.65) and installed them.
> > Installed qce-ga-0.40b and ran ./quickcam.sh

> > Now I get strange errors when I try to run xawtv :


> > This is xawtv-3.65, running on Linux/i686 (2.4.13)
> > can't open /dev/video0: No such device
> > v4l-conf had some trouble, trying to continue anyway
> > v4l2: open /dev/video0: No such device
> > v4l: open /dev/video0: No such device
> > no video grabber device available

> > (mind you, I am running the above as root, so there cannot be a
> > permissions problem)

> > The device entries are :



> > crw-------    1 chhabra  root      81,   0 Dec  8 03:22 video0
> > crw-------    1 chhabra  root      81,   1 Mar 23  2001 video1
> > crw-------    1 chhabra  root      81,   2 Mar 23  2001 video2
> > crw-------    1 chhabra  root      81,   3 Mar 23  2001 video3

> > video:
> > total 0
> > crw-------    1 chhabra  root      10, 204 Mar 23  2001 em8300
> > crw-------    1 chhabra  root      10, 206 Mar 23  2001 em8300_ma
> > crw-------    1 chhabra  root      10, 205 Mar 23  2001 em8300_mv
> > crw-------    1 chhabra  root      10, 207 Mar 23  2001 em8300_sp

> > The above listing was obtained by su'ing while logged in as chhabra.

> > (I draw your attention to the fact that my /dev/video is a directory,
> > contrary to all resources I have found on the net so far).

> > After loading the modules with quickcam.sh, the list of modules is :

> > Module                  Size  Used by
> > mod_quickcam           30704   0  (unused)
> > usb-uhci               21264   0  (unused)
> > videodev                4864   0  [mod_quickcam]
> > ipt_MASQUERADE          1776   1  (autoclean)
> > ipt_LOG                 3280   1  (autoclean)
> > ipt_state                576   1  (autoclean)
> > iptable_filter          1728   0  (autoclean) (unused)
> > ip_nat_ftp              3632   0  (unused)
> > iptable_nat            19024   1  [ipt_MASQUERADE ip_nat_ftp]
> > ip_conntrack_ftp        3760   0  [ip_nat_ftp]
> > ip_conntrack           20144   3  [ipt_MASQUERADE ipt_state ip_nat_ftp
> > iptable_nat ip_conntrack_ftp]
> > ip_tables              13280   7  [ipt_MASQUERADE ipt_LOG ipt_state
> > iptable_filter iptable_nat]

> > I found an error message in my /var/log/messages :

> > Dec  8 15:16:06 waheguru kernel: hub.c: USB new device connect on bus1/2,
> > assigned device number 3
> > Dec  8 15:16:06 waheguru kernel: usb.c: USB device 3 (vend/prod
> > 0x46d/0x870) is not claimed by any active driver.
> > Dec  8 15:16:39 waheguru modprobe: modprobe: Can't locate module
> > char-major-81-0
> > Dec  8 15:16:40 waheguru last message repeated 2 times
> > Dec  8 15:18:11 waheguru kernel: usb.c: registered new driver quickcam

> > To try to fix it, I edited /etc/modules.conf to add :

> > alias char-major-81-0 mod_quickcam

> > Rebooted. No luck.

> > My /proc/bus/usb/devices :
> > T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
> > B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
> > D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> > P:  Vendor=0000 ProdID=0000 Rev= 0.00
> > S:  Product=USB UHCI Root Hub
> > S:  SerialNumber=ef80
> > C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
> > I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> > E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
> > T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
> > D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> > P:  Vendor=059b ProdID=0033 Rev= 1.00
> > S:  Manufacturer=Iomega
> > S:  Product=USB Zip 100
> > S:  SerialNumber=0033320001F4A000
> > C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=498mA
> > I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
> > E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> > E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
> > E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl= 32ms
> > T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
> > D:  Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=  1
> > P:  Vendor=046d ProdID=0870 Rev= 1.00
> > S:  Product=Camera
> > C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA
> > I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> > E:  Ad=81(I) Atr=01(Isoc) MxPS=   0 Ivl=  1ms
> > E:  Ad=82(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms
> > I:  If#= 0 Alt= 1 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
> > E:  Ad=81(I) Atr=01(Isoc) MxPS=1023 Ivl=  1ms
> > E:  Ad=82(I) Atr=03(Int.) MxPS=   1 Ivl= 16ms

> > No driver is loaded.


> > bash: /dev/video0: No such device

> > confirms that I cannot access the device even as root.

> > Could someone figure out what is going on. And suggest a solution.

> > Thanks,

> > Madhusudan Singh.

 
 
 

1. xawtv doesn't work anymore: can't open /dev/video0: No such device

Hello everybody,

I have just discovered another problem due to the fact that I have
recompiled the kernel downgrading it to 2.4.16 :-)

When I try to launch xawtv (which used to work ok), now I get the following
message:

This is xawtv-3.73, running on Linux/i686 (2.4.16)
can't open /dev/video0: No such device
v4l2: open /dev/video0: No such device
v4l: open /dev/video0: No such device
no video grabber device available

What does it mean?

Thank you very much for your patience. :-)

Maurizio

2. Framegrabber Card with Linux Drivers

3. 2 Video4Linux Devices randomly taking /dev/video0

4. anti-aliasing don't works ?

5. Cannot open master raw device '/dev/rawctl' (No such device)

6. Restricting file locks?

7. Linux Desktop looks better on Win2k :-/

8. Mtools "cannot access /dev/fd0 :access denied"

9. when /dev/video0 becomes busy

10. /dev/video0 problem and xawtv

11. Problems with /dev/video0

12. pwc Registered as /dev/video0