Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Webcam mic stops working randomly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Sun Oct 27, 2013 8:26 pm    Post subject: [Solved] Webcam mic stops working randomly Reply with quote

Weird problem I've had the last few months and just can't seem to solve.

Using a Logitech webcam that uses the regular UVC kernel driver.

Randomly during a skype call, or other application that uses the mic, the sound will just stop. In pavucontrol, the "input devices" tab shows a frozen VU meter.

I then go to "Configuration" (still in pavucontrol), and in the "profile" dropdown, I first select "off", and then back to "Analog mono input". Basically, I turn the mic off, and then back on again.

The mic will start working again for a random period of time. It can be 2 seconds, or 20 minutes. But sooner or later it will stop again.

My first guess was pulseaudio, so I disabled it and ran ALSA. But the problem was still there.

Then I tried a different model webcam, no difference.

Also connected both webcams at the same time and noticed both mics will stop working at the same time!

Note that video continues working fine when the mic is dead. Playback of audio also works fine. Only the mic input stops.

Tried a few different kernel versions, no difference.

Anyone have any ideas? It's not the end of the world, but it sure is annoying.


Last edited by zwede on Sun Nov 03, 2013 11:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Sun Oct 27, 2013 9:29 pm    Post subject: Reply with quote

Found that when the mic stops working, I get this in /var/log/messages:

Code:

Oct 27 16:23:22 markuspc kernel: ehci-pci 0000:00:1d.7: iso urb late ffff880106a0c500 (1983+0 < 1989)
Oct 27 16:23:22 markuspc kernel: cannot submit urb (err = -18)

I googled it, but all the hits I get are for err = -28, not -18.
Back to top
View user's profile Send private message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Sun Nov 03, 2013 11:24 pm    Post subject: Reply with quote

I found some kernel discussions regarding USB1.1 devices on a USB2.0 bus and that there had been some kernel patches recently to fix issues.

I'd been running the stable 3.10.7 kernel, so I went to the latest 3.11.6.

I've done 2 long skype calls and the mic has worked fine. Seems the issue is fixed in the latest kernel.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Mon Feb 03, 2014 10:48 am    Post subject: microphone in webcam is not working Reply with quote

Hi everyone, after a recent kernel update from 3.10.7 to 3.10.25, and some major updates (including gnome3, systemd), I found the system can not recognize the in-building microphone in the webcam, particularly when using skype.

Here are some outputs from the command:

Code:
localhost init.d # lsmod
Module                  Size  Used by
uvcvideo               70413  0
videobuf2_vmalloc       2800  1 uvcvideo
videobuf2_memops        1799  1 videobuf2_vmalloc
videobuf2_core         27241  1 uvcvideo
videodev              101296  2 uvcvideo,videobuf2_core
snd_usb_audio         113180  1
snd_usbmidi_lib        18029  1 snd_usb_audio
snd_rawmidi            18464  1 snd_usbmidi_lib
ath9k                 156064  0
ath9k_common            1839  1 ath9k
ath9k_hw              412646  2 ath9k_common,ath9k
ath                    15638  3 ath9k_common,ath9k,ath9k_hw


In fact, the webcam can be found as I can use it during the video call.

Any ideas from this issue?


Thanks in advance!
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Tue Feb 04, 2014 7:56 am    Post subject: Reply with quote

What is the output from "arecord -l" command? It is supposed to list all devices from which you can get input.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Tue Feb 04, 2014 12:39 pm    Post subject: Reply with quote

hi @v_andal thanks for the suggestion. this is the output

Code:
gchenming@localhost ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1984A Analog [AD1984A Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: AD1984A Alt Analog [AD1984A Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: U0x46d0x824 [USB Device 0x46d:0x824], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0


apparently its been found by the system, but when I try to change microinput from the options of skype, it only shows

Code:
PulseAudio server (local)


I remembered clearly that we did have many choices before the kernel update.
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Wed Feb 05, 2014 7:42 am    Post subject: Reply with quote

I guess you have installed PulseAudio :)

Well, looks like your problem is not with kernel but with PulseAudio. Alsa provides drivers (in kernel), these drivers work correctly. PulseAudio is supposed to be a mediator between applications and kernel. Unfortunately, I don't know how to use PulseAudio. When I tried, it created lots of problems for me, so I just got rid of it, anyway I don't use any applications that depend on it. Without PulseAudio, skype happily uses Alsa directly.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Wed Feb 05, 2014 11:59 am    Post subject: Reply with quote

Ha! @v_andal you picked the right point, problem solved!

Code:
emerge -C pulseaudio


Thanks very much!
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Wed Feb 05, 2014 2:09 pm    Post subject: Reply with quote

I still want to go to the bottom of this problem, as later I found gnome3 is dependent on pulseaudio.

Is there any way we are able to make the microphone work with pulseaudio installed?


I have another laptop with pulseaudio and skype installed. But luckily the inbuilding microphone works.
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Thu Feb 06, 2014 9:49 am    Post subject: Reply with quote

There's utility pavucontrol which allows you to change settings for PulseAudio (media-sound/pavucontrol) also media-sound/paprefs. Maybe you'll find something using these tools. I can't offer more, sorry.
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Fri Feb 07, 2014 1:16 am    Post subject: Reply with quote

v_andal:

Thank for leading me the way, after opened up pavucontrol, I am able to use the microphone built in the webcam, with pulseaudio installed.

However, I still can not remember which tab I have changed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum