Re: how to get sound back?

2009-09-30 Thread Hugh Lawson
Marc Shapiro mshapiro...@yahoo.com writes:

 Since, in my case, it is almost alway Firefox that has caused the
 problem, I run the following script.  

Thanks, Marc. I copied that, and it runs.  Thanks even more for taking
the trouble to explain.

Hugh


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-30 Thread Marc Shapiro

Hugh Lawson wrote:

Marc Shapiro mshapiro...@yahoo.com writes:


Since, in my case, it is almost alway Firefox that has caused the
problem, I run the following script.  


Thanks, Marc. I copied that, and it runs.  Thanks even more for taking
the trouble to explain.


I'm glad that I could help.  This just means that my problems helped 
someone else.


--
Marc Shapiro
mshapiro...@yahoo.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: how to get sound back?

2009-09-30 Thread Kelly Clowers
On Wed, Sep 30, 2009 at 07:27, Marc Shapiro mshapiro...@yahoo.com wrote:
 Hugh Lawson wrote:

 Marc Shapiro mshapiro...@yahoo.com writes:

 Since, in my case, it is almost alway Firefox that has caused the
 problem, I run the following script.

 Thanks, Marc. I copied that, and it runs.  Thanks even more for taking
 the trouble to explain.

 I'm glad that I could help.  This just means that my problems helped someone
 else.


It's odd, I used to have that problem, but not in a very long time - back in the
FF 2.0/Flash 9/pre-PulseAudio days is when it used to happen.


Cheers,
Kelly Clowers


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



how to get sound back?

2009-09-29 Thread Hugh Lawson

Debian lenny, alsa

dpkg -l | grep alsa

ii  alsa-base1.0.17.dfsg-4  ALSA driver configuration files
ii  alsa-utils   1.0.16-2   ALSA utilities
ii  gstreamer0.10-alsa   0.10.19-2  GStreamer plugin for ALSA
ii  libsdl1.2debian-alsa 1.2.13-2   


Yesterday, after running some .avi files with mplayer, my system lost
sound. Rebooting brought the sound back.

How could I have restarted sound without rebooting?


Hugh


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-29 Thread Neal Hogan
On Tue, Sep 29, 2009 at 8:10 AM, Hugh Lawson hlaw...@triad.rr.com wrote:

 Debian lenny, alsa

 dpkg -l | grep alsa

 ii  alsa-base    1.0.17.dfsg-4      ALSA driver configuration files
 ii  alsa-utils   1.0.16-2           ALSA utilities
 ii  gstreamer0.10-alsa   0.10.19-2  GStreamer plugin for ALSA
 ii  libsdl1.2debian-alsa 1.2.13-2


 Yesterday, after running some .avi files with mplayer, my system lost
 sound. Rebooting brought the sound back.

 How could I have restarted sound without rebooting?

I don't know why you're losing sound, but I'm curious. After you lose
sound, what do you see when you run 'alsamixer -V all'?

Perhaps there is something in alsamixer's manpage.



 Hugh


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-29 Thread Marc Shapiro

Hugh Lawson wrote:

Debian lenny, alsa

dpkg -l | grep alsa

ii  alsa-base1.0.17.dfsg-4  ALSA driver configuration files
ii  alsa-utils   1.0.16-2   ALSA utilities
ii  gstreamer0.10-alsa   0.10.19-2  GStreamer plugin for ALSA
ii  libsdl1.2debian-alsa 1.2.13-2   



Yesterday, after running some .avi files with mplayer, my system lost
sound. Rebooting brought the sound back.

How could I have restarted sound without rebooting?


My system occasionally loses sound.  In my case, it is invariably a 
runaway firefox process that was trying to play flash and something went 
wrong.  I find the offending process (this is normally an extra process, 
separate from any currently active firefox process) and kill it and that 
will generally bring sound back without any more drastic actions.


--
Marc Shapiro
mshapiro...@yahoo.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: how to get sound back?

2009-09-29 Thread gn643202

Hugh Lawson wrote:

Debian lenny, alsa

dpkg -l | grep alsa

ii  alsa-base1.0.17.dfsg-4  ALSA driver configuration files
ii  alsa-utils   1.0.16-2   ALSA utilities
ii  gstreamer0.10-alsa   0.10.19-2  GStreamer plugin for ALSA
ii  libsdl1.2debian-alsa 1.2.13-2   



Yesterday, after running some .avi files with mplayer, my system lost
sound. Rebooting brought the sound back.

How could I have restarted sound without rebooting?



   I just got my sound back after 2 months without it.   This has 
happened before.

   THE PROBLEM WAS THAT THE JACKS WERE NOT PLUGGED IN ALL THE WAY.
   Yes I know that was dumb of me.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: how to get sound back?

2009-09-29 Thread Hugh Lawson
Neal Hogan nealho...@gmail.com writes:

 On Tue, Sep 29, 2009 at 8:10 AM, Hugh Lawson hlaw...@triad.rr.com wrote:


 Yesterday, after running some .avi files with mplayer, my system lost
 sound. Rebooting brought the sound back.

 After you lose
 sound, what do you see when you run 'alsamixer -V all'?

 Perhaps there is something in alsamixer's manpage.


Hugh again: I'll have to try that later, because sound is ok now.

hl


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-29 Thread Hugh Lawson
Marc Shapiro mshapiro...@yahoo.com writes:

 My system occasionally loses sound.  In my case, it is invariably a
 runaway firefox process that was trying to play flash and something
 went wrong.  I find the offending process (this is normally an extra
 process, separate from any currently active firefox process) and kill
 it and that will generally bring sound back without any more drastic
 actions.


That could have been the problem.  

Would you mind explaining a little more how you isolate the offending
process?  Or post a reference URL that covers this issue?

HL





-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-29 Thread Neal Hogan
On Tue, Sep 29, 2009 at 2:33 PM, Hugh Lawson hlaw...@triad.rr.com wrote:
 Neal Hogan nealho...@gmail.com writes:

 On Tue, Sep 29, 2009 at 8:10 AM, Hugh Lawson hlaw...@triad.rr.com wrote:


 Yesterday, after running some .avi files with mplayer, my system lost
 sound. Rebooting brought the sound back.

 After you lose
 sound, what do you see when you run 'alsamixer -V all'?

 Perhaps there is something in alsamixer's manpage.

As someone else suggested, a competing app may cut sound. That is,
there may be another app that is trying to use mplayer as well.

Perhaps you can check what you have running when it it happens again.

#ps ax


 Hugh again: I'll have to try that later, because sound is ok now.

 hl


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-29 Thread Florian Kulzer
On Tue, Sep 29, 2009 at 15:40:53 -0400, Hugh Lawson wrote:
 Marc Shapiro writes:
 
  My system occasionally loses sound.  In my case, it is invariably a
  runaway firefox process that was trying to play flash and something
  went wrong.  I find the offending process (this is normally an extra
  process, separate from any currently active firefox process) and kill
  it and that will generally bring sound back without any more drastic
  actions.
 
 
 That could have been the problem.  
 
 Would you mind explaining a little more how you isolate the offending
 process?  Or post a reference URL that covers this issue?

lsof $(find /dev/ -group audio)

will show all processes with open device nodes that belong to the audio
group. (Run this command as root to ensure a complete list.) That should
be sufficient to find the culprit.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: how to get sound back?

2009-09-29 Thread Marc Shapiro

Hugh Lawson wrote:

Marc Shapiro mshapiro...@yahoo.com writes:


My system occasionally loses sound.  In my case, it is invariably a
runaway firefox process that was trying to play flash and something
went wrong.  I find the offending process (this is normally an extra
process, separate from any currently active firefox process) and kill
it and that will generally bring sound back without any more drastic
actions.



That could have been the problem.  


Would you mind explaining a little more how you isolate the offending
process?  Or post a reference URL that covers this issue?


Since, in my case, it is almost alway Firefox that has caused the 
problem, I run the following script.  All it does is parse the output of 
'ps' and lists all Firefox processes that it finds.  Usually there 
should be three: one each for myself, my wife and my daughter.  Anything 
beyond that is suspect.  If you should only have a single instance of 
Firefox then shut it down and run this script.  If it finds anything 
then it probably needs to be killed.  I also use this script to find 
which of the three Firefox processes is hogging all of the memory, or 
CPU time when the system grinds to a standstill.



#!/usr/bin/perl

check_ps;

exit();

# Subroutines #

sub check_ps {
@message=`ps -eo pid,uid,%cpu,%mem,comm`;
$message_text='';

foreach (@message) {
($pid, $uid, $cpu, $mem, $comm) = split(' ', $_, 5);
chomp $comm;
if ($uid = 1000) {
if ($comm eq 'firefox-bin') {
print $_;
}
}

}

}


--
Marc Shapiro
mshapiro...@yahoo.com



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org