Ok, I finally solved it.  By naming the script "/etc/pm/sleep.d/00_mute-
alsa", I guess it runs earlier in the suspend process, and doesn't cause
a problem with PA and cause suspend to fail.  Surprisingly, using amixer
works, in spite of PA; I haven't tried using pactl, but since this
works, I'm stopping here.  :)  So this script should work (adjust
paramaters to amixer as needed):

----
$ cat /etc/pm/sleep.d/00_mute-alsa
#!/bin/sh

case "$1" in
        suspend|hibernate)
                amixer -c 1 set Master mute
esac

** Changed in: pm-utils (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/364973

Title:
  Mute sound on resume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/364973/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to