uvcvideo module randomly fails to load

Bug #241753 reported by Sympy on 2008-06-20
88
This bug affects 15 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Medium
Unassigned
linux-ubuntu-modules-2.6.24 (Ubuntu)
Undecided
Unassigned

Bug Description

I have a Dell Vostro 1400 with a built-in webcam that works flawlessly with uvcvideo. However, during the boot I get

uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -32

right after "loading hardware drivers...". Googling a bit, I found out that this error message is harmless and can be ignored. And, in fact, the camera completely works despite that. However, randomly the module fails to load. In those cases, the message above is shown twice and after the two lines I get "failed to initialize device". When that happens, the camera does not work until I do a modprobe uvcvideo manually (works fine after that).

This error seems random and I'm not sure how to reproduce. It seems a race condition is happening during the module loading. This problem was worse in Gutsy, where it happened more or less in one out of four or five boots. Now in Hardy it happens VERY rarely, but still happens.

My workaround was blacklisting uvcvideo and adding it to /etc/modules. This ensures the module is loaded during the "loading manual drivers..." stage, which happens after "loading hardware drivers..." has finished. That seemed to fix the problem.

Hi Sympy,

Since the upcoming Intrepid Ibex 8.10 release is actively being worked on, care to confirm if this is still an issue with the latest Alpha for the upcoming Intrepid Ibex 8.10. You should be able to test via a LiveCD - http://www.ubuntu.com/testing. Please let us know your results.

Additionally, beginning with the Intrepid Ibex 8.10 development cycle the linux-ubuntu-modules package was actually merged with the linux kernel package. Going forward, bugs that would have been reported against linux-ubuntu-modules should now just be reported against linux. I'll go ahead and add the 'linux' task for this report. However, against linux-ubuntu-modules-2.6.24 this will be closed as it does not qualify for a Stable Release Update - http://wiki.ubuntu.com/StableReleaseUpdates . Thanks.

Changed in linux-ubuntu-modules-2.6.24:
status: New → Won't Fix
Changed in linux:
status: New → Incomplete

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Sergei (Nolar) Vasilyev (nolar) wrote :

With 2.6.27 this stills an issue. Upgraded from 8.04 to 8.10.a5 and then all auto-updates as they came.

$ uname -a
Linux NolarBook 2.6.27-3-generic #1 SMP Wed Sep 10 16:02:00 UTC 2008 i686 GNU/Linux

$ dmesg | grep uvcvideo
[ 13.500023] uvcvideo: Found UVC 1.00 device Laptop Integrated Webcam (05a9:2640)
[ 13.509776] uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26).
[ 13.509911] uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -32 (exp. 26).
[ 13.509914] uvcvideo: Failed to initialize the device (-5).
[ 13.510200] usbcore: registered new interface driver uvcvideo

After that, webcam still doesn't work (regardless of what the last line says).

Doing "rmmod uvcvideo && modprobe uvcvideo" solves the problem. And it says:

[ 6717.305615] usbcore: deregistering interface driver uvcvideo
[ 6719.813625] uvcvideo: Found UVC 1.00 device Laptop Integrated Webcam (05a9:2640)
[ 6720.817158] uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -110 (exp. 26).
[ 6720.885163] usbcore: registered new interface driver uvcvideo

After that it works. Probablhy the initial suggestion about blacklisted+/etc/modules will work. I'll check later.

Changed in linux:
status: Incomplete → New
nsilva (nicolassilva) wrote :

I have the same problem as Sergei, I'm using an external USB Webcam Logitech. It worked flawless since I did a fresh Intrepid Install, but today it failed, giving me the following output after plugin and re-plugin the USB.

[ 366.140084] usb 5-5: new high speed USB device using ehci_hcd and address 7
[ 366.452611] usb 5-5: configuration #1 chosen from 1 choice
[ 366.453217] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c3)
[ 367.453681] uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -110 (exp. 26).
[ 368.452198] uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).
[ 368.452210] uvcvideo: Failed to initialize the device (-5).
[ 369.419212] 7:3:3: cannot set freq 16000 to ep 0x86
[ 389.456743] usb 5-5: USB disconnect, address 7
[ 392.884293] usb 5-6.3: new high speed USB device using ehci_hcd and address 8
[ 393.170201] usb 5-6.3: configuration #1 chosen from 1 choice
[ 393.170726] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c3)
[ 394.168161] uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -110 (exp. 26).
[ 395.168182] uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).
[ 395.168197] uvcvideo: Failed to initialize the device (-5).
[ 396.136693] 8:3:3: cannot set freq 16000 to ep 0x86

I'm running
Linux lsilva-laptop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux

After manually loading the module, the problem is not resolved, I re-plug the USB and get the same error. I tested with camorama and the error message says
"No video device /dev/video0"

nsilva (nicolassilva) wrote :

In addition to my earlier post, the error I have with uvcvideo is not related to module loading.I just re-started and the same error still appearing, and the module is automatically loaded.

