Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pwc webcam freeze: usb_control/bulk_msg: timeout

1 view
Skip to first unread message

Niels L. Ellegaard

unread,
Sep 3, 2003, 3:20:10 PM9/3/03
to

I have been trying to install a logitech 4000 webcam, but when I use
camstream the picture freezes after a short while and the following
line appears in /var/log/syslog

Sep 3 20:30:22 nissefisken kernel: usb_control/bulk_msg: timeout

I would be very grateful for any advice on how to avoid this problem.

My computer is a x86 with a k7s5a board and Sarge and my own 2.4.21
kernel (See below).

Browsing around on Google it looks like my usb ports are getting
overburdened, so tried the closed source pwcx compressor module. This
modules helped a little, I was able to save 10 snapshots before the
timeout appeared, but in the end I still had a freeze.

The following data is from a test with no pwcx module

nissefisken# lsmod
Module Size Used by Tainted: PF
pwc 44748 1 (autoclean)
usb-ohci 20040 0 (unused)
nvidia 1628576 11 (autoclean)
sis900 14412 0 (unused)
i810_audio 25756 2
ac97_codec 11892 0 [i810_audio]
soundcore 4260 2 [i810_audio]
usbcore 73036 0 [pwc usb-ohci]
i2c-proc 7344 0 (unused)
i2c-core 13892 0 [i2c-proc]
parport_pc 13732 1 (autoclean)
lp 6592 1
parport 16096 1 [parport_pc lp]
8139too 15912 1
rtc 7464 0 (autoclean)


>From dmesg:

pwc Philips PCA645/646 + PCVC675/680/690 + PCVC730/740/750 webcam
module version 8.10 loaded.
pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung
MPC-C10 and MPC-C30,
pwc the Creative WebCam 5, SOTEC Afina Eye and Visionite VCS-UC300 and
VCS-UM100.
usb.c: registered new driver Philips webcam
pwc Logitech QuickCam 4000 Pro USB webcam detected.
pwc Registered as /dev/video0.
usb.c: Philips webcam driver claimed interface cf171920
usb_control/bulk_msg: timeout


>From /var/log/syslog

Sep 3 20:30:16 nissefisken kernel: pwc Philips PCA645/646 +
PCVC675/680/690 + PCVC730/740/750 webcam module version 8.10 loaded.
Sep 3 20:30:16 nissefisken kernel: pwc Also supports the Askey VC010,
various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
Sep 3 20:30:16 nissefisken kernel: pwc the Creative WebCam 5, SOTEC
Afina Eye and Visionite VCS-UC300 and VCS-UM100.
Sep 3 20:30:16 nissefisken kernel: usb.c: registered new driver
Philips webcam
Sep 3 20:30:16 nissefisken kernel: pwc Logitech QuickCam 4000 Pro USB
webcam detected.
Sep 3 20:30:16 nissefisken kernel: pwc Registered as /dev/video0.
Sep 3 20:30:16 nissefisken kernel: usb.c: Philips webcam driver
claimed interface cf171920
Sep 3 20:30:16 nissefisken insmod: Note: /etc/modules.conf is more
recent than /lib/modules/2.4.21/modules.dep
Sep 3 20:30:22 nissefisken kernel: usb_control/bulk_msg: timeout


Output from camstream:

CCamWindow::CCamWindow()
CWebCamViewer::CWebCamViewer(0x80ab770, 0x0)
CVideoDevice::Init()
Using mmap(), VMBuf.size = 921600
Trying to find video options for Logitech QuickCam Pro
4000:/dev/video0
searching Logitech QuickCam Pro 4000
CSnapshotSettingsDlg::CSnapshotSettingsDlg(...)
QFont::setRawMode(): Invalid XLFD: "system"
CVideoSettingsDlg::SizeChanged(176x144)
CVideoSettingsDlg::FramerateChanged(10)
Philips webcam detected, enabling extensions
CCamPanel::SetSize(176x144)
CCamPanel::SetImageSize(176x144)
CCamPanel::SetVisibleSize(176x144)
CCamPanel::SetSize(176x144)
CCamPanel::SetImageSize(176x144)
CCamPanel::SetVisibleSize(176x144)
RecalcTotalViewSize: resize viewport(176x144)
EnableRGB: +
CVideoDevice::SetPalette picked palette 15 [yuv420p]
CVideoDevice::CreateImagesRGB()
allocating space for RGB
CVideoDevice::StartCapture() go!

>From /etc/modules.conf

alias char-major-81 videodev
alias char-major-81-0 pwc

# The following lines have been commented out
# options pwc size=vga leds=250,250 fps=25 mbufs=3 compression=0
# post-install pwc insmod --force -k /lib/modules/2.4.21/kernel/drivers/usb/pwcx-2.4.20.o > /dev/null 2>&1 || :


Random lines from my /usr/src/linux/.config

#
# USB support
#
CONFIG_USB=m
CONFIG_USB_DEBUG=y

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set

#
# USB Host Controller Drivers
#
CONFIG_USB_UHCI=m
CONFIG_USB_UHCI_ALT=m
CONFIG_USB_OHCI=m

#
# USB Multimedia devices
#
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_KONICAWC is not set
# CONFIG_USB_OV511 is not set
CONFIG_USB_PWC=m
CONFIG_USB_SE401=m
# CONFIG_USB_STV680 is not set

--
Niels L Ellegaard http://dirac.ruc.dk/~gnalle/


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Nicolas

unread,
Sep 3, 2003, 3:30:13 PM9/3/03
to
> pwc 44748 1 (autoclean)
> usb-ohci 20040 0 (unused)

The problem is right there, pwc and ohci don't realy like each other. I have
the same camera as you. I used a OHCI computer with motion and it always
stop after 5-10 minutes. It's a known bug :o) look like nobody wants to fix
it... On the other hand, it works perfectly with UHCI. I haven't try the 2.6
kernel on the monitoring box, maybe OHCI is fixed...

Nic Cola

--
You are an insult to my intelligence! I demand that you log off immediately.

Niels L. Ellegaard

unread,
Sep 6, 2003, 1:10:12 PM9/6/03
to
Nicolas <rip...@8d.com> writes:

> > pwc 44748 1 (autoclean)
> > usb-ohci 20040 0 (unused)
>
> The problem is right there, pwc and ohci don't realy like each
> other. I have the same camera as you. I used a OHCI computer with
> motion and it always stop after 5-10 minutes. It's a known bug :o)
> look like nobody wants to fix it... On the other hand, it works
> perfectly with UHCI. I haven't try the 2.6 kernel on the monitoring
> box, maybe OHCI is fixed...

I have aquired an USB 2.0 card with an ehci port, and I can load the driver,
but it doesn't find the camera. Has anyone succesfully used a logitech
quickcam 4000 with the ehci-hcd driver?

Perhaps this is because according to amazon the logitech quickcam 4000
camera only does usb1.1. I should have thought of this before
buying the card :)

http://www.amazon.com/exec/obidos/tg/detail/-/B00006HMPK/102-2274641-3931347?v=glance

I have been to 10 shops without finding an USB 1.1 uhci card. They
seem to be history :(


Thanks for all the advices

Niels


All the following text is probably irellevant. It just proves that I have
the ehci-hcd driver

nissefisken# lsmod
Module Size Used by Tainted: P

pwc 44748 0 (unused)
ehci-hcd 25644 0 (unused)


nvidia 1628576 11 (autoclean)
sis900 14412 0 (unused)
i810_audio 25756 2
ac97_codec 11892 0 [i810_audio]
soundcore 4260 2 [i810_audio]

usbcore 73036 0 [pwc ehci-hcd]


i2c-proc 7344 0 (unused)
i2c-core 13892 0 [i2c-proc]
parport_pc 13732 1 (autoclean)
lp 6592 1
parport 16096 1 [parport_pc lp]
8139too 15912 1
rtc 7464 0 (autoclean)

from lspci -vv:

00:0b.2 USB Controller: NEC Corporation USB 2.0 (rev 02) (prog-if 20
[EHCI])
Subsystem: Unknown device 182d:6189
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium
>TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 8500ns max), cache line size 08
Interrupt: pin C routed to IRQ 5
Region 0: Memory at cfffde00 (32-bit, non-prefetchable)
[size=256]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-


>From /var/log/syslog

Sep 6 17:41:59 nissefisken kernel: ehci-hcd.c: 2003-Jan-22 USB 2.0
'Enhanced' Host Controller (EHCI) Driver
Sep 6 17:41:59 nissefisken kernel: ehci-hcd.c: block sizes: qh 128
qtd 96 itd 128 sitd 64
Sep 6 17:41:59 nissefisken kernel: PCI: Found IRQ 5 for device
00:0b.2
Sep 6 17:41:59 nissefisken kernel: PCI: Sharing IRQ 5 with 00:02.2
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: NEC Corporation
USB 2.0
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: irq 5, pci mem
d1b72e00
Sep 6 17:41:59 nissefisken kernel: usb.c: new USB bus registered,
assigned bus number 1
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: ehci_start
hcs_params 0x2395 dbg=0 cc=2 pcc=3 ports=5
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: ehci_start
portroute 1 0 1 0 0
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: ehci_start
hcc_params 0002 thresh 0 uframes 256/512/1024
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: reset command
080002 (park)=0 ithresh=8 period=1024 Reset HALT
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: init command
010009 (park)=0 ithresh=1 period=256 RUN
Sep 6 17:41:59 nissefisken kernel: ehci-hcd 00:0b.2: USB 2.0 enabled,
EHCI 0.95, driver 2003-Jan-22
Sep 6 17:41:59 nissefisken kernel: hcd.c: 00:0b.2 root hub device
address 1
Sep 6 17:41:59 nissefisken kernel: usb.c: kmalloc IF c72b7860, numif
1
Sep 6 17:41:59 nissefisken kernel: usb.c: new device strings: Mfr=3,
Product=2, SerialNumber=1
Sep 6 17:41:59 nissefisken kernel: usb.c: USB device number 1 default
language ID 0x0
Sep 6 17:41:59 nissefisken kernel: Manufacturer: Linux 2.4.21
ehci-hcd
Sep 6 17:41:59 nissefisken kernel: Product: NEC Corporation USB 2.0
Sep 6 17:41:59 nissefisken kernel: SerialNumber: 00:0b.2
Sep 6 17:41:59 nissefisken kernel: hub.c: USB hub found
Sep 6 17:41:59 nissefisken kernel: hub.c: 5 ports detected
Sep 6 17:41:59 nissefisken kernel: hub.c: standalone hub
Sep 6 17:41:59 nissefisken kernel: hub.c: individual port power
switching
Sep 6 17:41:59 nissefisken kernel: hub.c: individual port
over-current protection
Sep 6 17:41:59 nissefisken kernel: hub.c: Single TT
Sep 6 17:41:59 nissefisken kernel: hub.c: TT requires at most 8 FS
bit times
Sep 6 17:41:59 nissefisken kernel: hub.c: Port indicators are not
supported
Sep 6 17:41:59 nissefisken kernel: hub.c: power on to power good
time: 0ms
Sep 6 17:41:59 nissefisken kernel: hub.c: hub controller current
requirement: 0mA
Sep 6 17:41:59 nissefisken kernel: hub.c: port removable status:
RRRRR
Sep 6 17:41:59 nissefisken kernel: hub.c: local power source is good
Sep 6 17:41:59 nissefisken kernel: hub.c: no over-current condition
exists
Sep 6 17:41:59 nissefisken kernel: hub.c: enabling power on all ports
Sep 6 17:41:59 nissefisken kernel: usb.c: hub driver claimed
interface c72b7860
Sep 6 17:41:59 nissefisken kernel: usb.c: kusbd: /sbin/hotplug add 1
Sep 6 17:41:59 nissefisken kernel: usb.c: kusbd policy returned
0xfffffffe


--
Niels L Ellegaard http://dirac.ruc.dk/~gnalle/

0 new messages