Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old April 22nd, 2007   #1
jjalocha
Gee! These Aren't Roasted!
 
jjalocha's Avatar
 
Join Date: Feb 2007
Location: Chile
My beans are hidden!
Xubuntu 9.04 Jaunty Jackalope
Smile Microphone Input Solution

This is my experience with microphone input problems, and how I solved them. Many people are having different problems with microphone input in Ubuntu, so I hope this post is helpful for some of them.

Both, with Edgy and Feisty, my hardware gets detected correctly out of the box, but I was unable to record anything, using a microphone plugged into the jack.

This is my soundcard:

Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
lspci gives different output in Edgy and Feisty:

Edgy:

Code:
$ lspci
[...]
00:14.2 Audio device: ATI Technologies Inc Unknown device 4383
[...]
Feisty:

Code:
$ lspci
[...]
00:14.2 Audio device: ATI Technologies Inc SB600 Azalia
[...]
The solution needs the alsamixer and amixer command line tools. If they aren't installed already, you need to install the 'alsa-utils' package (using for example Synaptic).

From the command line, you can use alsamixer. Use TAB for selecting the 'Playback', 'Capture' or 'All' window, and use LEFT/RIGHT to select the desired control. You have to make sure you get the following settings right (all of them):
  • All channels must be non-zero (use UP/DOWN).
  • 'Capture' must be enabled (use SPACE).
  • Select the correct 'Input Source' if you have more than one. (I only have 'Mic'.)

In my case, i had to enable 'Capture'. This is how it looked before the change (not-working). Note dashed line above 'Capture':



And this is how it looked after getting it right. Note red 'CAPTUR' tag above 'Capture':



Activating capture can be done easier with the amixer tool:

Code:
$ amixer set 'Capture' cap
If the configuration gets lost after each reboot, then you can make the cnahge permanent adding this line to '/etc/rc.local' file, before 'exit 0'.

Simply typing amixer in the terminal puts out your current settings. In my case, when 'Capture' was disabled, both channels were '[off]':

Code:
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 9 [60%] [13.50dB] [off]
  Front Right: Capture 9 [60%] [13.50dB] [off]
After enabling it:

Code:
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 15
  Front Left: Capture 9 [60%] [13.50dB] [on]
  Front Right: Capture 9 [60%] [13.50dB] [on]
[2007-04-22 EDIT: Added /etc/rc.local fix.]
[2007-04-23 EDIT: Better explained.]
Attached Thumbnails
Click image for larger version

Name:	cap.png
Views:	2319
Size:	27.9 KB
ID:	30446   Click image for larger version

Name:	nocap.png
Views:	2301
Size:	27.2 KB
ID:	30447  

Last edited by jjalocha; April 23rd, 2007 at 10:08 AM.. Reason: more precise wording
jjalocha is offline  
Old April 22nd, 2007   #2
El Viejo Lobo
Gee! These Aren't Roasted!
 
El Viejo Lobo's Avatar
 
Join Date: Dec 2006
Location: Santo Domingo RD
Beans: 171
Ubuntu 9.04 Jaunty Jackalope
Re: Microphone Input Solution

Maybe I get get some help if somebody will look at:
http://ubuntuforums.org/showthread.p...58#post2511758
El Viejo Lobo is offline  
Old April 23rd, 2007   #3
jjalocha
Gee! These Aren't Roasted!
 
jjalocha's Avatar
 
Join Date: Feb 2007
Location: Chile
My beans are hidden!
Xubuntu 9.04 Jaunty Jackalope
Re: Microphone Input Solution

Since it seems that the wording in my first post was not clear enough, I have edited it, and tried to be more precise.
jjalocha is offline  
Old April 23rd, 2007   #4
jjalocha
Gee! These Aren't Roasted!
 
jjalocha's Avatar
 
Join Date: Feb 2007
Location: Chile
My beans are hidden!
Xubuntu 9.04 Jaunty Jackalope
Re: Microphone Input Solution

Here's another happy (Edgy) user that got his mic working with another method:
http://ubuntuforums.org/showpost.php...13&postcount=3
jjalocha is offline  
Old May 16th, 2007   #5
_mOrgoth_
Just Give Me the Beans!
 
_mOrgoth_'s Avatar
 
Join Date: Jun 2006
Location: Croatia
Beans: 62
Re: Microphone Input Solution

THX MAN... IT HELP!!!! Respect!!
_mOrgoth_ is offline  
Old May 19th, 2007   #6
pillu
Just Give Me the Beans!
 
Join Date: Jan 2006
Beans: 81
Re: Microphone Input Solution

Thanks for the help...I can't believe the solution was so simple....I was dreading that I had to install a alsa from source or something...turns out, i just have to turn the capture on

thanks
pillu
pillu is offline  
Old May 19th, 2007   #7
jjalocha
Gee! These Aren't Roasted!
 
jjalocha's Avatar
 
Join Date: Feb 2007
Location: Chile
My beans are hidden!
Xubuntu 9.04 Jaunty Jackalope
Re: Microphone Input Solution

I'm glad this was useful!

There's been reported another solution, which seems to help when the files '/etc/asound.names' or '/var/lib/alsa/asound.state' are missing:

Code:
$ sudo alsactl names
$ sudo alsactl store
$ sudo reboot
Be careful, though, since this might screw up your whole configuration!

There's another solution with kernel modules for STAC hardware.

Don't forget there seems to be also a solution with kmix (works also under Gnome).

Last edited by jjalocha; May 19th, 2007 at 05:53 PM.. Reason: new solution
jjalocha is offline  
Old June 7th, 2007   #8
euchrid
Just Give Me the Beans!
 
euchrid's Avatar
 
Join Date: Nov 2006
Location: UK
Beans: 57
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to euchrid Send a message via AIM to euchrid Send a message via MSN to euchrid Send a message via Yahoo to euchrid Send a message via Skype™ to euchrid
Re: Microphone Input Solution

I didn't have '/etc/asound.names' or '/var/lib/alsa/asound.state' on my system - apparently, you don't necessarily need them - but systems seem to vary quite widely.

I found I had to update the Alsa drivers. I explained how I did it in this post: http://ubuntuforums.org/showthread.p...55#post2798055

Hope this is useful to someone. It was killing me for hours!
euchrid is offline  
Old March 21st, 2008   #9
omarabdelhaleem
First Cup of Ubuntu
 
omarabdelhaleem's Avatar
 
Join Date: Mar 2008
Beans: 10
Re: Microphone Input Solution

Thanks! Now I am really up and running.
omarabdelhaleem is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:47 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry