I just installed openSUSE 11.0 on this computer, which formerly had a fully-audio-functional installation of Ubuntu 8.04. I switched because I was having graphics issues. Now, the graphics are perfect, but the audio is not working (naturally…).
I found the SDB:AudioTroubleshooting page, and went through some of the steps. I got down to the part about testing the sound in YAST, and found that I could get the test sound to work when I tried audio device 1 (I can’t remember the name but I think it’s in the code I’m posting here). However, whenever I try Amarok, Firefox flash media, anything else other than the test tone, I get nothing.
Any ideas? I’m new to openSUSE so I’m a little unfamiliar with how things work, but in general I can work a command line if I get instructions. I’m still fumbling with the KDE interface too but I can manage. Any help would be greatly appreciated!
One other thing of note: I noticed when I was testing the various soundcards with the test tone that whatever card I had set as card 0 would not work; it had to be at least sound card 1. I did not try sound card 2, because that’s my recording interface which I don’t have anything connected to, and I haven’t tested yet. I figure I’ll fix one thing before I start another…
I fixed it, somehow! I’m not sure what I did when I was working with the settings earlier, but I restarted the computer and it all works. The only thing is the soundcard defaults to about 66% volume, which is too low for me as I have the computer hooked up to a home stereo via the headphone output. I turned it up, and it was much better. Apparently the sound settings don’t apply until after a restart…
Rebooting the computer helps, even a simple logout. But your troubles will be back. What happens is that from time to time some application that requires alsa does not release it properly (at least that is what I think is happening).
Here are things that I do:
In some applications (e.g., VLC palyer), I had to change the audio output to OSS.
Sometimes, it helps to run /usr/sbin/alsa-init as a root
Sometimes, I have to logout. I tried to remove pulse, as pointed in the link provided here:
Well, if that happens, what is useful is to determine what that app might be, and then kill the badly behaved process. To determine the app/process that is using sound, simply copy and paste into a konsole/xterm (I think with root permissions, I’m not at a linux PC so I can not confirm):
lsof /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*
Identify the offending process, and take action. The “kill -9 PID” command works, and before typing “kill -9 PID”, one can first type “ps -A” to find the running process PID. Or simply press <CTRL><ESC> (under KDE) to see what process are running, with the appropriate option to kill errant process.
It also helps (when sound is working properly) to run that line a few times, so that one has an idea what the baseline of a functional sound system looks like.
Another way to restart one’s sound (if necessary) is to type: