[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Who owns /dev/dsp?



On Mon, Aug 11, 2003 at 12:41:52AM +0100, Antony Gelberg wrote:
> On Sun, Aug 10, 2003 at 04:24:48PM -0700, Ross Boylan wrote:
> > On Sun, Aug 10, 2003 at 10:40:05PM +0100, Antony Gelberg wrote:
> > > On Sun, Aug 10, 2003 at 05:21:40PM -0400, Nyc0n wrote:
> > > >> From: Ross Boylan [mailto:RossBoylan@stanfordalumni.org] 
> > > >> Sent: Sunday, August 10, 2003 4:13 PM
> > > >> To: debian-user@lists.debian.org
> > > >> Cc: Ross Boylan
> > > >> Subject: Who owns /dev/dsp?
> > > >> 
> > > >> I can't get sound; KDE, for example, complains that /dev/dsp can't be
> > > >> opened because the device or resource is busy.
> > > >> 
> > > >> I've tried lsof, but no one seems to be using it.  How do I find what
> > > >> has grabbed /dev/dsp (symlink to /dev/dsp0)?
> > > >> 
> > > >> Or is something else entirely the problem? lsmod seems to show my
> > > >> usual complement of sound drivers.  (Sound was working).
> > > >> 
> > > > Just do a chmod 777 on /dev/dsp and it should start working it's a
> > > > permission problem, that got mine going....
> > > > 
> > > 
> > > I think a better solution is to add your user id to the audio group, if
> > > it isn't already.
> > > 
> > > A
> > > 
> > > 
> > My user id is in audio, and  sound was working in the past.  So it
> > seems something has grabbed it.
> > 
> 
> You can use lsof to see what processes are using the device, e.g.
> 
> antgel $ sudo lsof /dev/dsp 
> COMMAND  PID   USER   FD   TYPE DEVICE SIZE    NODE NAME
> esd     1026 antgel    5w   CHR   14,3      2343954 /dev/dsp0
> antgel $ 
> 
> A
> 

I have a partial answer: I was running two virtual consoles (vt7 and
vt8) and my "secondary" one on vt8 had the sound.

That seems kind of OK, but I don't know why lsof didn't show something
hanging onto /dev/dsp.



Reply to: