Re: [expert] mpg123 - device busy
On 10 Jan, duane voth wrote: > Laurent Duperval wrote: > >> Use lsof. > > You mean: > ># lsof /dev/dsp > > pretty cool, much easier. > Shades of AIX? > Dunno, I haven't used AIX in close to 10 years. I jsut know lsof is the best tool for this. L -- MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK Laurent Duperval "Montreal winters are an intelligence test, Netergy Networks - Java Centerand we who are here have failed it." Phone: (514) 282-8484 ext. 228 -Doug Camilli mailto:[EMAIL PROTECTED] Penguin Power!
Re: [expert] mpg123 - device busy
Laurent Duperval wrote: > Use lsof. You mean: # lsof /dev/dsp pretty cool, much easier. Shades of AIX? duane
Re: [expert] mpg123 - device busy
Chris wrote: > How do I check if a program is hogging /dev/dsp? Aside from just checking > if xmms plays or not. Humm, good question. I just tried this: ls -l /proc/*/fd | egrep 'dsp|fd:' It lists all running processes but also lists the ones that have /dev/dsp open: ... /proc/26014/fd: /proc/26019/fd: /proc/26039/fd: /proc/26040/fd: /proc/26050/fd: l-wx--1 duanev duanev 64 Jan 10 13:53 10 -> /dev/dsp /proc/26051/fd: l-wx--1 duanev duanev 64 Jan 10 13:53 10 -> /dev/dsp ... Pids 26050 and 26051 both have the device open. From here a 'ps' listing will match the pid to the application name/cmdline. # ps ax | grep 260 ... 26013 pts/2S 0:00 java_vm 26014 pts/2S 0:00 java_vm 26019 pts/2S 0:00 /usr/local/netscape/mozilla-bin 26039 pts/2S 0:00 /usr/local/netscape/mozilla-bin 26040 pts/2S 0:00 /usr/local/netscape/mozilla-bin 26050 pts/1S 0:00 xmms 26051 pts/1S 0:00 xmms ... duane
Re: Re[2]: [expert] mpg123 - device busy
On Tue, 9 Jan 2001, Rusty Carruth wrote: > Chris <[EMAIL PROTECTED]> wrote: > > How do I check if a program is hogging /dev/dsp? Aside from just checking > > if xmms plays or not. > > Try LSOF (list open files), it might do the trick: > > ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ (13533 hits) > > (and I'd sure like to know if it does! so a status on that would > be cool) Thanks, I'll try it after work and let everyone know how it goes. -- Chris and Yoshiko Spackman email: [EMAIL PROTECTED] (English) [EMAIL PROTECTED] (Japanese) web site: www.openhistory.org gratuitous quote: "I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered. My life is my own." -The Prisoner
Re: [expert] mpg123 - device busy
On Tuesday 09 January 2001 04:08 am, you wrote: > On Mon, 8 Jan 2001, Laurent Duperval wrote: > > On 8 Jan, Chris wrote: > > > I have a cron wake up call set for each morning, monday to friday, > > > using mpg123. Friday it worked just fine. Then this morning (monday), > > > there was no wake up call. Log shows an error from mpg123 - audio: > > > device or resource busy. I have no idea what could be the source of > > > this problem. Xmms and record both work fine, and anyhow mpg123 worked > > > last week. > > > > > > Anyone have any ideas on what could be the cause or (almost as good) > > > any solutions? > > > > > > yoroshiku > > > > Possibly that you have a flash animation or realaudio running or some > > other type of process that uses the sound card. > > > > L > > No, nothing is using the card. At least nothing that shows up with > 'ps -aux'. Tried it with XMMS on (not playing) and closed down, but no go > either way. I tried restarting the xserver, thinking that would kill off > any rogue process x processes (like realplayer, etc) that might be > running. Still no luck. Also, over the weekend I didn't use realplayer or > anything sound related except xmms. > > yoroshiku Try unchecking the box that says to run the sound server on boot. That frees the resource, I think.
Re: Re[3]: [expert] mpg123 - device busy
On 9 Jan, Rusty Carruth wrote: > Rusty Carruth <[EMAIL PROTECTED]> wrote: >> Try LSOF (list open files), it might do the trick: > > Wow! I sent this, what, over 3.5 hours ago? Sorry I > duplicated what someone else just said, but my prescience > function is not working... > > rc ;-) > [Possible duplicate] I sent my response yesterday. So this list seems to have duplicates *and* slow delivery. :-( L -- MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK Laurent Duperval "Montreal winters are an intelligence test, Netergy Networks - Java Centerand we who are here have failed it." Phone: (514) 282-8484 ext. 228 -Doug Camilli mailto:[EMAIL PROTECTED] Penguin Power!
Re: Re[3]: [expert] mpg123 - device busy
On 9 Jan, Rusty Carruth wrote: > Rusty Carruth <[EMAIL PROTECTED]> wrote: >> Try LSOF (list open files), it might do the trick: > > Wow! I sent this, what, over 3.5 hours ago? Sorry I > duplicated what someone else just said, but my prescience > function is not working... > > rc ;-) > I sent mine yesterday and I only saw it show up today. So not only do we get dups but we have long delays too. :-( L -- MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK Laurent Duperval "Montreal winters are an intelligence test, Netergy Networks - Java Centerand we who are here have failed it." Phone: (514) 282-8484 ext. 228 -Doug Camilli mailto:[EMAIL PROTECTED] Penguin Power!
Re[3]: [expert] mpg123 - device busy
Rusty Carruth <[EMAIL PROTECTED]> wrote: > Try LSOF (list open files), it might do the trick: Wow! I sent this, what, over 3.5 hours ago? Sorry I duplicated what someone else just said, but my prescience function is not working... rc ;-) Rusty Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED] Voice: (480) 345-3621 SnailMail: Schlumberger ATE FAX: (480) 345-8793 7855 S. River Parkway, Suite 116 Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
Re[2]: [expert] mpg123 - device busy
Chris <[EMAIL PROTECTED]> wrote: > How do I check if a program is hogging /dev/dsp? Aside from just checking > if xmms plays or not. Try LSOF (list open files), it might do the trick: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ (13533 hits) (and I'd sure like to know if it does! so a status on that would be cool) rc Rusty Carruth Email: [EMAIL PROTECTED] or [EMAIL PROTECTED] Voice: (480) 345-3621 SnailMail: Schlumberger ATE FAX: (480) 345-8793 7855 S. River Parkway, Suite 116 Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
Re: [expert] mpg123 - device busy
On 9 Jan, Chris wrote: > On Mon, 8 Jan 2001, duane voth wrote: > >> I can't tell if this is the module load "device or resource busy" or if >> it is an application complaining. If it is an app conflict, was RealPlayer >> left running? I know that one hogs and hangs onto the sound device. >> xmms may do this too. Try combinations of apps to see which ones hog >> /dev/dsp. >> >> duane > > I don't think it is a module load problem since I have no other sound > problems. I haven't used Realplayer recently, so no, that isn't it. > > How do I check if a program is hogging /dev/dsp? Aside from just checking > if xmms plays or not. > > Use lsof. L -- MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK Laurent Duperval "Montreal winters are an intelligence test, Netergy Networks - Java Centerand we who are here have failed it." Phone: (514) 282-8484 ext. 228 -Doug Camilli mailto:[EMAIL PROTECTED] Penguin Power!
Re: [expert] mpg123 - device busy
On Mon, 8 Jan 2001, duane voth wrote: > I can't tell if this is the module load "device or resource busy" or if > it is an application complaining. If it is an app conflict, was RealPlayer > left running? I know that one hogs and hangs onto the sound device. > xmms may do this too. Try combinations of apps to see which ones hog > /dev/dsp. > > duane I don't think it is a module load problem since I have no other sound problems. I haven't used Realplayer recently, so no, that isn't it. How do I check if a program is hogging /dev/dsp? Aside from just checking if xmms plays or not. -- Chris Spackman email: [EMAIL PROTECTED] (English) www.openhistory.org gratuitous quote: "I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered. My life is my own." -The Prisoner
Re: [expert] mpg123 - device busy
On Mon, 8 Jan 2001, Laurent Duperval wrote: > On 8 Jan, Chris wrote: > > I have a cron wake up call set for each morning, monday to friday, using > > mpg123. Friday it worked just fine. Then this morning (monday), there was > > no wake up call. Log shows an error from mpg123 - audio: device or > > resource busy. I have no idea what could be the source of this problem. > > Xmms and record both work fine, and anyhow mpg123 worked last week. > > > > Anyone have any ideas on what could be the cause or (almost as good) any > > solutions? > > > > yoroshiku > > > > Possibly that you have a flash animation or realaudio running or some other > type of process that uses the sound card. > > L No, nothing is using the card. At least nothing that shows up with 'ps -aux'. Tried it with XMMS on (not playing) and closed down, but no go either way. I tried restarting the xserver, thinking that would kill off any rogue process x processes (like realplayer, etc) that might be running. Still no luck. Also, over the weekend I didn't use realplayer or anything sound related except xmms. yoroshiku -- Chris and Yoshiko Spackman email: [EMAIL PROTECTED] (English) [EMAIL PROTECTED] (Japanese) web site: www.openhistory.org gratuitous quote: "I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered. My life is my own." -The Prisoner
Re: [expert] mpg123 - device busy
Chris wrote: > I have a cron wake up call set for each morning, monday to friday, using > mpg123. Friday it worked just fine. Then this morning (monday), there was > no wake up call. Log shows an error from mpg123 - audio: device or > resource busy. I have no idea what could be the source of this problem. > Xmms and record both work fine, and anyhow mpg123 worked last week. > > Anyone have any ideas on what could be the cause or (almost as good) any > solutions? I can't tell if this is the module load "device or resource busy" or if it is an application complaining. If it is an app conflict, was RealPlayer left running? I know that one hogs and hangs onto the sound device. xmms may do this too. Try combinations of apps to see which ones hog /dev/dsp. duane
Re: [expert] mpg123 - device busy
On 8 Jan, Chris wrote: > I have a cron wake up call set for each morning, monday to friday, using > mpg123. Friday it worked just fine. Then this morning (monday), there was > no wake up call. Log shows an error from mpg123 - audio: device or > resource busy. I have no idea what could be the source of this problem. > Xmms and record both work fine, and anyhow mpg123 worked last week. > > Anyone have any ideas on what could be the cause or (almost as good) any > solutions? > > yoroshiku > Possibly that you have a flash animation or realaudio running or some other type of process that uses the sound card. L -- MY EMAIL ADDRESS HAS CHANGED --> UPDATE YOUR ADDRESSBOOK Laurent Duperval "Montreal winters are an intelligence test, Netergy Networks - Java Centerand we who are here have failed it." Phone: (514) 282-8484 ext. 228 -Doug Camilli mailto:[EMAIL PROTECTED] Penguin Power!
[expert] mpg123 - device busy
I have a cron wake up call set for each morning, monday to friday, using mpg123. Friday it worked just fine. Then this morning (monday), there was no wake up call. Log shows an error from mpg123 - audio: device or resource busy. I have no idea what could be the source of this problem. Xmms and record both work fine, and anyhow mpg123 worked last week. Anyone have any ideas on what could be the cause or (almost as good) any solutions? yoroshiku -- Chris Spackman [EMAIL PROTECTED] www.openhistory.org gratuitous quote: "I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered. My life is my own." -The Prisoner