How to fix or reset sound in Ubuntu Linux

I usually play multimedia files which need sounds. But sometime a crashed multimedia application can cause the audio device not released properly. The effects vary, from repeating annoying sounds to no sound at all. If this happens, I usually restart the PC as restarting Alsa is not working.

Actually, to fix this, we should know that Linux (including Ubuntu) open device resource as files. This includes sound card device. So to know which processes or applications accessing the device, just use lsof command.

sudo lsof |grep pcm

All you need to do is, kill the process (sudo kill -9 and restart the Alsa

sudo /etc/init.d/alsa-utils restart

And if you use pulseaudio as in the latest Ubuntu, you must restart pulseaudio as a user (do not use sudo)

pulseaudio restart

This should works.

Source: http://manubuntu.blogspot.com/2009/03/reset-sound.html

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <pre>
  • Lines and paragraphs break automatically.
  • Syntax highlight code surrounded by the {syntaxhighlighter OPTIONS}...{/syntaxhighlighter} tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.