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:
__NOTOC__
+
;General Checks
==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 10: Line 9:
 
# http://www.ubuntu.sun.ac.za/wiki/index.php/HardwareCompatibility
 
# http://www.ubuntu.sun.ac.za/wiki/index.php/HardwareCompatibility
  
==Better [[Pulseaudio|Pulseaudio]] Sound Quality==
+
;Better [[Pulseaudio|Pulseaudio]] Sound Quality
 
Edit /etc/pulse/daemon.conf:
 
Edit /etc/pulse/daemon.conf:
 
  gksudo gedit /etc/pulse/daemon.conf
 
  gksudo gedit /etc/pulse/daemon.conf
Line 20: Line 19:
 
Now reboot and enjoy.
 
Now reboot and enjoy.
  
==Advanced Method==
+
;Advanced Method
===Step 1 - [[HardwareCompatibility|Check that the kernel detects the sound card correctly]]===
+
:;Step 1 - [[HardwareCompatibility|Check that the kernel detects the sound card correctly]]===
 
Click on the heading above.
 
Click on the heading above.
  
===Step 2 - Check audio group membership===
+
:;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]];
 
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
 
  sudo adduser username audio
Line 30: Line 29:
 
Where "username" is the username you use to login to the computer.
 
Where "username" is the username you use to login to the computer.
  
===Step 3 - Check volume muting===
+
:;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".
 
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 speaker connections===
+
:;Step 4 - Check speaker connections
 
Check the speaker connections using the program "speaker-test". Type the following in a [[Xterm|terminal]];
 
Check the speaker connections using the program "speaker-test". Type the following in a [[Xterm|terminal]];
 
  speaker-test -c2 -t3
 
  speaker-test -c2 -t3
Line 40: Line 39:
 
all five speakers will be tested.
 
all five speakers will be tested.
  
===Step 5 - Check for old OSS compatibilty===
+
:;Step 5 - Check for old OSS compatibility
 
To use the old open sound system, check the permissions of the ''/dev/dsp'' file. OSS is used mostly for games etc..
 
To use the old open sound system, check the permissions of the ''/dev/dsp'' file. OSS is used mostly for games etc..
  
Line 48: Line 47:
 
  sudo modprobe snd-pcm-oss
 
  sudo modprobe snd-pcm-oss
  
===Step 6 - Turn off IEC functions===
+
:;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]];
 
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
 
  alsamixer
Line 55: Line 54:
 
so that the alsamixer settings are saved permanently.
 
so that the alsamixer settings are saved permanently.
  
===Step 7 - [[ALSA|Reload sound card drivers]]===
+
:;Step 7 - [[ALSA|Reload sound card drivers]]
 
Click on the heading above.
 
Click on the heading above.

Revision as of 20:43, 25 May 2010

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
  3. http://www.ubuntu.sun.ac.za/wiki/index.php/HardwareCompatibility
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 that the kernel detects the sound card correctly===

Click on the heading above.

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 speaker connections

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

speaker-test -c2 -t3

If you type;

speaker-test -c5 -t3

all five speakers will be tested.

Step 5 - Check for old OSS compatibility

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

Click on the heading above.