You are not logged in.

#1 2019-11-13 14:04:40

Sotitsi
Member
Registered: 2019-11-13
Posts: 15

[Solved] Camera/Microphone doesn't work as intented

Hello everyone,
I'm a total newbie with anything Linux-related but I'm learning fast. I try to setup my first Arch-Linux OS and I need some help.

I have a camera with a built-in microphone. Model is Microsoft Lifecam HD-3000 and it is connected through usb.

I only use ALSA and I have a basic installation with the xfce desktop environment.

Ok, I try to make it work, I don't know from where to start, I read some other posts with similar problems but everyone has some kind of different problem and everything seems so confusing.

My sound is working fine, although not always. Sometimes my usb Camera is defined by the system as card 0 device 0 (I saw that from "aplay -l"), thus breaking my asoundrc configuration. Sometimes it does not (for example it could be card 2 device 0, from "arecord -l").

Sometimes I see when I boot-up some errors like these

[    2.200818] usbcore: registered new interface driver snd-usb-audio
[    2.200985] uvcvideo: Found UVC 1.00 device Microsoft® LifeCam HD-3000 (045e:0779)
[    2.201026] uvcvideo: Failed to query (GET_INFO) UVC control 2 on unit 1: -71 (exp. 1).
[    2.202109] uvcvideo: Failed to query (GET_INFO) UVC control 4 on unit 1: -71 (exp. 1).
[    2.203177] uvcvideo: Failed to query (GET_INFO) UVC control 11 on unit 1: -71 (exp. 1).
[    2.204233] uvcvideo: Failed to query (GET_INFO) UVC control 13 on unit 1: -71 (exp. 1).
[    2.205289] uvcvideo: Failed to query (GET_INFO) UVC control 2 on unit 4: -71 (exp. 1).
[    2.206354] uvcvideo: Failed to query (GET_INFO) UVC control 3 on unit 4: -71 (exp. 1).
[    2.207084] uvcvideo: Failed to query (GET_INFO) UVC control 7 on unit 4: -71 (exp. 1).
[    2.207798] uvcvideo: Failed to query (GET_INFO) UVC control 8 on unit 4: -71 (exp. 1).
[    2.208505] uvcvideo: Failed to query (GET_INFO) UVC control 10 on unit 4: -71 (exp. 1).
[    2.209208] uvcvideo: Failed to query (GET_INFO) UVC control 1 on unit 4: -71 (exp. 1).
[    2.209896] uvcvideo: Failed to query (GET_INFO) UVC control 5 on unit 4: -71 (exp. 1).
[    2.210578] uvcvideo: Failed to query (GET_INFO) UVC control 11 on unit 4: -71 (exp. 1).
[    2.211333] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[    2.211410] uvcvideo: Failed to query (129) UVC probe control : -71 (exp. 26).
[    2.212058] uvcvideo: Failed to initialize the device (-5).
[    2.212741] usbcore: registered new interface driver uvcvideo
[    2.212741] USB Video Class driver (1.1.1)

although some other times not.

If I re-plug the camera it detects it normally and the video capture works.
Sound capture doesn't work though.

Anyway, there are so many things going on and I am getting confused, no idea how to solve all this.
I want to make my usb camera defined as a certain device so it won't break any configurations and make both the video and sound capture working.
Where should I start, what should I check first?

Any help is appreciated, thank you..

Last edited by Sotitsi (2019-11-14 20:39:10)

Offline

#2 2019-11-13 14:38:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,743

Re: [Solved] Camera/Microphone doesn't work as intented

For the audio card ordering issue, ensure your indices via a modprobe.d config: https://wiki.archlinux.org/index.php/Ad … sound_card

e.g.

/etc/modprobe.d/alsa-base.conf
options snd-hda-intel index=0,1 #Not entirely clear here, post your aplay -l, part of your post makes it sound like you have multiple HDA cards
options snd-usb-audio index=2 #Force snd-usb-audio to index 2

Not certain on the uvc/video failures. What port is the camera plugged into? Output of

sudo lsusb -t

?

Last edited by V1del (2019-11-13 14:40:53)

Offline

#3 2019-11-13 14:59:16

Sotitsi
Member
Registered: 2019-11-13
Posts: 15

Re: [Solved] Camera/Microphone doesn't work as intented

Hello,
yeah, i'm trying to figure that out (about alsa-base.conf), my problem is I don't know what names to put there. For example where does snd-hda-intel come from? What is the command to list these snd_'s.

Here is my aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and arecord -l

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC887-VD Alt Analog [ALC887-VD Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HD3000 [Microsoft® LifeCam HD-3000], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

and lsusb -t

/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
    |__ Port 3: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 3: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 3: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 3: Dev 2, If 3, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 9: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 9: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M

Ah, just saw snd-usb-audio there. I'll create alsa-base.conf and make some reboots and see how it goes.

Offline

#4 2019-11-13 15:21:27

Sotitsi
Member
Registered: 2019-11-13
Posts: 15

Re: [Solved] Camera/Microphone doesn't work as intented

Ok, I created the indexes, I made a couple of reboots and it seems everyone is in his place. Intel is card 0, nvidia is 1 and the camera is always on 2. So that's good, thanks!

The camera and the recording worked, although I have some issue with the quality of the recording and some weird noises from a simultaneous playback. But that doesn't matter for now.

Last reboot showed these errors again though, and camera doesn't work at all.

dmesg shows a lot of these errors, like a lot!

[  139.124690] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.142088] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.154324] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.165801] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.177342] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.189259] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.201275] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.213692] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.226255] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.238643] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.251396] usb 2-3: 3:1: usb_set_interface failed (-71)
[  139.263001] usb 2-3: 3:1: usb_set_interface failed (-71)

Offline

#5 2019-11-14 20:40:16

Sotitsi
Member
Registered: 2019-11-13
Posts: 15

Re: [Solved] Camera/Microphone doesn't work as intented

I changed to linux-lts and there are no more errors. I'll wait some time for new updates and go back to linux again and try.

Offline

Board footer

Powered by FluxBB