modified on 7 May 2016 at 15:44 ••• 18,252 views

HardwareAudioTroubleshooting

From Maties Ubuntu

(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
 +
==General Checks==
 
Check that you have connected everything correctly to your computer. Modern sound cards allow various numbers of speakers to be attached. Read the instruction manual that came with your computer or sound card manufacturer to verify the correct connection sequence.
 
Check that you have connected everything correctly to your computer. Modern sound cards allow various numbers of speakers to be attached. Read the instruction manual that came with your computer or sound card manufacturer to verify the correct connection sequence.
  
Line 15: Line 16:
  
 
Now reboot and enjoy.
 
Now reboot and enjoy.
 +
 +
==Advanced Method==
 +
===Step 1 - Check kernel detects sound card===
 +
To check whether Ubuntu detected your sound card, type the following in a [[Xterm|terminal]];
 +
lspci
 +
Or if you prefer a GUI, go through '''System''' => '''Administration''' => '''Device Manager''' and check '''Sound Controller'''. Can you see the '''Vendor''' name ?
 +
 +
===Step 2 - Check audio group membership===
 +
You must be a member of the audio group to use the ''/dev/dsp'' file. Add yourself to the audio group by typing the following in a [[Xterm|terminal]];
 +
sudo adduser username audio
 +
 +
Where "username" is the username you use to login to the computer.
 +
 +
===Step 3 - Check volume muting===
 +
Check whether the volume is muted. Right click on the sound icon on the top bar next to the time display. Click on "Mute".
 +
 +
===Step 4 - Check sound volumes===
 +
Check the sound volumes using the program "speaker-test". Type the following in a [[Xterm|terminal]];
 +
speaker-test -c2 -t2
 +
If you type;
 +
speaker-test -c5 -t2
 +
all five speakers will be tested.
 +
 +
===Step 5 - Check for old OSS compatibilty===
 +
To use the old open sound system, check the permissions of the ''/dev/dsp'' file. OSS is used mostly for games etc..
 +
 +
To check this, type the following in a [[Xterm|terminal]];
 +
ls -l /dev/dsp
 +
If there is no ''/dev/dsp'' file then type the following in a [[Xterm|terminal]];
 +
sudo modprobe snd-pcm-oss
 +
 +
===Step 6 - Turn off IEC functions===
 +
Turn off all IEC related options by running alsamixer. IEC is an input to certain high end sound cards that support optical (fiber optic) sound feed from such things as DVD players etc.. To turn off those options, type the following in a [[Xterm|terminal]];
 +
alsamixer
 +
You can move around each option with your arrow key (right and left key.) Move to every IEC related option and turn off all of those options (use keyboard "m" to turn off.) After turning off hit "Esc" key to save, and type the following in a [[Xterm|terminal]];
 +
sudo alsactl store
 +
so that the alsamixer settings are saved permanently.
 +
 +
===Step 7 - Reload sound card drivers===
 +
 +
Try to re-compile the ALSA modules (drivers) using the "module-assistant". Type the following in a [[Xterm|terminal]];
 +
 +
sudo aptitude install build-essential module-assistant
 +
sudo m-a update
 +
sudo m-a prepare
 +
sudo m-a a-i alsa

Revision as of 19:07, 18 May 2010

Contents

General Checks

Check that you have connected everything correctly to your computer. Modern sound cards allow various numbers of speakers to be attached. Read the instruction manual that came with your computer or sound card manufacturer to verify the correct connection sequence.

If you are sure that all speakers and equipment are correctly connected then check volume levels and mute functions by right-clicking on the volume control applet on the taskbar (check for the speaker icon) or check in the system settings panel.

If all else fails then try:

  1. https://launchpad.net/~ubuntu-audio-dev
  2. https://wiki.ubuntu.com/DebuggingSoundProblems

Better Pulseaudio Sound Quality

Edit /etc/pulse/daemon.conf:

gksudo gedit /etc/pulse/daemon.conf

Find the following line:

resample-method = speex-float-1

You can change the resampler to any of the following, listed in descending order, from highest quality to lowest quality (and therefore, CPU usage):

  • src-sinc-best-quality, src-sinc-medium-quality, src-sinc-fastest, speex-float-{10-0}, speex-fixed-{10-0}, ffmpeg, src-zero-order-hold, src-linear, trivial

Now reboot and enjoy.

Advanced Method

Step 1 - Check kernel detects sound card

To check whether Ubuntu detected your sound card, type the following in a terminal;

lspci

Or if you prefer a GUI, go through System => Administration => Device Manager and check Sound Controller. Can you see the Vendor name ?

Step 2 - Check audio group membership

You must be a member of the audio group to use the /dev/dsp file. Add yourself to the audio group by typing the following in a terminal;

sudo adduser username audio

Where "username" is the username you use to login to the computer.

Step 3 - Check volume muting

Check whether the volume is muted. Right click on the sound icon on the top bar next to the time display. Click on "Mute".

Step 4 - Check sound volumes

Check the sound volumes using the program "speaker-test". Type the following in a terminal;

speaker-test -c2 -t2

If you type;

speaker-test -c5 -t2

all five speakers will be tested.

Step 5 - Check for old OSS compatibilty

To use the old open sound system, check the permissions of the /dev/dsp file. OSS is used mostly for games etc..

To check this, type the following in a terminal;

ls -l /dev/dsp

If there is no /dev/dsp file then type the following in a terminal;

sudo modprobe snd-pcm-oss

Step 6 - Turn off IEC functions

Turn off all IEC related options by running alsamixer. IEC is an input to certain high end sound cards that support optical (fiber optic) sound feed from such things as DVD players etc.. To turn off those options, type the following in a terminal;

alsamixer

You can move around each option with your arrow key (right and left key.) Move to every IEC related option and turn off all of those options (use keyboard "m" to turn off.) After turning off hit "Esc" key to save, and type the following in a terminal;

sudo alsactl store

so that the alsamixer settings are saved permanently.

Step 7 - Reload sound card drivers

Try to re-compile the ALSA modules (drivers) using the "module-assistant". Type the following in a terminal;

sudo aptitude install build-essential module-assistant
sudo m-a update
sudo m-a prepare
sudo m-a a-i alsa