Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using 3.12.13-gentoo 64bit kernel on my sony vaio(Model Number: VPCEB2M1E). Here is my webcam info
Code:
lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0c45:6409 Microdia Webcam
Bus 001 Device 004: ID 0489:e00f Foxconn / Hon Hai Foxconn T77H114 BCM2070 [Single-Chip Bluetooth 2.1 + EDR Adapter]
Bus 002 Device 003: ID 04f3:02f4 Elan Microelectronics Corp. 2.4G Cordless Mouse
I have configured well the webcam and it is working pretty fine with skype. The problem is with the mic. It is not working at all.
open a terminal type alsamixer then press F6 select your webcam then press F4 and make sure the capture it is set up.
also in your favorite GUI mixer you can make sure it is there . If it is in alsamixer and not in your gui then go to settings and add it. If it is a duplex
device then it will have a volume. If it is just a capture device then it will only have a gain and a mic boost level. most have auto gain also.
it is not the hda ok you need to find this capture device Microdia Webcam and alsamixer will only show that under F4.
in a terminal type arecord -l you should get a read out of your recording devices. here is mine.
Quote:
bash-4.2$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HD2200 [HP Webcam HD-2200], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Headset [HP Digital Stereo Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
these are devices that capture.
another thing some times skype likes to capture it and you are unable to use it in another program.
I had Skype not release my webcam mic after finishing a call also.
if this is a skype sound problem please configure the options/sound device in skype. and remember skype is a 32 bit program so you will need the multi arch libraries to use sound in it. like 32 bit pulseaudio if your system uses pulse. and 32 bit alsa and etc etc.
this tells me your camera does not have a mic. and it tells me your microphone is on the default device hda. this tells me you need to test it out side of skype to see if it works with this.
Quote:
arecord -f dat -d 20 -D hw:0,0 test.wav
then play back the test.wav if it records then it is working fine. and you need to get 32 bit libraries for your distro for skype. and read up on it.
want you to run this script here is the code make text file name it asoundrc.sh.
and save it the run it like this sh asoundrc.sh
Code:
% cat /usr/bin/asoundrc
#!/bin/bash
# asoundrc v0.1.0 20090101 markc@renta.net GPLv3
# asoundrc v0.2.0 20090320 quatro_por_quatro@yahoo.es GPLv3
#
# A simple script to create a particular default audio device regardless
# of what cards are loaded or in what order. It could be used anytime or
# placed in a ~/.bashrc script for a persistent setup every login.
#
# Usage: asoundrc [DEFAULT_CARD] > ~/.asoundrc
# use the first parameter as the card name, or else
# look for the sound card, discarding those that are only microphones
# when there are multiple cards, use the first one
if default_card="${1:-$(cat "$(for f in $(ls -1 /proc/asound/card[0-9]*/{midi,codec}* 2>/dev/null); do echo "${f%/*}"; done \
| sed -e '\|^[\[:blank:]\]$|d' -e 'q')/id" 2>/dev/null)}"; then
echo "Using sound card: ${default_card}" >&2
cat /proc/asound/card[0-9]*/id | \
gawk --assign default_card="${default_card}" \
'{print "pcm."$1" { type hw; card "$1"; }\nctl."$1" { type hw; card "$1"; }" }
END {print "pcm.!default pcm."default_card"\nctl.!default ctl."default_card}'
else
echo "Warning: No sound cards found." >&2
fi
that will tell you your devices ok. Next in a terminal assume root or use the sudo what ever Gentoo does.
and copy paste this in your terminal add sudo if you need to.
Quote:
sudo if needed echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf
this will create a file in /etc/modprobe.d/named snd-hda-intel.conf and make sure all the modules for your card is loaded
at boot time.
next.
that first script actually writes you a .asoundrc file we will not use that yet.
want you to reboot. now open a terminal run your alsamixer and press F5 make sure your mic is captured boost is turn up and mic is turned up.
now open a terminal and run aplay -l that shows the out put devices. now run arecord -l this shows only input devices.
trust me if it made a test.wav for you but you did not hear it this is the reasons your volume is muted or the mic boost or the mic is turn down or it is not
enabled (captured) or you did not speak.
so aplay test.wav no output sound very good. now lets tell the output to use the speakers. on that same intel device. want you to go to your /etc/modprobe.d folder.
and in there look for sound.conf or alsa.conf.
in there I would like to see something like this or close to it. this is my intel snd set up. in your alsamixer make sure if you have multiple channels
to try like channel 2 then 4 etc.
here is my intel set up.sound.conf
Quote:
alias char-major-116 snd
alias char-major-14 soundcorealias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel,snd-usb-audio,
this makes my snd-hda-intel the main device it also had midi in it. then any usb sound devices that get plugged in will go to slot 2
then after that your snd_hda_codec_hdmi output midi is for video and that is your graphics card midi output.
Your sound side of the card. make sure in setup bios setup your sound card a pci device is enabled.
then make sure you as a user have audio permissions. If using Pulse same thing you need to be in pulse's group.
if you do not have audio permission the kernel will not let the user hear music only root will.
In the large picture your input out put is your intel HDMI as default but you will not hear sound from it.
it must be the the audio card not the intel graphics card with HDMI midi . that is used for hooking up
to an external display device to do presentations. we need to get it to use the your actual soundcard
snd_hda_intel that is run by snd_hda_codec_realtek.
this is very common problem with laptops that the default device is the snd_hda_codec_hdmi device.
The reason why when you boot your computer the system loads the pci bus first and that graphics card and it's device
is being loaded in to slot one snd_hda_codec_hdmi .
Quote:
assume root or sudo and run lspci | grep -i audio
and post it here then give me your actual laptop make and model.
OK now for the other snd device. you will see you have a generic soundcard. after you have done everything from above.
and have rebooted. If you still are unable to hear sound from say Youtube. then
you ran that script and the ouput actual can create a ~/home .asoundrc file.
you can copy paste it here and place it in your ~/home name it with the dot .asoundrc
Quote:
Using sound card: MID
pcm.MID { type hw; card MID; }
ctl.MID { type hw; card MID; }
pcm.Generic { type hw; card Generic; }
ctl.Generic { type hw; card Generic; }
pcm.!default pcm.MID
ctl.!default ctl.MID
then restart alsa think in gentoo it is. /etc/init.d/alsasound restart
now change
Quote:
pcm.!default pcm.MID
ctl.!default ctl.MID
to
Quote:
pcm.!default pcm.Generic
ctl.!default ctl.Generic
and restart alsasound.
now your default output is the Generic snd card.
Last edited by Drakeo; 06-12-2014 at 08:33 AM.
Reason: after system wide. lspci | grep -i audio
If this works and I hope it does you will be able to run the script after you plug in say a usb headset then set the head set to pcm.!default (your head set) and ctl.!default (your head set) do a alsasound restart. that should work on everything but gmplayer gmplayer will default to a device full soundcard device unless you edit the mplayer.conf file.
if you use a analog plug type of headset then it will turn your sound off and direct it through the headphones. unless you tell your alsamixer of choice to
play sound out all of them. hang in there.
Thanks for your kind explaination, I read it twice or thrice in order to digest it . Anyway thanks to educate me. Lets move to the problem.
Here is my /etc/modprobe.d/alsa.conf
Code:
cat /etc/modprobe.d/alsa.conf
# Alsa kernel modules' configuration file.
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1
I am the member of the following group on my notebook
Code:
sudo groups user_name
wheel audio cdrom video usb users portage user_name
and I can listen the music, so sound card is working pretty fine.
Here is the lspci -v output(I paste here only audio devices)
Code:
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
Subsystem: Sony Corporation Device 9071
Flags: bus master, fast devsel, latency 0, IRQ 43
Memory at f5e00000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cedar HDMI Audio [Radeon HD 5400/6300 Series]
Subsystem: Sony Corporation Device 9071
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f0040000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
I am using sony vaio notebook(model number:VPCEB2M1E). Here is the info about my linux OS
Code:
uname -a
Linux MY-PC 3.14.0 #6 SMP Sun Jun 15 20:33:03 CEST 2014 x86_64 Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz GenuineIntel GNU/Linux
On windows7 I can use skype but on linux the mic(near to the webcam) is not working. I am not using any external headset. The problem is only related to the mic not from the sound.
I have a disturbingly similar problem. Disturbing, because my problems also started with skype and there is no solution listed, here... the thread just ends.
I ran most of the tests you did, with much the same result... I have proved that I have a working sound card. I can listen to audio regardless of where it comes from, I simply cannot record over a microphone.
In addition to the info you listed, I have also tried changing the ALSA and pulse audio settings pertaining to the microphone. I did this without any real system to my tinkering, just bumping up volume settings and making sure that nothing is muted. I have also tried using an external microphone attached to my Sennheiser headset. This proved to be futile, because it also resulted in no recording although lsusb did list the device and the ALSA mixer also listed it. Besides, I'd really like to get my internal microphone working.
I will probably start a new thread but I'd really like to know if you solved the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.