Vietnamen’s Weblog

Time, Chances, Diligence, Intelligence: which is the most important?

Sound & Mic

with one comment

This post describes how I made my sound work flawlessly based on the tutorial from other geeks.

First, a credit is given to Tux for his nice tutorial:

Step 1:

sudo apt-get install alsa-oss
sudo apt-get install libasound2
sudo apt-get install libasound2-plugins
sudo apt-get install sysv-rc-conf
sudo mv /etc/X11/Xsession.d/70pulseaudio /etc/X11/Xsession.d/70pulseaudio_backup

Step 2: Remove pulseaudio (sound plugin) from gnome-settings-daemon

gconftool-2 -s -t bool /apps/gnome_settings_daemon/plugins/sound/active false

Step 3: Unset Pulseaudio

asoundconf unset-pulseaudio

Step 4: Remove from runlevel [Overkill, just to make sure]

sudo sysv-rc-conf

Page down till you see “pulseaudio” entry, then untick all the box [ ]. Press Escape key to save and exit.

Step 5: check the name of your sound card and add it to sound config (here, sound card name is “Intel”).

asoundconf list
Names of available sound cards:
asoundconf set-default-card Intel
Step 6: Adjust in sound config, 
sudo nano /etc/libao.conf
by adding the following line
Step 7: Open System - Preferences - Sound and make sure it looks like this

NOTE: In my case, Sound capture should be HDA Intel STAC92xxx Analog (ALSA) to be functional.

Step 8: To further overkill pulseaudio, edit your ~/.bashrc
export SDL_audiodriver=alsa
export SDL_audiodriver=aoss # Use this line if you want alsa wrapper for OSS (recommended)

These below steps are creditted to Gandalf and McQuad at :

Step 9:

sudo apt-get install libesd-alsa0

Step 10:

sudo mv /etc/esound/esd.conf /etc/esound/esd.conf_backup
sudo gedit /etc/esound/esd.conf

and insert into it

spawn_options=-terminate -nobeeps -as 2 -d default
# default options are used in spawned and non-spawned mode

Step 11: change sound server to Alsa


Step 12 (optional): If realplayer doesn’t work, create the /dev/dsp device, routed to alsa.

modprobe -v snd-pcm-oss

Step 13: Edit your sound config

sudo gedit /etc/asound.conf

And this is the content of my file asound.conf

pcm.card0 {
type hw
card 0
pcm.dmix0 {
type dmix
ipc_key 34521
slave {
pcm “card0”
pcm.dsnoop0 {
type dsnoop
ipc_key 2048
slave {
pcm “card0”
#rate 48000
pcm.asym0 {
type asym
playback.pcm “dmix0”
capture.pcm “dsnoop0”
pcm.pasym0 {
type plug
slave.pcm “asym0”
# ‘dsp0’ is espected by OSS emulation etc.
pcm.dsp0 {
type                  plug
slave.pcm             “asym0”

ctl.dsp0 {
type                hw
card                0

pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm “hw:0,0”
period_time 0
period_size 2048    #1024
buffer_size 32768    #4096
#periods 128
rate 48000        #44100
bindings {
0 0
1 1
ctl.!default {
type                hw
card                0
pcm.!default {
type plug
slave.pcm “dmixer”

Step 14 (optional) If you’re using Skype, adjust following this

Soundin : HDA Intel (hw:Intel, 0)  # you can adjust to your corresponding soundcard
Sound out: dmixer
Ringing: dmixer

Step 15 (optional) In Audacity, Edit\Preferences and adjust Audio I/O

Playback: ALSA:mixer
Recording: ALSA: HDA Intel: STAC92XX Analog # you can choose one corresponding to your soundcard

Now, bump.

Below are many other threads discussing sound troubleshooting.


Written by vietnamen

Tháng Ba 8, 2009 lúc 2:32 chiều

Một phản hồi

Subscribe to comments with RSS.

  1. […] Xin xem bài viết để biết cách cấu hình voice chat cho Skype một cách hoàn […]

Trả lời

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập: Logo

Bạn đang bình luận bằng tài khoản Đăng xuất /  Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Đăng xuất /  Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Đăng xuất /  Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Đăng xuất /  Thay đổi )


Connecting to %s

%d bloggers like this: