Re: How to tell what's using sound?



On Wed, 12 Dec 2007, Michael R. Head wrote:


On Tue, 2007-12-11 at 23:18 -0500, Scott Ehrlich wrote:
I found the audio problem I am having is not with audacity, but is
gutsy-wide.

Next to running ps auwx, what other ways can I tell what is using the
sound driver? If I can figure at least that, I can try to disable/remove
it.

lsof is a program that will LiSt Open Files. It will tell you which
programs and PIDs have which files/paths open. Since everything is
pretty much a file, any program using the sound device (for playback,
recording or mixing) will be listed by lsof. Just grep for /dev/snd:

sudo lsof | grep /dev/snd

Using sudo will allow you to see more info.

It revealed pulseaudio. Once removed, audio capability was restored.

I've seen lsof, but never really used it. Now, I'll remember it!

Thanks!

Scott



Another option is to use System/Administration/System Monitor. It can
also list which processes have which files opens. Just launch the system
monitor and go to Monitor/Search for Open Files.


mike

Thanks.

Scott

--
Michael R. Head <burner@xxxxxxxxxxxxxxxxxxx>
http://picasaweb.google.com/demiri.head.wedding


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: How to tell whats using sound?
    ... lsof is a program that will LiSt Open Files. ... Another option is to use System/Administration/System Monitor. ... monitor and go to Monitor/Search for Open Files. ...
    (Ubuntu)
  • Re: lsof: cant figure out how to show open files
    ... Probably the issue with jfs2. ... Subject: lsof: can't figure out how to show open files ... New to AIX? ...
    (AIX-L)
  • Re: Too Many Open Files On System
    ... > that it was over 100 nmbd samba files, discovered through use of ps, ... > I never did discover what spawned all the nmbd processes. ... > the source of the too many open files errors I believe. ... Look at the program lsof. ...
    (Debian-User)
  • Re: lsof: cant figure out how to show open files
    ... Subject: lsof: can't figure out how to show open files ... New to AIX? ... N.B. Unsolicited email from vendors will not be appreciated. ...
    (AIX-L)
  • output of du and df differ
    ... looks each file in directories and adds their sizes, ... programs running and try to restart them. ... You can try to look at lsof (lsof = LiSt of Open Files) output (lsof can be ...
    (SunManagers)