FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 06-12-2011, 06:35 PM
Arda Ovacik
 
Default Bug#630253: linux-2.6: motion / v4l / kernel causing USB to disconnect

Package: linux-2.6
Version: 2.6.32-5-486
Severity: important

Hello,
I am unable to get motion work stable under squeeze. This was workin fine in lenny.

In squeeze I had to use libv4l-compat and start motion with

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/motion

However it crashes the USB subsystem after few seconds:

sudo LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/motion

[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[1] Thread 1 started
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "spca561"
[1] cap.card: "Generic Digital camera"
[1] cap.bus_info: "usb-0000:00:11.2-2"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Test palette YU12 (320x240)
[1] Using palette YU12 (320x240) bytesperlines 320 sizeimage 115200 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,63
[1] "Brightness", default 32, current 32
[1] found control 0x00980901, "Contrast", range 0,63
[1] "Contrast", default 32, current 32
[1] found control 0x00980903, "Hue", range 1,127
[1] "Hue", default 64, current 64
[1] found control 0x00980910, "Gamma (software)", range 500,3000
[1] "Gamma (software)", default 1000, current 1000
[1] found control 0x00980912, "Auto Gain", range 0,1
[1] "Auto Gain", default 1, current 1
[1] mmap information:
[1] frames=4
[1] 0 length=16777216
[1] 1 length=16777216
[1] 2 length=16777216
[1] 3 length=16777216
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
libv4l2: error dequeuing buf: Input/output error
[1] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0): Input/output error
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Error capturing first image
[1] Started stream webcam server in port 8081
[1] v4l2_next: VIDIOC_QBUF: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
libv4l2: warning v4l2 mmap buffers still mapped on close()
^C[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[1] Thread exiting
[0] Motion terminating

Followin is logged in messages:

Jun 12 13:37:40 wyse motion: [1] #011"Auto Gain", default 1, current 1
Jun 12 13:37:41 wyse kernel: [ 258.655781] gspca: ISOC data error: [0] len=320,
status=-84
Jun 12 13:37:41 wyse kernel: [ 258.816275] usb 1-2: USB disconnect, address 13
Jun 12 13:37:41 wyse kernel: [ 258.822589] gspca: disconnect complete
Jun 12 13:37:41 wyse kernel: [ 259.072151] usb 1-2: new full speed USB device u
sing uhci_hcd and address 14
Jun 12 13:37:41 wyse motion: [1] Closing video device /dev/video0
Jun 12 13:37:41 wyse kernel: [ 259.277314] usb 1-2: New USB device found, idVen
dor=04fc, idProduct=0561
Jun 12 13:37:41 wyse kernel: [ 259.277365] usb 1-2: New USB device strings: Mfr
=1, Product=2, SerialNumber=0
Jun 12 13:37:41 wyse kernel: [ 259.277409] usb 1-2: Product: Generic Digital ca
mera
Jun 12 13:37:41 wyse kernel: [ 259.277446] usb 1-2: Manufacturer: Sunplus Techn
ology Co., Ltd.

I don't have any other USB device connected to the machine.

-- System Information:
Debian Release: 6.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110612183514.1317.51220.reportbug@wyse.ardadom.n et">http://lists.debian.org/20110612183514.1317.51220.reportbug@wyse.ardadom.n et
 
Old 06-12-2011, 09:23 PM
Ben Hutchings
 
Default Bug#630253: linux-2.6: motion / v4l / kernel causing USB to disconnect

On Sun, 2011-06-12 at 14:35 -0400, Arda Ovacik wrote:
> Package: linux-2.6
> Version: 2.6.32-5-486
> Severity: important
>
> Hello,
> I am unable to get motion work stable under squeeze. This was workin fine in lenny.
>
> In squeeze I had to use libv4l-compat and start motion with
>
> LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /usr/bin/motion

That doesn't look right. gspca is a V4L2 driver and motion is a V4L2
application.

> However it crashes the USB subsystem after few seconds:
[...]

It looks more like the device crashed.

Ben.

--
Ben Hutchings
Teamwork is essential - it allows you to blame someone else.
 

Thread Tools




All times are GMT. The time now is 02:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org