Let me know if I can do any testing, to point developers in the right direction

Changed in linux:
status: New → Confirmed
Tobias Richter (tsr-ubuntu) wrote :

I have the same issue with linux-image-2.6.27-7-generic both on i386 and x64.

A hotplugged camera is never recognised correctly and fails to work.
'sudo rmmod uvcvideo' and replugging helps, i.e. then the camera works despite these messages:
 [235797.076550] usb 4-6: new high speed USB device using ehci_hcd and address 9
 [235797.386065] usb 4-6: configuration #1 chosen from 1 choice
 [235798.388566] 9:3:3: cannot set freq 16000 to ep 0x86
 [235800.405614] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c3)
 [235800.443563] uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26).
 [235800.471605] input: UVC Camera (046d:08c3) as /devices/pci0000:00/0000:00:1a.7/usb4/4-6/4-6:1.0/input/input6
 [235800.480124] usbcore: registered new interface driver uvcvideo
 [235800.480128] USB Video Class driver (v0.1.0)
 [235852.378470] usb 4-6: USB disconnect, address 9

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: Confirmed → Triaged
akirillov (akirillov-mail) wrote :

I have encountered the same problem on my 2.6.27-9 version. on 12/14 my quickcap pro for notebooks worked perfectly as soon as I plugged it in:
-----------------------
Dec 14 12:11:01 toshiba kernel: [ 587.920067] usb 1-1: new full speed USB device using uhci_hcd and address 3
Dec 14 12:11:02 toshiba kernel: [ 588.257016] usb 1-1: configuration #1 chosen from 1 choice
Dec 14 12:11:02 toshiba kernel: [ 589.059751] Linux video capture interface: v2.00
Dec 14 12:11:05 toshiba kernel: [ 592.085093] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c3)
Dec 14 12:11:06 toshiba kernel: [ 592.108176] input: UVC Camera (046d:08c3) as /devices/pci0000:00/0000:00:1d.0/usb1/1-1/1-1:1.0/input/input8
Dec 14 12:11:06 toshiba kernel: [ 592.114441] usbcore: registered new interface driver snd-usb-audio
Dec 14 12:11:06 toshiba kernel: [ 592.118576] usbcore: registered new interface driver uvcvideo
Dec 14 12:11:06 toshiba kernel: [ 592.118597] USB Video Class driver (v0.1.0)
-----------------------
Couple days and few required updates later it stopped working with failed query and initialization failed -5 code messages:
-----------------------
Dec 17 23:16:36 toshiba kernel: [ 184.904083] usb 1-1: new full speed USB device using uhci_hcd and address 3
Dec 17 23:16:37 toshiba kernel: [ 185.230971] usb 1-1: configuration #1 chosen from 1 choice
Dec 17 23:16:37 toshiba kernel: [ 185.669168] Linux video capture interface: v2.00
Dec 17 23:16:37 toshiba kernel: [ 185.710851] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c3)
Dec 17 23:16:38 toshiba kernel: [ 186.713610] uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -110 (exp. 26).
Dec 17 23:16:39 toshiba kernel: [ 187.717445] uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).
Dec 17 23:16:39 toshiba kernel: [ 187.717467] uvcvideo: Failed to initialize the device (-5)
-----------------------
Is there a problem with some of the updates I've recently installed or is it somewhere else. I'd be happy to provide more info from my logs and configuration files if needed. Please let me know if there is anything I could do to restore webcam operation. Thank you.

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Vladimir Hidalgo (vlad88sv) wrote :

Testing Karmic I saw something related to uvcvideo that I never noticed before.
Output of "dmesg | grep -C 5 -i uvcvideo" attached.

In particular, what bugs me is that it shows at startup and makes garbage in the screen by mixing with startup messages.

Vladimir Hidalgo (vlad88sv) wrote :

Forgot to say, machine is VAIO VGN-CR240F with a non-supported webcam. lsusb output this:
$ lsusb
Bus 001 Device 003: ID 05ca:1839 Ricoh Co., Ltd Visual Communication Camera VGP-VCC6 [R5U870]

Juja (juliansuhr) wrote :

Same problem;

Ubuntu Version: Karmic Koala
kernel: 2.6.31-15-generic

user@KarmicKoala-pc:~$ dmesg|grep video
[ 0.573114] pci 0000:00:02.0: Boot video device
[ 11.353498] Linux video capture interface: v2.00
[ 11.362608] uvcvideo: Found UVC 1.00 device Laptop Integrated Webcam (05a9:7670)
[ 11.369929] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 11.426292] uvcvideo: Failed to query (129) UVC probe control : -32 (exp. 26).
[ 11.426296] uvcvideo: Failed to initialize the device (-5).
[ 11.426345] usbcore: registered new interface driver uvcvideo

Unloading/loading manually the module uvcvideo, fix the problem.

I have a Dell M1330 laptop

Possible solution?: http://osdir.com/ml/linux-media/2009-10/msg00265.html

superlex (e-lex) wrote :

Same problem;

dmesg | grep uvc
[ 12.559145] uvcvideo: Found UVC 1.00 device <unnamed> (05ca:183b)
[ 12.559395] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 12.559650] uvcvideo: Failed to query (129) UVC probe control : -32 (exp. 26).
[ 12.559656] uvcvideo: Failed to initialize the device (-5).
[ 12.559721] usbcore: registered new interface driver uvcvideo

I have a Sony Vaio FZ31M,

lsusb | grep 05ca:183b
Bus 001 Device 002: ID 05ca:183b Ricoh Co., Ltd Visual Communication Camera VGP-VCC8 [R5U870]

Sergiy Zuban (s-zuban) wrote :

Same problem on dell inspiron 1525 after upgrade to 9.10
Have someone tried to install latest UVC module from svn as described here
http://ubuntuforums.org/archive/index.php/t-793513.html

Logs:

[ 38.999970] uvcvideo: Found UVC 1.00 device Laptop Integrated Webcam (05a9:2640)
[ 39.013060] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 39.013413] uvcvideo: Failed to query (129) UVC probe control : -32 (exp. 26).
[ 39.013418] uvcvideo: Failed to initialize the device (-5).
[ 39.013465] usbcore: registered new interface driver uvcvideo
[ 39.013468] USB Video Class driver (v0.1.0)

$ sudo rmmod uvcvideo
$ sudo modprobe uvcvideo

[33516.280832] usbcore: deregistering interface driver uvcvideo
[33873.216755] uvcvideo: Found UVC 1.00 device Laptop Integrated Webcam (05a9:2640)
[33874.216880] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[33874.217624] input: Laptop Integrated Webcam as /devices/pci0000:00/0000:00:1a.7/usb1/1-1/1-1:1.0/input/input15
[33874.217749] usbcore: registered new interface driver uvcvideo
[33874.217759] USB Video Class driver (v0.1.0)

lemmy (lemmyg) wrote :

HI,
this issue still appear en in lucid 2.6.32-17 and in karmic too.
the message appear sometimes:
(20.021050) uvcvideo: failed to query (129) UVC probe control: -32( exp. 26)
would be nice if people of Dell help to fix this problem.

karmic
Linux 1 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux

susb
Bus 002 Device 003: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0458:0036 KYE Systems Corp. (Mouse Systems) Pocket Mouse LE
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Dani Alonso (dalonso) wrote :

I'm having this same problem in my Vaio, but manually unloading/reloading the uvcvideo does not fix the problem.

The webcam was working in Karmic, not with the stock uvcvideo modules, but with a self-compiled drivers for uvcvideo donwloaded from upstream svn.

Unfortunately, selfcompiling the last svn modules does not fix this issue in Lucid.

I've same problem too with Vaio and Ubuntu 10.04.

superlex (e-lex) wrote :

Do you have installed r5u87x?

Miklos Juhasz (mjuhasz) wrote :

The kernel commit http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=56d15cd313d0d0d7a16c1a2e2cc519f18ab4725a will solve this issue. Ubuntu 10.10 kernel already contains this patch.
The default streaming control timeout value is too low (in Ubuntu 10.04 it is set to 1000ms). In Ubuntu 10.10 with the mentioned kernel patch it is increased to 5000ms which is the value used by the Windows driver as well. A kernel module parameter has also been introduced for this value so that one can change it if needed without rebuilding the kernel.

tags: added: cherry-pick
guerda (derguerda) wrote :

Miklos: This information is very interesting. Could you provide some more details how to use the module parameter?
I would like to try it out without rebuilding the kernel.

Sergiy Zuban (s-zuban) wrote :

create /etc/modprobe.d/uvcvideo.conf and put the following line there:
options uvcvideo timeout=10000

after reboot you can use the following command to make sure parameter setup correctly:
cat /sys/module/uvcvideo/parameters/timeout

Dani Mazón (danim1987) wrote :

I have this problem with a Dell XPS M1330 laptop and Ubuntu 12.04.2.

The workaround indicated in the Bug Description works ok for me.

Sympy, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
superlex (e-lex) wrote :

Ubuntu 12.04, linux 3.2.0-53-generic .
Device (lsusb): 05ca:183b Ricoh Co., Ltd Visual Communication Camera VGP-VCC8 [R5U870]
Solution: https://bitbucket.org/ahixon/r5u87x/
https://bugs.launchpad.net/ubuntu/+bug/120434

superlex, if you have a bug in Ubuntu, the Ubuntu Kernel team, Ubuntu Bug Control team, and Ubuntu Bug Squad would like you to please file a new report by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Please note, not filing a new report would delay your problem being addressed as quickly as possible.

No need exists to comment here at this time. After reading the above documentation in it's entirety, if you have further questions, you are welcome to redirect them to the appropriate mailing list or forum via http://www.ubuntu.com/support/community/mailinglists , or you may contact me directly.

Thank you for your understanding.

Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions