Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was listening to music, and my sound suddenly went dead in all my applications. I'm using Ubuntu 12.04, which uses pulseaudio, so I tried sudo /etc/init.d/pulseaudio restart, but nothing happened. According to lsof | grep pcm, nothing is using the soundcard at the moment, although I'm not entirely sure if my source for that command is applicable.

Is there a way another way to restart Ubuntu 12.04's sound system from the command line without rebooting the system?

share|improve this question
    
This answer worked for me. askubuntu.com/questions/15223/… –  rickfoosusa Aug 25 at 23:58

2 Answers 2

up vote 45 down vote accepted

I've used pulseaudio -k && sudo alsa force-reload a couple of times, and it worked well. The first part kills pulseaudio, the second reloads ALSA. You don't need to restart pulseaudio, because it auto-restarts.

share|improve this answer
2  
This helped to me to fix the issue 'no sound after suspend' I have suffered from for don't remember how long. –  khustochka Aug 31 '13 at 19:19
1  
Thanks worked perfectly –  Ankur Agarwal Sep 29 '13 at 14:11
    
Ubuntu sometimes freezes for me and goes mental for about 10 minutes, after which it "wakes up" in a bit of a daze, including the sound not working. This fixed it! –  Matt Fletcher Nov 28 '13 at 14:19
    
This can also occur if the AudioThread is killed by the OOM killer thanks to misbehaving apps. The above worked perfectly. –  Ken Sharp Mar 3 at 14:41

What I do when my sound doesn't work is

killall pulseaudio

and then I press Alt-F2 and type in pulseaudio. It usually works for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.