Pulseaudio resume script in /usr/lib/pm-functions/ hogs the system on resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Ubuntu) |
Fix Released
|
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/
export PM_FUNCTIONS=
sudo -E /usr/lib/
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
- Luke Yelavich (community): Approve
-
Diff: 215 lines5 files modifieddebian/01PulseAudio (+14/-22)
debian/changelog (+9/-0)
debian/patches/0053-fix-sigsegv-module-bluetooth-device.patch (+0/-28)
debian/patches/0055-backport-alsa-bt-position-fixes-b3592a1.patch (+17/-17)
debian/patches/series (+0/-1)
I can reproduce this problem with the package from the ubuntu repository.