Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2009-04-08 Thread hyperair
Revised to use suspend-source as well.
-- 
Chow Loong Jin


** Attachment added: "pulseaudio-202089.debdiff"
   http://launchpadlibrarian.net/25082014/pulseaudio-202089.debdiff

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2009-04-08 Thread hyperair
Actually, forget the previous patch. I just checked, and it doesn't work
unless you run pactl under the said user. This said patch includes a
more robust get_pulse_users() function.
-- 
Chow Loong Jin


** Attachment added: "pulseaudio-202089.debdiff"
   http://launchpadlibrarian.net/25081899/pulseaudio-202089.debdiff

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2009-04-08 Thread hyperair
Here's a debdiff for Jaunty's package.
-- 
Chow Loong Jin


** Attachment added: "pulseaudio-202089.debdiff"
   http://launchpadlibrarian.net/25081529/pulseaudio-202089.debdiff

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2009-04-08 Thread hyperair
On Wed, 2009-04-08 at 22:02 +, Owen Williams wrote:
> On a Dell 1420n of mine, recently upgraded to Intrepid, the default
> pulseaudio suspend/resume script doesn't work.  If I use that script, I
> have to do the "pasuspender echo" trick to get sound back.
> 
> However, the script in this message does work:
> http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/bef8342095751302
> 
> What is the difference between these scripts that causes the second one
> to work?
> 

The reason is that pacmd is flaky. Sometimes it works, sometimes it
doesn't work. I'm reopening this bug so that the fix shown in the link
you've provided can be used instead.

  affects ubuntu/pulseaudio
  status confirmed
-- 
Chow Loong Jin


** Changed in: pulseaudio (Ubuntu)
   Status: Fix Released => Confirmed

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2009-02-10 Thread zorblek
I'm pretty sure I was still experiencing this bug with the latest update,
but I can't check at the moment because a separate issue is preventing Gnome
from loading.

On Sun, Feb 8, 2009 at 8:24 AM, Nikolaj Sheller
wrote:

> I'm seeing this on Intrepid with kernel 2.6.27.11 on AMD 64 with
> pulseaudio 0.9.13-0ubuntu1~ppa2
>
> Just after resume:
> Feb  6 20:53:02 AppleCider pulseaudio[6415]: alsa-util.c: Got POLLERR from
> ALSA
> Feb  6 20:53:02 AppleCider pulseaudio[6415]: alsa-util.c: PCM state is
> SUSPENDED
> Feb  6 20:53:02 AppleCider pulseaudio[6415]: alsa-util.c: Got POLLERR from
> ALSA
> Feb  6 20:53:02 AppleCider pulseaudio[6415]: alsa-util.c: PCM state is
> RUNNING
> Feb  6 20:53:02 AppleCider pulseaudio[6415]: alsa-util.c: Got POLLERR from
> ALSA
> Feb  6 20:53:02 AppleCider pulseaudio[6415]: alsa-util.c: PCM state is
> RUNNING
> etc
>
> While this is happening the speaker emits a clicking or buzzing sound.
>
> --
> Pulseaudio is blocking normal sound after resume
> https://bugs.launchpad.net/bugs/202089
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in PulseAudio sound server: New
> Status in "gnome-power-manager" source package in Ubuntu: Invalid
> Status in "pulseaudio" source package in Ubuntu: Fix Released
> Status in gnome-power-manager in Ubuntu Intrepid: Invalid
> Status in pulseaudio in Ubuntu Intrepid: Fix Released
> Status in "gnome-power-manager" source package in Baltix: New
>
> Bug description:
> SRU information follows:
>
> Impact: A portion of users with a default or updated (intrepid-updates)
> Ubuntu 8.10 install experience inaudible audio from PulseAudio after
> resuming from suspend-to-ram.  This symptom is due to the PulseAudio daemon
> not having received proper notification to suspend clients and release the
> sound device(s).
>
> Resolution: Configure users' pulseaudio daemons to suspend prior to
> suspending to ram and to resume after resuming.  This sequence is
> accomplished via a pm-utils sleep hook.  The corresponding fixed version
> (0.9.13-2ubuntu3) is available in jaunty.
>
> SRU debdiff:
> http://launchpadlibrarian.net/20316781/pulseaudio_0.9.10-2ubuntu9.2.debdiff
>
> TEST CASE: Boot into a default or updated (intrepid-updates) Ubuntu 8.10
> install.  Suspend to ram, then resume.  Note the inaudible audio from
> PulseAudio.
>
> Regression potential: No regressions have been identified in production.
>
> Background information follows:
>
> Binary package hint: pulseaudio
>
> > aplay squish.au
> Sonando Audio Sparc 'squish.au' : Mu-Law, Ratio 8000 Hz, Mono
>
> [Suspend to Ram/Resume]
>
> > aplay squish.au
> ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave
> aplay: main:546: error al abrir audio: Dispositivo ó recurso ocupado
>
> Then you need to killall pulseaudio for apps that use pcm starts working
> again.
> (Question: How you can stop/start/restart pulseudio?  In Ubuntu
> /etc/init.d/pulseaudio script is disabled)
>
> If you need more information, please let me know.
>
> Thx.
>
> --
> Hardy Uptodate
> IBM Thinkpad X41 Tablet
> pulseaudio 0.9.9-1ubuntu2
>

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-12-19 Thread hyperair
On Fri, 2008-12-19 at 12:32 +, rbg wrote:
> elguta:
> > Have you tested youtube for example?
> > For me it works ok after suspend.
> 
> No sounds from youtube either, until I restart firefox.  I'm testing on a 
> lenovo thinkpad z61t with:
> 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition 
> Audio Controller (rev 02)
> 
> Did you have firefox open before suspending?
> 
I have Youtube playing sound before suspending, and upon resuming, the
sound continues. Using flashplugin-nonfree version 10.0.12.36ubuntu1.
-- 
Chow Loong Jin

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-12-17 Thread hyperair
On Wed, 2008-12-17 at 07:33 +, Martin Pitt wrote:
> Accepted into intrepid-proposed, please test and give feedback here.
> Please see https://wiki.ubuntu.com/Testing/EnableProposed for
> documentation how to enable and use -proposed. Thank you in advance!
> 
> ** Changed in: pulseaudio (Ubuntu Intrepid)
>Status: Confirmed => Fix Committed
> 
> ** Tags added: verification-needed
> 
I've tested the update, and can confirm that it works.
-- 
Chow Loong Jin

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-12-17 Thread Goswin
I'm following this bug having seen it on my Hardy install. Any chance this
fix makes it into Hardy as well?

2008/12/17 Martin Pitt 

> Accepted into intrepid-proposed, please test and give feedback here.
> Please see https://wiki.ubuntu.com/Testing/EnableProposed for
> documentation how to enable and use -proposed. Thank you in advance!
>
> ** Changed in: pulseaudio (Ubuntu Intrepid)
>Status: Confirmed => Fix Committed
>
> ** Tags added: verification-needed
>
> --
> Pulseaudio is blocking normal sound after resume
> https://bugs.launchpad.net/bugs/202089
> You received this bug notification because you are a direct subscriber
> of the bug.
>

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-12-10 Thread Daniel T Chen
On 12/10/2008 12:20 AM, zdzichu wrote:
> Interesting. Instead of fixing root cause (ALSA driver having problem
> with suspend/resume handler), you add workaround by restarting one
> application, and call it "fix".

Obviously there's a linux component, too, but fixing the drivers is much 
more invasive and not an appropriate task for an _already-released_ (and 
thus _frozen_ version).  Please recognise that the definition of a 
StableReleaseUpdate precludes invasive changes.

There is work in jaunty to fix the PM (including enabling many 
non-PM-enabled drivers) as part of the greater "improving PM in Ubuntu" 
spec.

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-12-10 Thread Jonathan Gittos
unsubscribe jonathangittos

On 10 Dec 2008, at 02:00, Launchpad Bug Tracker wrote:

> This bug was fixed in the package pulseaudio - 0.9.13-2ubuntu3
>
> ---
> pulseaudio (0.9.13-2ubuntu3) jaunty; urgency=low
>
>  * Add pm-utils sleep hook to suspend (and resume) users' pulseaudio
>daemons (LP: #202089). Based on a patch by
>Chow Loong Jin <[EMAIL PROTECTED]>.
>
> -- Daniel T Chen <[EMAIL PROTECTED]>   Mon, 08 Dec 2008 22:11:32  
> -0800
>
> ** Changed in: pulseaudio (Ubuntu)
>   Status: In Progress => Fix Released
>
> -- 
> Pulseaudio is blocking normal sound after resume
> https://bugs.launchpad.net/bugs/202089
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in PulseAudio sound server: New
> Status in “gnome-power-manager” source package in Ubuntu: Invalid
> Status in “pulseaudio” source package in Ubuntu: Fix Released
>
> Bug description:
> SRU information follows:
>
> Impact: A portion of users with a default or updated (intrepid- 
> proposed) Ubuntu 8.10 install experience inaudible audio from  
> PulseAudio after resuming from suspend-to-ram.
>
> Resolution: Configure users' pulseaudio daemons to suspend prior to  
> suspending to ram and to resume after resuming.  This sequence is  
> accomplished via a pm-utils sleep hook.
>
> SRU debdiff: 
> http://launchpadlibrarian.net/20316781/pulseaudio_0.9.10-2ubuntu9.2.debdiff
>
> TEST CASE: Boot into a default or updated (intrepid-proposed) Ubuntu  
> 8.10 install (e.g., desktop image).  Suspend to ram, then resume.   
> Note the inaudible audio from PulseAudio.
>
> Regression potential: No regressions have been identified in  
> production.
>
> Background information follows:
>
> Binary package hint: pulseaudio
>
>> aplay squish.au
> Sonando Audio Sparc 'squish.au' : Mu-Law, Ratio 8000 Hz, Mono
>
> [Suspend to Ram/Resume]
>
>> aplay squish.au
> ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave
> aplay: main:546: error al abrir audio: Dispositivo ó recurso ocupado
>
> Then you need to killall pulseaudio for apps that use pcm starts  
> working again.
> (Question: How you can stop/start/restart pulseudio?  In Ubuntu /etc/ 
> init.d/pulseaudio script is disabled)
>
> If you need more information, please let me know.
>
> Thx.
>
> --
> Hardy Uptodate
> IBM Thinkpad X41 Tablet
> pulseaudio 0.9.9-1ubuntu2

Jonathan Gittos
[EMAIL PROTECTED]
13 Milman Road
London
NW6 6EN

Home:   +44 (0)208 960 5976
Mobile: +44 (0)7785 117887

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-12-05 Thread hyperair
On Sat, 2008-12-06 at 05:15 +, mogwai wrote:
> Confirming.
> After resume from suspend I get no audio. Don't get any audio -- just won't 
> play -- no error messages.
> `pasuspender echo` gets everything up and going again.
> 
Then the fix I posted a few posts up should work for you.
-- 
Chow Loong Jin

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-11-08 Thread hyperair
On Sat, 2008-11-08 at 16:33 +, Id2ndR wrote:
> Thanks for your work hyperair ! It work for me.
> 
> I just noticed a mistake in you debdiff line 42 :
> +. "${PM_FUNCTIONS}
> which should be :
> +. ${PM_FUNCTIONS}
> 
Ah yes. You're right, but it should be '. "${PM_FUNCTIONS}"' Thanks
anyway. While looking through the debdiff again I noticed I put it into
the wrong place--/etc/pm/sleep.d instead of /usr/lib/pm-utils/sleep.d.
I've corrected that as well.

Here's an updated debdiff. 
-- 
Chow Loong Jin


** Attachment added: "pulseaudio_0.9.10-2ubuntu10.debdiff"
   http://launchpadlibrarian.net/19491894/pulseaudio_0.9.10-2ubuntu10.debdiff

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-11-07 Thread hyperair
On Sat, 2008-11-08 at 03:56 +, hyperair wrote:
> Adding the attached file to /etc/pm/sleep.d fixes this issue for me.
> Keep the file name intact. At least the number anyway.
> 
> The original workaround is this: After resuming, run pacmd, and execute
> the commands "suspend 0" and "suspend 1". That causes all sound to work
> again.
> 
> For now, can we include this into Ubuntu's PulseAudio package?
> 
> ** Attachment added: "01PulseAudio"
>http://launchpadlibrarian.net/19479374/01PulseAudio
> 
Here's a debdiff including this workaround into the pulseaudio package.
-- 
Chow Loong Jin


** Attachment added: "pulseaudio_0.9.10-2ubuntu10.debdiff"
   http://launchpadlibrarian.net/19479686/pulseaudio_0.9.10-2ubuntu10.debdiff

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-05-09 Thread Steinar Bang
> Steinar Bang <[EMAIL PROTECTED]>:

> I got flash audio working by going to
> System-> Preferences->Sound Preferences
> and switching all playback to "PulseAudio Sound Server".

> But now it's stopped working again.

No attempts at
 /etc/init.d/pulseaudio stop
 /etc/init.d/pulseaudio start
made any difference.

But there were some pulsaudio processes running under my own user, so I
did 
 killall pulseaudio
and then sound started working on eg. youtube movies again.

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 202089] Re: Pulseaudio is blocking normal sound after resume

2008-05-08 Thread Steinar Bang
> Jason Sheedy <[EMAIL PROTECTED]>:

> I'm receiving the same error when trying to run Neverwinter Nights. The
> problem has started after I upgraded to Hardy 8.04. I'm also been
> experiencing problems with flash audio.

> ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave

I got flash audio working by going to
 System->Preferences->Sound Preferences
and switching all playback to "PulseAudio Sound Server".

But now it's stopped working again.

-- 
Pulseaudio is blocking normal sound after resume
https://bugs.launchpad.net/bugs/202089
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs