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-08-2010, 11:32 AM
Davi Diaz
 
Default Bug#585016: Logitech QuickCam 4000 Pro USB webcam does not work on Debian Squeeze. It works on Debian Lenny.

Package: linux-2.6
Version: linux-image-2.6.32-3-amd64
Severity: critical

--- Please enter the report below this line. ---
Logitech QuickCam 4000 Pro USB webcam is detected but does not work on Debian
squeeze.


Test:
* The hardware works absolutely rightly on a Debian Lenny machine.
* On Debian squeeze, I plug it in and tt is detected (/var/log/syslog or
dmesg), /dev/video0 created. lsusb shows the new device.

lsusb:
Bus 003 Device 005: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000

However, even if it is detecte rightly,
* 'ekiga' hang when cam is enabled.
* 'cheese' shows black screen, both at photo and video mode.
* 'xawtv' hangs when USB set as source of video.


Linux kernel changed a bit with how it deals with webcams, change from v4l to
v4l2, but debian kernel should come with all the needed stuff.

Module "pwc" is loaded.

Test:
* lsmod
pwc 72006 0
videodev 29977 1 pwc
usbcore 121703 9 snd_usb_audio,snd_usb_lib,pwc,
dvb_usb_dib0700,dvb_usb,usbhid,uhci_hcd,ehci_hcd


Test:
* modprobe -r pwc && modprobe pwc

/var/log/syslog shows the below lines. Nothing odd:

[43819.512527] usbcore: deregistering interface driver Philips webcam
[43819.578378] pwc: Philips webcam module removed.
[43819.627901] Linux video capture interface: v2.00
[43819.629396] pwc: Philips webcam module version 10.0.13 loaded.
[43819.629398] pwc: Supports Philips PCA645/646, PCVC675/680/690,
PCVC720[40]/730/740/750 & PCVC830/840.
[43819.629400] pwc: Also supports the Askey VC010, various Logitech
Quickcams, Samsung MPC-C10 and MPC-C30,
[43819.629401] pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye
and Visionite VCS-UC300 and VCS-UM100.
[43819.629419] pwc: Logitech QuickCam 4000 Pro USB webcam detected.
[43819.629459] pwc: Registered as /dev/video0.
[43819.639359] input: PWC snapshot button as
/devices/pci0000:00/0000:00:1a.0/usb3/3-2/input/input19
[43819.639425] usbcore: registered new interface driver Philips webcam

The /devices/pci0000:00/... device is a button on the webcam to take
snapshots.


I think that is a Linux kernel problem. Is it specific to Debian or to the
mainline Linux kernel 2.6.32?

Feel free to ask me for more testing, Linux kernel patching and so on. Also
let me know if I am direct this bug report to the main Linux kernel
development mailing list.

--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.32-3-amd64

Debian Release: squeeze/sid
500 testing security.debian.org
500 testing ftp.uk.debian.org

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.






--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201006081232.02228.davi@leals.com">http://lists.debian.org/201006081232.02228.davi@leals.com
 
Old 01-14-2011, 02:49 PM
Jean-Christian de Rivaz
 
Default Bug#585016: Logitech QuickCam 4000 Pro USB webcam does not work on Debian Squeeze. It works on Debian Lenny.

I have experienced this bug today on a AMD64 Squeeze machine and the
same webcam. The Webcam work perfectly on the Lenny machines, but do not
outputs any image on Squeeze, unless you remove the pwc.ko module and
replug the camera.


There is a trace of what happens while the pwc.ko in inserted fir the
first time into the kernel:


strace -Ff vgrabbj -d /dev/video0 -i vga -f webcam.jpeg
execve("/usr/bin/vgrabbj", ["vgrabbj", "-d", "/dev/video0", "-i", "vga",
"-f", "webcam.jpeg"], [/* 34 vars */]) = 0

[...]
open("/dev/video0", O_RDWR) = 3
ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7ffff41afa00) = 0
ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7ffff41af7f0) = 0
ioctl(3, VIDIOC_G_FMT or VT_SENDSIG, 0x7ffff41af720) = 0
ioctl(3, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7ffff41af600) = 0
ioctl(3, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7ffff41af600) = 0
ioctl(3, VIDIOC_ENUM_FRAMESIZES, 0x7ffff41af640) = 0
ioctl(3, VIDIOC_ENUM_FRAMESIZES, 0x7ffff41af640) = 0
ioctl(3, VIDIOC_ENUM_FRAMESIZES, 0x7ffff41af640) = 0
ioctl(3, VIDIOC_ENUM_FRAMESIZES, 0x7ffff41af640) = -1 EINVAL (Invalid
argument)
ioctl(3, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7ffff41af600) = -1 EINVAL
(Invalid argument)

ioctl(3, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7ffff41af670) = 0
ioctl(3, VIDIOC_G_INPUT, 0x7ffff41aef40) = 0
ioctl(3, VIDIOC_ENUMINPUT, 0x7ffff41aef40) = 0
fstat(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(81, 0), ...}) = 0
open("/sys/class/video4linux/video0/dev", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "81:0
", 4096) = 5
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/video4linux/video0/device/modalias", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "usb:v046Dp08B2d0000dc00dsc00dp00"..., 4096) = 46
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/dmi/id/sys_vendor", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "System manufacturer
", 4096) = 20
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/dmi/id/product_name", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "System Product Name
", 4096) = 20
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/dmi/id/product_version", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "System Version
", 4096) = 15
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/dmi/id/board_vendor", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "ASUSTeK Computer INC.
", 4096) = 22
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/dmi/id/board_name", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "M3A78-T
", 4096) = 8
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
open("/sys/class/dmi/id/board_version", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f9327464000

read(4, "Rev 1.xx
", 4096) = 9
close(4) = 0
munmap(0x7f9327464000, 4096) = 0
ioctl(3, VIDIOC_QUERYCTRL, 0x7ffff41aefd0) = -1 EINVAL (Invalid argument)
ioctl(3, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7ffff41af8a0) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af930) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af930) = 0
ioctl(3, VIDIOC_ENUM_FMT or VT_SETMODE, 0x7ffff41af8a0) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_TRY_FMT, 0x7ffff41af190) = 0
ioctl(3, VIDIOC_ENUMINPUT, 0x7ffff41af8e0) = 0
ioctl(3, VIDIOC_ENUMSTD, 0x7ffff41af8e0) = 0
ioctl(3, FS_IOC32_GETVERSION or FS_IOC_GETVERSION or VIDIOCGCAP,
0x23d00f0) = 0

ioctl(3, VIDIOC_QUERYCTRL, 0x7ffff41af990) = -1 EINVAL (Invalid argument)
ioctl(3, VIDIOC_QUERYCTRL, 0x7ffff41af990) = 0
ioctl(3, VIDIOC_G_CTRL, 0x7ffff41af980) = 0
ioctl(3, VIDIOC_QUERYCTRL, 0x7ffff41af990) = 0
ioctl(3, VIDIOC_G_CTRL, 0x7ffff41af980) = 0
ioctl(3, VIDIOC_QUERYCTRL, 0x7ffff41af990) = 0
ioctl(3, VIDIOC_G_CTRL, 0x7ffff41af980) = 0
ioctl(3, VIDIOC_QUERYCTRL, 0x7ffff41af990) = 0
ioctl(3, VIDIOC_G_CTRL, 0x7ffff41af980) = 0
mmap(NULL, 67108864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x7f9321960000
mmap(NULL, 462848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f93273ce000
mmap(NULL, 925696, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7f93272ec000
write(2, "Reading image from /dev/video0
", 31Reading image from
/dev/video0

) = 31
read(3,

Any application I tried (xawtv, gstreamer, cheese, vgrabbj) wait
indefinitely a image from the webcam, but it never cam.


The bug was closed because the author suspected a version problem
between the kernel and the modules after observing that the webcam was
working after a reboot. But I carefully inspected the version of my
modules and there absolutely cam from the right kernel. So I tried this:


1) unplug the webcam.
2) rmmod pwc (as root).
3) replug the webcam.

And suddenly the vgrabbj command was working and write a clear picture.
But the other video applications start showing a stream of green
duplicated images were I can only recognize part of the scene.


So suspect a initialization problem into the pwc.ko module.

Jean-Christian de Rivaz




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4D307086.8090006@eclis.ch">http://lists.debian.org/4D307086.8090006@eclis.ch
 
Old 01-14-2011, 03:44 PM
Ben Hutchings
 
Default Bug#585016: Logitech QuickCam 4000 Pro USB webcam does not work on Debian Squeeze. It works on Debian Lenny.

On Fri, Jan 14, 2011 at 04:49:26PM +0100, Jean-Christian de Rivaz wrote:
> I have experienced this bug today on a AMD64 Squeeze machine and the
> same webcam. The Webcam work perfectly on the Lenny machines, but do not
> outputs any image on Squeeze, unless you remove the pwc.ko module and
> replug the camera.
>
> There is a trace of what happens while the pwc.ko in inserted fir the
> first time into the kernel:
[...]

Which version of vgrabbj did you use?

Ben.

--
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
- Albert Camus



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110114164424.GZ3702@decadent.org.uk">http://lists.debian.org/20110114164424.GZ3702@decadent.org.uk
 

Thread Tools




All times are GMT. The time now is 10:30 AM.

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