Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old May 23rd, 2007   #1
Pikestaff
Way Too Much Ubuntu
 
Pikestaff's Avatar
 
Join Date: Jan 2007
Location: Montana
Beans: 231
Kubuntu 9.10 Karmic Koala
Post Restart sound?

On occasion, my sound seems to quit working. I can sometimes fix this problem, for example, killing Firefox will fix the problem a lot of the time. Other times, though, I can't get the sound to come back unless I restart X.

I was wondering, since that can sort of be a pain (often I'm talking to people in IM or doing other stuff)... is there a way to restart the sound system without actually having to restart X or reboot the computer? I've tried things like "sudo killall alsa" but that doesn't seem to help, is there some other command that will?

Thanks in advance.
__________________
Proud Kubuntu user since 6.06 "Dapper" | WoW, Linux, & Geekery <3 | Linux User #440899
"Think of your brethren like unto yourselves, and be familiar with all and free with your substance, that they may be rich like unto you." - Jacob 2:17
Pikestaff is online now   Reply With Quote
Old May 29th, 2007   #2
tigerstripedcat
A Carafe of Ubuntu
 
Join Date: May 2005
Beans: 88
Re: Restart sound?

I've always wondered this--you should only have to restart linux if you change the kernel!--and I think I found out how:

do:

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

But sometimes this won't work if something is really holding on to the sound so do:

name@comp:~$ lsof | grep pcm
sh 5079 name 70u CHR 116,6 13639 /dev/snd/pcmC0D0p
esd 5080 name 70u CHR 116,6 13639 /dev/snd/pcmC0D0p

to find the process id and then kill it and restart:

name@comp:~$ kill -9 5079
name@comp:~$ kill -9 5080
name@comp:~$ lsof | grep pcm
sudo /etc/init.d/alsa-utils restart

and hopefully that will work.
tigerstripedcat is offline   Reply With Quote
Old November 7th, 2007   #3
jaadatepe
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 1
Re: Restart sound?

Dude -- you are my lord and savior, note lowercase <<not a blasphemer>>

This problem has plagued me for God knows how long. Big thanks.

Eventually I found the alsa-utils restart command, which saves me a good 60% of the time, but I was forced to restart the damn computer sometimes.

It seems like this would happen when you closed a program abruptly... I guess something is going wrong and it's not "releasing control" of the device, or something...

Either way, your directions worked so great!! This is the kind of stuff that needs to be shared more often. I don't know how long I looked for this post, and finally it's appeared. Thankfully. I love typing mumbo jumbo that fixes my computer.
jaadatepe is offline   Reply With Quote
Old November 30th, 2007   #4
asaturn
5 Cups of Ubuntu
 
Join Date: Mar 2007
Location: Outer Space
Beans: 40
Ubuntu 9.10 Karmic Koala
Send a message via AIM to asaturn
Re: Restart sound?

the built-in torrent client on 7.10 seems to always require me to kill them before I can get my sound back. thanks for the tip.
asaturn is offline   Reply With Quote
Old December 17th, 2007   #5
dror
First Cup of Ubuntu
 
Join Date: Jan 2007
Beans: 2
Re: Restart sound?

I tried all of the above and nothing worked till I did
/etc/init.d/alsa-utils reset
One more thing to try.
dror is offline   Reply With Quote
Old December 28th, 2007   #6
har5ha
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 3
Re: Restart sound?

Quote:
Originally Posted by tigerstripedcat View Post
I've always wondered this--you should only have to restart linux if you change the kernel!--and I think I found out how:

do:

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

But sometimes this won't work if something is really holding on to the sound so do:

name@comp:~$ lsof | grep pcm
sh 5079 name 70u CHR 116,6 13639 /dev/snd/pcmC0D0p
esd 5080 name 70u CHR 116,6 13639 /dev/snd/pcmC0D0p

to find the process id and then kill it and restart:

name@comp:~$ kill -9 5079
name@comp:~$ kill -9 5080
name@comp:~$ lsof | grep pcm
sudo /etc/init.d/alsa-utils restart

and hopefully that will work.
Thanks !!
har5ha is offline   Reply With Quote
Old February 18th, 2008   #7
strange_cathect
A Carafe of Ubuntu
 
strange_cathect's Avatar
 
Join Date: Jan 2007
Location: USA
Beans: 140
Ubuntu 9.10 Karmic Koala
Re: Restart sound?

I can confirm that the disappearing sound is related to the use of torrent download. Has this been submitted as a bug?
strange_cathect is offline   Reply With Quote
Old February 21st, 2008   #8
otree013
First Cup of Ubuntu
 
Join Date: Dec 2007
Location: New Zealand
Beans: 5
Ubuntu 7.10 Gutsy Gibbon
Re: Restart sound?

Hi, I have the same problem of sound cutting out unexpectedly but none of the above seem to work. Does anyone have any other suggestions?
otree013 is offline   Reply With Quote
Old February 21st, 2008   #9
socceroos
Just Give Me the Beans!
 
Join Date: Mar 2006
Location: Australia
Beans: 52
Ubuntu 9.04 Jaunty Jackalope
Re: Restart sound?

Apparently we'll have much better sound management in Ubuntu 8.04.

Hopefully this will rid us of all of these problems.
socceroos is offline   Reply With Quote
Old March 28th, 2008   #10
alainjackson
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 4
Re: Restart sound?

My problem is similar but different. I've got a dual boot Ubuntu/Windows system on an IBM laptop. If sound is working in Ubuntu it keeps working ok. The problem is if I boot into windows on my IBM laptop. If I hit the hardware mute key the sound goes off. Next time I boot into Ubuntu I can't get the sound to come back on. The mute and volume keys work in that they bring up the mute and volume dialogs in Ubuntu but no sound comes out.

I've tried all the suggestions in this thread - restarting and resetting alsa and searching for processes hogging the sound card but none of that works. The only way to get sound back is to reboot into windows, un-mute the sound and come back to Ubuntu.

I am guessing here, but it's as if when I press the mute key in windows it's going in at some hardware level below what Ubuntu is working with.

Any clues how to get sound back on without rebooting into windows?

Cheers!
alainjackson is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:24 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry