How do I find and kill whatever is using my sound card
Sometimes when I'm not running anything and I try to listen to music I get an error saying the sound device is already in use;
How do I find and/or kill it / everything that is using the sound card? Thanks. Gnome on Debian Etch |
lsof /dev/dsp usually can help. :) But most probably, it's artsd. Are you using KDE?
|
Using gnome
I don't think its artsd and lsof /dev/dsp does nothing :( |
Need help still
|
lsof |grep dsp
|
Well, another suggestion
lsof /dev/snd/* Does it return anything? |
Code:
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME |
Look at the output of pstree to see who spawned this mixer_app...
|
Code:
init─┬─NetworkManager───{NetworkManager} |
Do these commands (lsof, lspci) locate all the lines using /dev/dsp OR /dev/snd OR whatever? I guess, some items like vlc, gnome-volume-manager are missed. You can do one thing: just goto Applications->System Tools->System Monitor. Click on Processes. You will see some processes like gnome-volume manager, vlc etc. if at all you are running. You can kill them. Also, you have to enable the command column in Processes tab before viewing!
|
Yeah. It's the mixer_applet2 probably created by your GNOME sesion. You can try to turn it off or kill, but it's better to try to configure GNOME to share, if it's possible. I don't have GNOME, so I don't know...
|
I killed mixer_applet2 and gnome-volume-manager but it still doesn't work. These are the processes that are still running:
bash bash bluetooth-applet bonobo-activation-server clock-applet dbus-daemon dbus-launch explorer.exe firebox-bin gconfd-2 gnome-cups-icon gnome-keyring-daemon gnome-panel gnome-power-manager gnome-pty-helper gnome-screensaver gnome-settings-daemon gnome-system-monitor gnome-terminal gnome-vfs-daemon mapping-daemon metacity nautilus nm-applet notification-area-applet ssh-agent update-notifier vino-session wineserver wnck-applet x-session-manager |
What is your objective, I mean, why are you trying this? And yeah, among these processes, which one is using your sound device? You know, then you will have to kill almost all processes! Like, even Nautilus uses your sound device when you enable system sounds. So, why would you want to kill them? I do not understand :confused:
|
So I can listen to music? :/
It just tells me my sound device is already in use. |
Is it the problem even after restarting? Try going here: (I am actually on Fedora, but have just flicked Debian!) System->(Preferences OR Administration)->Sessions. Here, goto startup tab. You can try disabling things that use your sound device (you can make out from their names) at the start up. And then see if you still have that prob. But, without disabling these, if you can get this working on a restart, better go for it!
|
All times are GMT -5. The time now is 12:15 PM. |