Pulseaudio resume script in /usr/lib/pm-functions/ hogs the system on resume

Bug #432096 reported by Maxim Levitsky on 2009-09-17
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Medium
Daniel T Chen

Bug Description

On resume from ram/disk, pulseaudio tool, pacmd eats 100 of cpu time.
This can be reproduced by running:

cd /usr/lib/pm-utils/sleep.d/
export PM_FUNCTIONS=$(pwd)/functions

sudo -E /usr/lib/pm-utils/sleep.d/01PulseAudio hibernate

The 01PulseAudio looks suspicios:

get_pulse_users() {
    ps -C pulseaudio -o uid= | tr -d ' '
}

get_pulse_sinks() {
    echo list-sinks | pacmd | awk '/\* index:/ {print $3}'
}

get_pulse_sources() {
    echo list-sources | pacmd | awk '/\* index:/ {print $3}'
}

....

These functions are supposed to be run as root, right?
But then pacmd couldn't connect to pulseaudio, isn't it?

I admit that I installed pulseaudio from source (latest git) on top of ubuntu's one
I have ubuntu 9.10

Related branches

nloewen (nloewen) wrote :

I can reproduce this problem with the package from the ubuntu repository.

On Sat, Oct 17, 2009 at 11:04 AM, nloewen
<email address hidden> wrote:
> I can reproduce this problem with the package from the ubuntu
> repository.

Please purge pulseaudio and reinstall it, then reproduce it.

nloewen (nloewen) wrote :

The problem still occurs.

Marco Ogliengo (rumandfruit) wrote :

I have this same problem, on karmic's pulseaudio, on resume.

Daniel T Chen (crimsun) wrote :

I've uploaded some test packages to the ubuntu-audio-dev PPA, and they should build RSN. Please test them once they're available.

Changed in pulseaudio (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Daniel T Chen (crimsun)
nloewen (nloewen) wrote :

That fixed it. Thanks.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:0.9.19-0ubuntu4

---------------
pulseaudio (1:0.9.19-0ubuntu4) karmic; urgency=low

  * Remove 0053-fix-sigsegv-module-bluetooth-device.patch, as it did
    more harm than good (reopens LP #437293).
  * debian/01PulseAudio: Fix bashisms, and make suspend/resume actually
    work with sudo -H -u (LP: #432096, #450461).

 -- Daniel T Chen <email address hidden> Tue, 20 Oct 2009 10:29:04 -0400

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers