can't read uvcvideo (usb video / webcams) devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Attempting to read /dev/video0 for USB video device gives:
libv4l2: error turning on stream: No space left on device
from the video4linux library, and the video4linux ioctl fail with e.g.
VIDIOC_STREAMON - Unable to start capture: Device or resource busy
I wrote a test program and find that "Control" ioctls such as VIDIOC_G_FMT are successful: I can query the format which the camera provides, so the "connection" with the camera seems OK.
Reading the frame, however seems impossible.
(cheese and guvcview are also unable to display an image, so it isn't just my programming - and my program does work on a laptop which runs NetBSD, so no ubuntu testing there)
I tested the following cameras
Bus 002 Device 003: ID 046d:09a1 Logitech, Inc. QuickCam Communicate MP/S5500
Bus 002 Device 004: ID 0471:2038 Philips (or NXP)
Bus 002 Device 006: ID 041e:406d Creative Technology, Ltd
(I also tried with ubuntu 10.04)
Most similar bugs have been "solved" in the past by installing new kernels - the above was tried with the most recent at the time of this report:
3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
This computer has USB3 ports as well as USB2 ports - I have tried a variety - apport should show the Logitech plugged into a USB2 port.
These cameras work on other compurters running 10.04 - if I had to guess, this is the only computer I have with USB3 ports - so is it a USB controller driver issue?
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.2.0-25-generic x86_64
NonfreeKernelMo
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'PCH'/'HDA Intel PCH at 0xe0520000 irq 95'
Mixer name : 'Realtek ALC892'
Components : 'HDA:10ec0892,
Controls : 41
Simple ctrls : 20
Card1.Amixer.info:
Card hw:1 'U0x46d0x9a1'/'USB Device 0x46d:0x9a1 at usb-0000:
Mixer name : 'USB Mixer'
Components : 'USB046d:09a1'
Controls : 2
Simple ctrls : 1
Card1.Amixer.
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
Capture channels: Mono
Limits: Capture 0 - 3072
Mono: Capture 1536 [50%] [24.00dB] [on]
Card2.Amixer.info:
Card hw:2 'Generic'/'HD-Audio Generic at 0xe0320000 irq 96'
Mixer name : 'ATI R6xx HDMI'
Components : 'HDA:1002aa01,
Controls : 6
Simple ctrls : 1
Card2.Amixer.
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
CurrentDmesg: Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
Date: Mon Jun 18 17:50:12 2012
IwConfig: Error: [Errno 2] No such file or directory
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/tcsh
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux
UdevDb: Error: [Errno 2] No such file or directory
UpgradeStatus: No upgrade log present (probably fresh install)
WifiSyslog:
dmi.bios.date: 03/27/2012
dmi.bios.vendor: Intel Corp.
dmi.bios.version: SIX7910J.
dmi.board.
dmi.board.name: DX79SI
dmi.board.vendor: Intel Corporation
dmi.board.version: AAG28808-600
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCor
Would it be possible for you to test the latest upstream kernel? Refer to https:/ /wiki.ubuntu. com/KernelMainl ineBuilds . Please test the latest v3.5kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.
Once you've tested the upstream kernel, please remove the 'needs- upstream- testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs- upstream- testing' text.
If this bug is fixed in the mainline kernel, please add the following tag 'kernel- fixed-upstream' .
If the mainline kernel does not fix this bug, please add the tag: 'kernel- bug-exists- upstream' .
If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel- unable- to-test- upstream' .
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".
Thanks in advance.
[0] http:// kernel. ubuntu. com/~kernel- ppa/mainline/ v3.5-rc3- quantal/