Comment 0 for bug 572391

Revision history for this message
Chow Loong Jin (hyperair) wrote : 01Pulseaudio does nothing

  affects ubuntu/pulseaudio
  status triaged
  assignee hyperair
  importance high
  tag patch regression-release

PROBLEM:
These few days, I noticed pulseaudio making weird sounds during and after
suspending, as well as hanging and wrecking havoc in every sound-using application.

This is with a kernel with sound-2.6.git merged in, so it's not about broken
outdated audio drivers.

REASON:

FIX:
1. Remove -l from all instances of su invocations. -l causes a login shell which
immediately causes the script to fail silently since all the su invocations go
to /dev/null.

2. Fix su quoting.

Regarding #2, There were several instances of 'blahblah${var}', which was
intended to sub in ${var}, but obviously wouldn't work because they was not
exported in the first place. So the patch changes ' to " for these cases.

Then there are the savestate/restorestate/state_exists shell functions which
were within the quotes of the command passed to su. This broke the script as well.

Attached is a patch which combined fixes for all the above issues. Do what you
will with it. I've tested it, and it works on my system.

--
Kind regards,
Chow Loong Jin