LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2008, 12:26 AM   #1
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
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
 
Old 01-10-2008, 12:28 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
lsof /dev/dsp usually can help. But most probably, it's artsd. Are you using KDE?
 
Old 01-10-2008, 12:39 AM   #3
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Using gnome

I don't think its artsd

and lsof /dev/dsp does nothing

Last edited by Virtuality; 01-10-2008 at 12:40 AM.
 
Old 01-11-2008, 09:41 PM   #4
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Need help still
 
Old 01-11-2008, 10:10 PM   #5
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
lsof |grep dsp
 
Old 01-11-2008, 10:19 PM   #6
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Well, another suggestion

lsof /dev/snd/*

Does it return anything?
 
Old 01-11-2008, 10:28 PM   #7
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Code:
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
mixer_app 3868 main   40u   CHR 116,32      7388 /dev/snd/controlC1
 
Old 01-11-2008, 10:36 PM   #8
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Look at the output of pstree to see who spawned this mixer_app...
 
Old 01-11-2008, 10:42 PM   #9
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Code:
init─┬─NetworkManager───{NetworkManager}
     ├─NetworkManagerD
     ├─WoW.exe─┬─explorer.exe───{explorer.exe}
     │         └─5*[{WoW.exe}]
     ├─acpid
     ├─atd
     ├─bluetooth-apple
     ├─bonobo-activati
     ├─clock-applet
     ├─cron
     ├─cupsd
     ├─2*[dbus-daemon]
     ├─dbus-launch
     ├─dhcdbd───dhclient
     ├─events/0
     ├─events/1
     ├─exim4
     ├─firefox-bin───13*[{firefox-bin}]
     ├─firestarter───{firestarter}
     ├─2*[gconfd-2]
     ├─gdm───gdm─┬─Xorg
     │           └─x-session-manag───ssh-agent
     ├─6*[getty]
     ├─gnome-cups-icon
     ├─gnome-keyring-d
     ├─gnome-panel───{gnome-panel}
     ├─gnome-power-man
     ├─gnome-screensav
     ├─gnome-settings-───{gnome-settings-}
     ├─gnome-terminal─┬─bash───su───bash───azureus───java───84*[{java}]
     │                ├─bash───su───bash───pstree
     │                ├─gnome-pty-helpe
     │                └─{gnome-terminal}
     ├─gnome-vfs-daemo───{gnome-vfs-daemo}
     ├─gnome-volume-ma
     ├─hald───hald-runner─┬─hald-addon-acpi
     │                    ├─6*[hald-addon-keyb]
     │                    └─4*[hald-addon-stor]
     ├─inetd
     ├─khelper
     ├─kirqd
     ├─klogd
     ├─knodemgrd_0
     ├─ksoftirqd/0
     ├─ksoftirqd/1
     ├─kthread─┬─aio/0
     │         ├─aio/1
     │         ├─ata/0
     │         ├─ata/1
     │         ├─ata_aux
     │         ├─kacpid
     │         ├─kblockd/0
     │         ├─kblockd/1
     │         ├─khpsbpkt
     │         ├─khubd
     │         ├─kjournald
     │         ├─kmirrord
     │         ├─kpsmoused
     │         ├─kseriod
     │         ├─kswapd0
     │         ├─2*[pdflush]
     │         ├─scsi_eh_0
     │         ├─scsi_eh_1
     │         ├─scsi_eh_2
     │         ├─scsi_eh_3
     │         └─usb-storage
     ├─mapping-daemon
     ├─metacity
     ├─migration/0
     ├─migration/1
     ├─mixer_applet2
     ├─nautilus───{nautilus}
     ├─nm-applet
     ├─notification-ar
     ├─ntpd
     ├─portmap
     ├─rpc.statd
     ├─syslogd
     ├─udevd
     ├─update-notifier
     ├─vino-session
     ├─wineserver
     └─wnck-applet
 
Old 01-11-2008, 10:50 PM   #10
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
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!

Last edited by deepumnit; 01-11-2008 at 10:53 PM.
 
Old 01-11-2008, 10:50 PM   #11
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
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...
 
Old 01-11-2008, 11:04 PM   #12
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
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
 
Old 01-11-2008, 11:15 PM   #13
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
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
 
Old 01-11-2008, 11:20 PM   #14
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
So I can listen to music? :/

It just tells me my sound device is already in use.
 
Old 01-11-2008, 11:30 PM   #15
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
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!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mepis cannot find my sound card tim85706 Linux - Laptop and Netbook 2 06-13-2006 08:34 PM
Mepis cannot find my Sound card tim85706 Linux - Laptop and Netbook 1 06-13-2006 05:54 PM
No sound, cannot find card, please help! Slovak Slackware 1 11-13-2004 09:56 AM
How do I find out what sound card I have on this old laptop? SBing Linux - Laptop and Netbook 6 08-10-2004 04:47 PM
Can't find Sound Card - RH 9.0 W9RAN Linux - Software 5 05-03-2004 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration